Format and check JSON
Indent it readably or compress it to one line – and find the error.
What you type is processed in your browser and never sent to us.
How to do it
-
Paste your JSON
From a log, an API or a configuration file.
-
Choose the output
Indented for reading, or compressed for sending.
-
Copy the result
Or fix the error the message points at.
What this is for
JSON out of a log or an API arrives as one long line, and finding the one missing comma in it is thankless work.
If the input does not parse you get the line and column where it went wrong, which is almost always where the comma or the quotation mark is missing.
Common questions
No. It is parsed in your browser and never leaves it.
Not in strict JSON. If your file has them, it will be reported as invalid – which it is.
Yes, objects keep the order they had in the input.
Missing a tool? Tell us which one.