Data
JSON Formatter & Beautifier
Paste any JSON value and get a clean, two-space indented copy you can paste anywhere.
Press ⌘ Enter to run
4 lines · 124 chars
Ready — press Run or ⌘ Enter
Common uses
- Make minified JSON readable
- Format API responses for debugging
Limitations
- Input must be valid JSON
Turning minified JSON back into something readable
This tool takes a single JSON value and re-prints it with consistent two-space indentation. Paste a minified API response, a config blob copied from a log line, or a one-line export, press Run (or Ctrl/Cmd+Enter), and the output pane shows the same data laid out across nested lines you can actually scan. Internally it parses your text and re-serializes it, so the result is a clean, canonical copy rather than a guess at where line breaks should go.
A common workflow is debugging: copy a compact response straight from your browser's network tab, drop it in, and read the indented version to find the field you care about. From there you can use the Copy button to put the formatted text on your clipboard, or Download to save it as a .json file. The input and output panes both show live line and character counts, which makes it easy to confirm the structure expanded the way you expected.
Fixed two-space indentation and what re-serializing changes
The indentation here is fixed at two spaces; there is no width slider, tab option, or sort-keys toggle. If you need the opposite direction, the companion JSON minifier strips all whitespace for compact storage or transport, and the JSON validator checks parseability without reformatting. Picking the right one of the three avoids surprises.
Because the tool parses and rebuilds your JSON, the output is normalized rather than a literal reflow of your text. Insignificant whitespace and your original line breaks are discarded and replaced with the standard layout. If a key appears twice in the same object, JSON parsing keeps only the last value, so duplicates silently collapse. Comments and trailing commas are not valid JSON and will be rejected outright rather than stripped, so this is not a tool for cleaning up JSON5 or commented config.
Local processing and handling invalid input
Everything runs in your browser. The text you paste is processed by JavaScript on the page and is never uploaded to a server, which is worth knowing when you are formatting responses that contain tokens, internal IDs, or other data you would rather not send anywhere. Closing the tab is enough to clear it; the Reset sample button also restores the built-in example if you want a clean slate.
The one hard requirement is that your input must be valid JSON. If it is not, you will see the parser's own error message instead of formatted output, often pointing near the offending character. The usual culprits are trailing commas after the last element, single quotes instead of double quotes, unquoted keys, or a stray closing brace. Fix the flagged spot and run again. For pinning down a syntax problem before formatting, the JSON validator surfaces the same first parser message on its own.