JSON Formatter and Beautifier
Turns minified or inconsistently indented JSON into readable, consistently indented text.
Loading the tool…
How to use this tool
- Paste your JSON into the input box, or load a .json file from your machine.
- Choose two spaces, four spaces or a tab, and decide whether to sort keys.
- Select Format. If the document will not parse, the error names the line and column.
- Copy the result, or download it as a file.
What json formatter does
A JSON formatter re-prints a document with consistent indentation and line breaks so you can read its structure. It does not change the data: the same keys, values, types and order come out the other side, only the whitespace between them differs. That matters because whitespace is insignificant in JSON, so reformatting is always safe.
Formatting is also the fastest way to find a structural problem. A response that looks like a single dense line becomes a tree the moment it is indented, and a key nested three levels deeper than you expected is obvious at a glance. If the document will not format at all, it is not valid JSON, and the error message points at the character where parsing stopped.