When to use it
When one-line JSON is unreadable, or when you want to check that a file is valid. Paste it in and it's indented cleanly — any mistake is flagged with the exact line and column.
How it works
Paste on the left and the right updates as you type. Pick an indent width at the top, or "Minify" to collapse to a single line. Turn on "Sort keys" for a consistent order.
Common mistakes
- Stray commas — missing one, or leaving one trailing on the last item. The most common error.
- Unbalanced brackets —
{or[opened but not closed. - Single quotes — JSON only accepts double quotes.
'hello'→"hello". - Literal newline in a string — use
\n, not an actual Enter keystroke. - Two top-level objects — wrap them in an array, or confirm you meant JSON Lines.
API responses never leave this page
Auth tokens, user IDs, payment fields embedded in JSON are safe. Parsing uses native `JSON.parse` — zero external libraries. The formatted result stays inside the page.