Data & config
JSON Formatter & Validator
Format, minify and validate JSON, and when it breaks, get the exact line and column instead of a shrug. Everything happens in your tab — the payload never touches a server.
Inputindent 2
Formatted output
Paste JSON on the left. It is validated locally, so nothing is uploaded, logged or stored.
How it works
- Paste or type JSON into the left pane.
- Pick 2 or 4 spaces — output re-renders as you type.
- Copy the result, or hit Minify to collapse it back to one line.
Why not just use the browser console?
You can — if you enjoy retyping JSON.stringify(JSON.parse(x), null, 2) every time, with no line number when it throws. This page keeps the editor, the error position and the output in one place, and stays out of your clipboard history.
Limits
- No size cap beyond what your browser can hold in memory — a few MB is comfortable.
- Comments and trailing commas are not accepted; that is JSON, not JSON5.
- Nothing is saved. Close the tab and the input is gone, by design.
Next
Converting to YAML or XML is on the roadmap — see what else is in build. Need a batch version that reads a folder of files? That is a Pro feature.