JSON Tools
Five everyday JSON jobs in one workspace — pick a tool from the toolbar, paste your JSON, and get the result instantly.
Which tool do you need?
All five tools share the same input box, so you can paste a document once and switch between them from the toolbar without re-pasting. If you are not sure where to start, match your situation below:
| Your situation | Use |
|---|---|
| An API returned one long unreadable line | Formatter |
| A config file will not load and you do not know why | Validator |
| You need to embed JSON in a URL, env var or HTTP body | Minifier |
| A response is thousands of lines and you need one value | Tree Viewer |
| You want size, depth and key counts before writing code | Parser → Statistics |
Parser — read a document and see what is inside
The parser checks the text against the JSON grammar and, if it is valid, gives you three views of the same data: a colour-highlighted Pretty Print, a collapsible Tree, and a Statistics summary with nesting depth, key counts and the mix of value types. The statistics view is the quickest way to size up an unfamiliar payload — a depth of 9 or an array of 40,000 objects tells you a lot about how to write the code that consumes it.
More on how parsing works: JSON parser guide.
Formatter — make compact JSON readable
The formatter re-indents a document with two spaces per level and one value per line. Only whitespace changes; every key, value and type stays exactly as it was. It is the tool to reach for when an API, log line or database export hands you everything on a single line:
Input: {"id":7,"tags":["new","sale"],"price":{"amount":499,"currency":"INR"}}
Output: {
"id": 7,
"tags": ["new", "sale"],
"price": { "amount": 499, "currency": "INR" }
}Prefer four spaces? Use the Format 4sp button inside the input panel. See also: formatting JSON in JavaScript, Python and the terminal.
Validator — find the exact error
The validator tells you whether a document is valid JSON and, if it is not, the line and column where the grammar first broke. Valid documents get a green confirmation; invalid ones get a red message with the position. The most common causes are a trailing comma, single quotes, an unquoted key or a comment — all of which JavaScript accepts but JSON does not:
{ "name": "Ada", } ← trailing comma: invalid
{ 'name': 'Ada' } ← single quotes: invalid
{ name: "Ada" } ← unquoted key: invalid
{ "name": "Ada" } ← validWhen a document is close to valid, a Fix Common Errors button appears that repairs those four problems automatically. It never touches a document that already parses. Full list of errors and fixes: JSON errors guide.
Minifier — make JSON as small as possible
The minifier removes every space and line break that is not inside a string, producing the smallest valid version of the document. Use it before putting JSON into an environment variable, a query string, a single-line log field, or a request body where size matters. A pretty-printed API response often shrinks by a fifth or more. Minifying is lossless — run the Formatter on the result and you get the readable version back. Details: JSON minifier guide.
Tree Viewer — navigate large documents
The tree viewer shows the document as expandable nodes, so you can collapse everything you do not care about and drill into the branch you do. You can copy the path to any value (for example orders[3].items[0].sku) to use directly in code. Use the search box above the output to jump to a key or value in a large response. More: JSON viewer guide.
Your data stays on your device
Every tool on this page runs in your browser with JavaScript. Your JSON is never sent to a server, logged or stored, so it is safe to paste real API responses, configuration files or customer records. You can check this yourself: load the page, disconnect from the internet, and every tool keeps working.
Keyboard shortcuts
- Ctrl + Enter — run the selected tool's main action
- Alt + Shift + F — format the input
- Alt + Shift + M — minify the input
- Alt + Shift + S — load a sample document
- Alt + / — show all shortcuts
New to JSON? Start with the JSON guide, or see ready-to-use JSON examples to try in the tools above.