JSON Formatter & Validator

Paste JSON to pretty-print it, minify it, or find exactly where it's broken.

Runs in your browser. Nothing you enter is uploaded.

Output


  

How to use the JSON Formatter

  1. Paste your JSON on the left.
  2. Click Format to pretty-print it, or Minify to compress it. Invalid JSON shows the line and column of the problem.
  3. Copy or download the result.

Questions

Is my data sent anywhere?

No. Parsing happens in your browser, so it's safe for API keys and private data.

Can it sort keys?

Yes. Tick Sort keys to order object keys alphabetically, which makes comparing two JSON files easier.