Developer tool
{} JSON Formatter & Validator
Paste JSON to make it readable with tidy indentation, compress it back to one line, and — most usefully — find out exactly where invalid JSON is broken.
How to use it
- Paste JSON into the box (or load the example).
- Tap “Format” to pretty-print, “Minify” to compress, or “Validate” just to check.
- If it is invalid, the error message tells you the position to look at. Copy or download the result.
Example
{"name":"Ada","skills":["math","code"]} → Format → each key on its own indented line.
Limitations
Follows the strict JSON standard: keys must use double quotes, and trailing commas are errors — the validator will flag them, which is usually exactly the bug you are hunting.
Frequently asked questions
Is my JSON sent anywhere?
No — formatting and validation run in your browser. Safe for API responses and config files.
The error position looks off by a few characters — why?
Different browsers phrase JSON errors differently, but the line/position given points at or just after the problem — check the nearest comma, quote or bracket.