Small Things Sorted

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

  1. Paste your JSON

    From a log, an API or a configuration file.

  2. Choose the output

    Indented for reading, or compressed for sending.

  3. 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.