JSON Formatter & Validator
Pretty-print, minify and validate JSON with clear error messages.
Your result will appear here.
How to use this tool
- Paste your JSON into the input box.
- Click Format to indent it, or Minify to remove whitespace.
- If the JSON is invalid, read the error message and fix the reported position.
About this tool
An API response comes back with one missing comma, and the error message points at line one of a single squashed line. Reading that to find the fault is guesswork.
Paste the payload and this tool lays it out with indentation, or collapses it to a single minified line when you need to ship it. A malformed string produces a plain-language error with the character position, so you can jump straight to the problem. Developers also use it to check a hand-written config before committing it.
Formatting happens in your browser. Sensitive payloads stay on your machine.
Frequently asked questions
How does it report a syntax error?
It shows the parser's message and the character position where parsing stopped, so you know where to look.
Does formatting change my data?
No. Formatting and minifying only change whitespace and indentation, not the values inside.
Is my JSON uploaded?
No. Parsing and formatting are done locally in the browser, and nothing is transmitted.