JSON Formatter & Validator

Paste JSON to pretty-print it, find syntax errors with the exact line and column, minify it or sort keys alphabetically.

How to use

  1. Paste your JSON. It is validated and formatted instantly.
  2. If there is a syntax error, the tool shows the line and column so you can fix it quickly.
  3. Copy or download the result.

Common JSON errors

Frequently asked questions

Is my JSON sent to a server?

No. Parsing and formatting run in your browser, so it is safe to paste API responses containing tokens or personal data.

Does sorting keys change array order?

No. Only object keys are sorted; arrays keep their order because order is meaningful in arrays.

How large can the JSON be?

Several megabytes work fine on a modern computer. Very large files may be slow on phones.