JSON Formatter and Validator
Pretty-print messy JSON, minify it back down, and get the exact line where it breaks.
Runs in your browser — nothing is uploadedWhat this does
Paste JSON and get it back indented and readable, or squeezed onto one line. If it will not parse, you are told the line and column where it stopped making sense rather than only "unexpected token" — usually the one thing you actually needed to know.
Formatting, minifying and sorting
Format indents every level so the nesting is visible. Minify strips every space and newline, which is what you want before putting JSON into a config value or a URL. Sort keys orders every object alphabetically, all the way down — useful when you are comparing two API responses by eye and want the differences to line up.
Is my data safe here?
Yes. All of it happens in your browser. Nothing is sent to us or anyone else, so pasting a response containing real customer data does not put that data anywhere new. Open your browser's network tab while you use it and you will see no request go out.
Common reasons JSON will not parse
- A trailing comma after the last item — fine in JavaScript, invalid in JSON.
- Single quotes instead of double quotes around keys or strings.
- Keys with no quotes at all.
- A comment. JSON has no comment syntax.
NaN,undefined, or a bare number like.5.
Other free tools
Need the whole website, not just the snippet?
Describe it in a sentence and relivo builds it — free until you put it online.