Developer tools
JSON formatter
Paste JSON below, then prettify, validate, or minify it. Everything runs in your browser - nothing is uploaded.
How it works
Paste JSON on the left and the formatter pretty-prints it on the right, indented and easy to scan. If the input is not valid JSON it tells you what went wrong and exactly where, so you can fix a stray comma or missing bracket without hunting line by line. Choose 2 spaces, 4 spaces, or tabs for the indentation that matches your project.
Everything runs in your browser using the native JSON parser, so your data never leaves your machine and nothing is sent to a server. The same tool also minifies: strip every space and newline down to the smallest valid JSON, and see how many bytes you saved.
Example. Paste {"name":"Ada","skills":["math","code"]}, pick 2-space indentation, and Format rewrites it across several indented lines. Hit Minify to collapse it back to a single compact line ready to drop into a request body.
FAQ
Is my JSON sent anywhere?
No. Formatting, validating, and minifying all happen locally in your browser with the built-in JSON parser. Nothing is uploaded, logged, or stored on a server, so it is safe to paste sensitive payloads.
What is the difference between format and minify?
Format (prettify) adds indentation and line breaks so the structure is easy to read. Minify does the opposite: it removes every unnecessary space and newline to produce the smallest valid JSON, which is what you want for transport or storage.
Why does it say my JSON is invalid?
The native parser rejects anything that is not strictly valid JSON: trailing commas, single quotes, comments, or unquoted keys are all common causes. The error message points to the line and column where parsing failed so you can jump straight to it.
Can I choose the indentation?
Yes. Pick 2 spaces, 4 spaces, or a tab, and Format uses that for every level of nesting. The choice only affects the prettified output; minify always strips indentation entirely.