ToolsKitFull site
All tools / Developer and web / JSON formatter

JSON formatter

Format, minify and validate JSON.

Loading interactive tool…

Open the full tool for saved settings, clipboard access, or more space.

About this tool

Paste JSON to format it with readable indentation, shrink it to a single line, or check whether it is valid. If the JSON is broken, the error message points to the problem so you can fix it fast.

How to use it

  1. Paste your JSON into the box.
  2. Click Format to indent it or Minify to compress it.
  3. If you see an error, fix the spot it names and try again.

Questions

Why does my JSON say invalid?
The most common causes are a trailing comma, single quotes instead of double quotes, and unquoted keys. JSON requires double quotes around keys and strings.
Is my data sent to a server?
No. Parsing happens locally in your browser.

More tools

tools4freeonline.com google.com, pub-5366955859957266, DIRECT, f08c47fec0942fa0google.com, pub-5366955859957266, DIRECT, f08c47fec0942fa0