About this tool
JSON is the language APIs speak to each other, and it is famously unreadable in its travelling clothes: one line, no spaces, thousands of characters. Formatting is not cosmetics — nesting you can see is structure you can debug. This tool parses your JSON with the browser's own strict parser, then re-prints it with clean indentation, so keys, arrays and objects line up the way the data actually nests.
Validation matters more than beauty. When JSON is broken, the tool reports the parser's own verdict — including the character position where reading failed — which turns a half-hour hunt for a missing comma into a ten-second fix. And because everything runs locally, you can safely paste payloads that contain tokens or private data: they never leave the tab.
How to use it
- Paste your JSON into the box.
- Choose an indent width and press Format — or Minify to strip it back to one line.
- If it will not parse, read the error position and fix the character there, then format again.
Good to know
- The usual suspects: a trailing comma after the last item, single quotes instead of double, and unescaped quotes inside a string.
- Minified JSON is what you ship; formatted JSON is what you debug. Same data, different audiences.
- Numbers that look like 1e3 or strings that look like numbers stay exactly as written — a formatter must never change the data.
Frequently asked questions
Is my JSON sent anywhere?
No. Parsing and printing happen in your browser.
Why does it reject my file when my app accepts it?
Your app may accept JSON-with-comments or trailing commas (JSON5/JSONC). Strict JSON — the kind APIs exchange — allows neither, and this tool validates the strict standard.
What is the biggest JSON it can handle?
Several megabytes comfortably; the limit is your device's memory, not a paywall.
More Developer tools
JSON to CSV
Turn a JSON array of objects into a clean spreadsheet-ready CSV, columns and escaping handled.
CSV to JSON
Convert spreadsheet CSV into a JSON array — quoted fields, embedded commas and all.
XML Formatter
Indent and validate XML — sitemaps, feeds, config files — with errors pointed at the guilty tag.
JS / CSS / HTML Beautifier
Untangle minified or messy code into readable, consistently indented JavaScript, CSS or HTML.
JS / CSS Minifier
Strip comments and needless whitespace from JavaScript and CSS — smaller files, same behaviour.
Regex Tester
Test a regular expression against your text live — every match highlighted, groups shown.
Making videos too? Try our YouTube SEO Checker, or browse the full Toolkit and the free YouTube tools.