JSON Formatter

Paste JSON. Get something readable back.

Input
Output

Common questions

What is JSON formatting?
Formatting — also called pretty-printing — takes compact or minified JSON and adds indentation and line breaks so you can read it. Paste minified API responses, config files, or any raw JSON and get a pretty-printed result instantly. The formatter also validates as it goes, reporting the exact line and column of any error.
What's the difference between formatting and minifying?
Formatting adds whitespace for readability. Minifying strips it all out. Minified JSON is smaller to transmit, which matters for APIs and config files served over the network. Neither changes the data — only the whitespace.
Why is my JSON invalid?
Common culprits: trailing commas after the last item in an object or array (valid in JavaScript, not in JSON), single quotes instead of double quotes, unquoted keys, or comments. Paste your JSON and the validator will tell you exactly which line and column has the problem. If the errors are from hand-editing or copy-pasting, try Repair — it fixes most of these automatically.
What does Repair do?
Repair tries to fix common mistakes automatically: single quotes to double quotes, trailing commas, unquoted keys, JavaScript-style comments, and Python-style True/False/None. It handles most hand-edited or copy-pasted JSON. For severely broken input it may not be able to help — in that case it leaves your input alone.
Why do large numbers in my JSON come out wrong?
JavaScript can't represent integers larger than 9,007,199,254,740,991 (2⁵³ − 1) precisely. If your JSON contains IDs from systems like Snowflake, Twitter, or database sequences, they'll be silently rounded to the nearest representable float — 9007199254740993 becomes 9007199254740992, for example. Enable Big numbers to preserve them as strings instead.
Is my data safe?
Everything runs in your browser. Nothing is sent to a server. You can disconnect from the internet and the formatter still works.
© 2026 Stash Tools