JSONBeeby Candorbees

JSON formatter and beautifier

JSON formatter that shows you what's in it.

Paste JSON and get it indented and readable in a second, or minified for sending. Then keep going: the same file opens as a dashboard with charts and automatic insights. Your JSON stays in your browser.

Or drop a JSON file here

Free · No sign-up · Your data stays in your browser

what you paste
{"id":12345678901234567890,"name":"Asha","tags":["a","b"]}
what you get · 2 spaces
{
  "id": 12345678901234567890,
  "name": "Asha",
  "tags": [
    "a",
    "b"
  ]
}
Note the id: 12345678901234567890 comes back with every digit. Many formatters read numbers into floating point first and silently change it to 12345678901234567000.
I
How it formats

A formatter that never changes your data

Formatting should change the whitespace and nothing else. That sounds obvious, and a lot of tools get it wrong.

  • Exact numbers. Ids and amounts with more than 15 digits keep every digit. The text is re-indented, not read into numbers and written back.
  • Your order. Keys stay in the order you wrote them, and so do duplicate keys, so a diff against the original shows only whitespace.
  • Your indent. Two spaces, four spaces or tabs, and Minify when you want the smallest text.
  • Search, fold and copy. A real code editor with line numbers, folding and find, then Copy or Download the result.
II
When it is not valid

Broken JSON gets an explanation, and often a fix

Format only works on valid JSON, so the first job is finding what is wrong. The error is pinned to its line and column and explained in plain words.

  • Exact position. "Line 3, column 5", underlined in the editor. Click it to jump there.
  • A plain hint. "A comma is probably missing before this", not "Unexpected token".
  • Repair. Comments, single quotes, unquoted keys, trailing commas, NaN, and JSON stored inside a string are fixed in one click. The fixes are listed first, and Undo takes them back.
  • JSON Lines too. A file with one JSON value per line is recognised and opened as a table instead of reported as an error.
III
After formatting

Now see what's in it

Formatting makes JSON readable line by line. It does not tell you what the data says. Open the same text in JSONBee and it becomes a dashboard.

  • Tables and charts. Every array becomes a sortable, filterable table, with charts chosen from the data.
  • Automatic insights. Totals that do not match their rows, duplicates, outliers and gaps, each pointing at the exact JSONPath.
  • Search any depth. One box searches every value in the file, however deeply nested.
  • Still private. The dashboard runs in your browser like the formatter does.
  • Formatting an API response? See it as tables, with repeated records and wrong totals flagged: reading API responses.
?
Questions

JSON formatter FAQ

How do I format JSON online?
Paste your JSON into the box on this page and choose "Format JSON". The editor opens with your text indented and readable. Pick 2 spaces, 4 spaces or tabs, and click Copy or Download.
Can I choose the indentation?
Yes: 2 spaces, 4 spaces or a tab. Change it and click Format again.
Does formatting change my data?
No. Only whitespace changes. Numbers keep every digit, including ids longer than 15 digits, and keys stay in the order you wrote them.
How do I minify JSON?
Paste it, then click Minify. All the whitespace that is not inside a string is removed.
What if my JSON has an error?
The error is marked at its line and column with a plain-language hint. If it is close to valid, for example it has comments, single quotes or trailing commas, a Repair button lists what it would fix and applies it, and you can undo it.
Can it format JSON with comments or single quotes?
It repairs them first. Comments are removed, single-quoted strings get double quotes, unquoted property names are quoted, and trailing commas are dropped. Then it formats the result.
Is my JSON uploaded anywhere?
No. Formatting runs in your browser, and large files are handled in a background thread so the page stays responsive. Nothing is sent to a server.
Is it free?
Yes. Formatting, minifying and validating JSON are free, with no account.

Format it, check it, then see what it says.