Format, validate and minify JSON online
Paste JSON to pretty-print it with your preferred indentation, minify it for transport, or validate it and see exactly where a syntax error is, with the line and column highlighted.
JSON Formatter & Validator: 3 simple steps
- 1
Paste or type JSON into the input box.
- 2
Choose Format, Minify or Sort keys.
- 3
Copy the result or fix the error shown under the box.
Nothing is sent to a server, so it is safe to use with API responses, configs and tokens. Sorting keys alphabetically makes the output easier to diff and review.
Built for speed and privacy
- Clear error messages with line and column
- 2-space, 4-space or tab indentation
- Sort keys for cleaner diffs
- Nothing is uploaded
JSON Formatter & Validator FAQ
Paste it in the box. If it is invalid, the tool shows the parser message and the line and column of the problem.
Formatting adds indentation and line breaks for readability. Minifying removes them to make the payload as small as possible.
The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments, none of which are valid in strict JSON.
Yes. Parsing and formatting happen in your browser.
Building APIs and integrations?
We design and build reliable REST and GraphQL APIs for web, mobile and AI products.