Editor
Ctrl/⌘ + Enter formats · Ctrl/⌘ + K commandsPaste JSON to begin
Runs 100% in your browser. Nothing is uploaded.
Repair preview
Repairs made
Original
Repaired
Learn more
9007199254740993 stays 9007199254740993, 1e999 stays 1e999, 1.50 stays 1.50 — through formatting, the tree, copy, download and conversion. Other formatters round them; this one never does.
Explore & convert
Hover a node for its full path; click to jump to it in the editor.
The tree appears here once the editor holds valid JSON.
Path: $
Keys, indexes, slices, wildcards, ..descent and filters — runs on the editor JSON.
CSV needs an array of flat objects. YAML handles any JSON value.
Header
—
Payload
—
Compares the editor (A) with the document below (B).
Real-world cases
59 real forum cases with known answers — invalid ones must fail at the right line and column.
How these tests work
Invalid cases pass only if the tool rejects them at the right line and column. Four are marked “convention differences”: the tool and the answer point one column apart on the same line. Valid-but-tricky cases (duplicate keys, huge numbers, 1e999, lone surrogates, JSON Lines, HTML pages) pass only if the tool warns instead of failing silently. Stress cases are generated at runtime.
Repair tests
One case per repair kind, plus one that can't be repaired — it must fail honestly, never as a success.
Frequently asked questions
Why is formatting JSON in the browser more private?
Many online formatters send your text to a server. In November 2025, researchers found two of the largest JSON sites had stored 80,000+ pasted snippets publicly, including passwords and keys. This tool runs entirely in your browser — your data never crosses the network.
How can I verify that nothing is uploaded?
Open Developer Tools → Network, clear it, then paste JSON and press Format. No request carries your content — the only network activity is loading the page. It also works fully offline once loaded.
Is my JSON saved anywhere?
Only on this device: the editor autosaves a draft to localStorage, so a reload doesn't lose your work. It's unencrypted and never leaves the device — no accounts, no server copies, no analytics on what you paste. Discard (or Clear) erases it. Share links are different: the JSON lives in the link's #hash, never sent to a server — but anyone with the link can read it.
What does the validator tell me when my JSON is broken?
The exact line and column of the first problem, what it expected there (a comma, a closing brace, a quoted key), and the offending line with a pointer — so you can fix it in seconds.
What if a key appears twice, or a number is very large? (Exact Numbers)
Both are valid JSON that JavaScript changes silently: a duplicate key keeps only the last value, and an integer above 9,007,199,254,740,991 gets rounded. This tool warns you in both cases and shows the original number next to the rounded value. With Exact Numbers, large numbers survive formatting exactly — 9007199254740993 stays 9007199254740993, 1e999 stays 1e999, 1e-999 stays 1e-999, -0 stays -0.
Why does it say “HTML page” or “JSON Lines” instead of just “invalid”?
An HTML page usually means a 404, server error or login page instead of the API — the tool says so instead of just “invalid”. If every line parses on its own but the whole file doesn't, that's JSON Lines (one JSON value per line); the tool explains it and offers to view the lines as one JSON array.
What does Repair do with almost-JSON, like AI output?
Repair fixes code fences, comments, trailing commas, unquoted keys, single quotes, smart quotes, and NaN / Infinity / undefined (→ null). It never applies silently: you see every change with its position, a confidence rating, and a side-by-side preview. Nothing replaces your input until you press Apply; the original stays available via Undo.
Which extra tools are included?
A collapsible tree view with search (hover for the full path, click to jump to the text), a JSONPath runner, a JWT decoder, a two-document diff, and YAML and CSV converters — plus a self-test panel that proves each one works.