Skip to content

JSON Formatter & Validator

Format, beautify and validate JSON, then explore it as a tree, table or graph. Nothing you paste leaves your browser.

Input · JSON
object {8}
"id": "ord_7Hq2"
"status": "paid"
"total": {2}
"amount": 129.5
"currency": "EUR"
"customer": {3}
"name": "Ada Lovelace"
"email": "ada@example.com"
"vip": true
"items": [2]
0: {4}
"sku": "KB-01"
"name": "Mechanical keyboard"
"qty": 1
"price": 89.5
1: {4}
"sku": "MS-11"
"name": "Wireless mouse"
"qty": 2
"price": 20
"shipping": null
"tags": [2]
0: "gift"
1: "express"
"createdAt": "2026-11-03T09:24:11Z"
Valid JSON8 top-level keys · depth 4 · 21 keysRuns in your browser

Load from a URL

Your browser fetches it directly, so the server must allow cross-origin requests (CORS).

What makes it different

Built for the JSON you actually get

Errors, explained

The exact line, what went wrong in plain words, and a fix. Repair handles trailing commas, comments and quotes in one click.

See the shape

Graph view draws nested JSON as connected cards. Drag, zoom, collapse branches, export a PNG.

Every digit kept

Most formatters round long IDs through JSON.parse. This one keeps numbers exactly as written.

Nothing to leak

No backend, no save-to-server. Paste tokens and customer data without a second thought.

39 tools, one workbench

Every format you work with

How to format JSON online

  1. Paste JSON, open a file, or load it from a URL.
  2. Press Format (Ctrl + Enter). Choose 2 spaces, 4 spaces or tabs.
  3. Copy or download the result. Minify puts it on one line; Sort keys orders every object.

Validate JSON and fix errors

Invalid JSON turns the status bar red. The Report tab shows the line, the column, what broke and how to fix it, in the same words in every browser. Repair fixes trailing commas, comments, single quotes, unquoted keys, Python’s True and None, and output cut off halfway. More in common JSON errors.

Long numbers keep every digit

JSON.parse rounds 12345678901234567890 to 12345678901234567000, which breaks IDs from Twitter, Discord and many databases. This formatter never converts numbers, so they stay as written, and it warns you when one is too big for JSON.parse.

Tree, table and graph views

  • Tree: collapse, expand and search. Click a node to copy its JSONPath, JavaScript path or JSON Pointer.
  • Table: arrays of objects as rows. Sort columns, open nested values.
  • Graph: objects and arrays as linked cards. Export a PNG.

Each has its own page: JSON viewer, JSON visualizer, JSON to table.

Nothing is uploaded

Your JSON never leaves your device. In November 2025, watchTowr Labs found over 80,000 pastes, passwords and cloud keys included, readable on two popular formatter sites. Format JSON has no save-to-server feature, so there is nothing to leak.

Questions

Is this JSON formatter free?

Yes. No account, no limits, no ads in the tool.

Is my JSON uploaded anywhere?

No. Everything runs in your browser. Your last input stays in local storage so a reload keeps it; Clear removes it.

What is the difference between formatting and validating JSON?

Validating checks the text is legal JSON. Formatting re-indents it for reading. This page does both.

How large a file can it handle?

Tens of megabytes. The tree and table draw only what is on screen; the graph shows the first 600 cards.

Does it work offline?

Yes, after the first visit. You can also install it as an app from the browser menu.

Esc