What this tool does
JSON Formatter turns a squashed or broken block of JSON into clean, indented text, tells you exactly where it breaks, and can repair the usual copy-paste mistakes, all inside your browser tab.
How to use it
Paste the JSON into the box, or press Open a .json file. Files up to 100 MB open; very large ones stay out of the box so the page stays quick.
Pick an indent (2 spaces, 4 spaces or a tab) and tick Sort keys A to Z if you want stable, comparable output.
Press Format JSON. Minify does the opposite and puts everything on one line. If the JSON is broken, the message names the line and column and shows the line with a marker under the mistake.
If the mistake is a common one, press Fix mistakes and format. The result lists every change it made. Then copy the result, download it, or switch to Tree to browse it and copy the path to any value.
Official sources
Last checked 2026-10-14.
FAQ
Is my JSON uploaded or stored anywhere?
What is the difference between Format and Minify?
Can it fix JSON with comments or trailing commas?
Why does it warn about a big number?
Does it work with JSON Lines or NDJSON?
How large a file can it open?
Related tools
Guide: how to format and validate JSON without uploading itJSON validator with line and column errorsOpen RAR and ZIP filesQR code generatorAll tools