JSON Formatter
Format and indent JSON with precise error locations.
Loading tool…
About the JSON Formatter
Format messy JSON into readable, indented output. Choose two or four spaces, see syntax highlighting, and get the exact line and column when the JSON is invalid.
Everything happens locally in your browser. There is no account, no file upload and no waiting queue, and the tool stays free to use on desktop and mobile.
How to use it
- Paste or type JSON into the input panel.
- Choose two or four spaces for indentation.
- Press Format JSON. Invalid input is reported with a line, a column and a short explanation.
- Copy the result or download it as a .json file.