All tools / Developer

JSON Formatter

Validate JSON, then pretty-print or minify it.

Loading the tool…

How to use JSON Formatter

Paste JSON and it is checked and laid out as you type. Pick 2 spaces, 4 spaces or tabs, sort the keys alphabetically, or minify it to a single line. If the JSON is invalid you see where the problem is.

  1. Paste or type your text into the Input box.
  2. Adjust any options above it; the result updates as you go.
  3. Press Copy to put the result on your clipboard, or Save to download it.

Questions

How do I know if my JSON is valid?

Valid JSON is formatted immediately. If there is a mistake, an error message says what is wrong and roughly where.

Is my JSON sent to a server?

No. It is parsed by your own browser, so it is safe to paste data you would not want to share.

Is this tool free?

Yes. JSON Formatter is free to use, with no sign-up and no limit on how often you use it.

Is what I enter kept private?

Yes. Everything you type stays in the page on your own device. Nothing is sent to a server.

More developer tools

All developer tools · All 96 tools