What the results show
- JSON status — a quick verdict: Valid when your text parses as correct JSON, or Invalid when it doesn't. It stays a dash (
—) until you paste something. - Formatted JSON — your data re-indented and neatly aligned so nested objects and arrays are easy to read, using the indent width you pick (2 spaces, 4 spaces, or a tab).
- Minified JSON — the same data with every optional space and line break removed, collapsed to a single compact line for the smallest possible payload.
- Line & column — when the JSON is invalid, the tool points to where parsing failed so you can jump straight to the problem.
How it works
The tool parses your text with the browser's native JSON.parse — the exact same parser your code uses — so “Valid” here means valid everywhere. If parsing succeeds, it re-serializes the value with JSON.stringify: in Format mode it adds the indentation you chose, and in Minify mode it strips all whitespace.
Because it round-trips through a real parser, formatting also normalizes your data: keys keep their original order, but inconsistent spacing, redundant whitespace, and mixed indentation are all cleaned up. If parsing fails, the tool shows the parser's own error message along with the line and column where it gave up — a trailing comma, a missing quote, or a stray bracket is usually the culprit.
Frequently asked questions
Is my JSON uploaded or saved anywhere?
Why does it say Invalid or show a dash?
What's the difference between Format and Minify?
What counts as valid JSON?
true, false, or null. JavaScript object literals, single quotes, and // comments are not valid JSON and will be flagged.