How it works
- 01
Paste it
A response body, a config file, a log line. Nothing is uploaded, so a production payload is safe to paste.
- 02
Read the error
If it will not parse, you get the rule that was broken, in plain words, with a line and column. A trailing comma or a comment is fixed for you, with a note.
- 03
Format or minify
Two, four or tab indentation, optional key sorting, then copy or download the result.
What the validator checks
The validator reads strict JSON: keys and strings in double quotes, commas between values, every bracket closing in the order it opened. Before it hands the text to the parser, it looks for the common mistakes. A single quote, an unquoted key or value, a curly quote, a string that runs past the end of its line. Each one has a name, and a named mistake is faster to fix than a character offset.
When one turns up, you get the rule that was broken and the line and column of the character that broke it. Two mistakes can be fixed without guessing: a trailing comma and a comment. The tool removes those, formats the result, and tells you what it changed. It also warns you when an object repeats a key.
- Input size
- No fixed limit. Your browser's memory is the ceiling.
- Indent
- Two spaces, four spaces, or tabs.
- Also handles
- Arrays and top-level primitives, not just objects.
- Errors
- Plain-language line and column references, not parser stack traces.
Keyboard
Use Ctrl in place of Cmd on Windows and Linux.
- Cmd+Enter
- Format
- Cmd+Shift+M
- Minify
- Cmd+/
- Toggle sort keys
- Cmd+Shift+K
- Clear
- Cmd+Shift+C
- Copy output