JSON Formatter & Validator

Format, validate, and minify your JSON data instantly.

Reading JSON that was not written for you

JSON travels minified — whitespace stripped to save bandwidth — which is sensible over the wire and miserable in a terminal. Beautifying re-indents it; minifying puts it back. Either way the parse either succeeds or it tells you where it broke.

Live mode re-parses as you type. Everything happens in the browser, so a payload you are debugging is not sent anywhere.

The rules people forget

  • Keys take double quotes"name": "Arachnida". Single quotes are not JSON.
  • No trailing commas, unlike JavaScript objects and Python dicts.
  • No comments. // and /* */ both fail.
  • Numbers cannot be NaN or Infinity, and cannot have a leading + or .5.