JSON Formatter & Validator

Paste any JSON to pretty-print it with 2-space indentation, minify it down to a single line, or simply validate it: if something's wrong, Format mode shows the parser's exact error message pointing at the problem instead of failing silently. Minify is useful for shrinking payload size or pasting into config files, while Format is better for reading and debugging. Everything runs entirely in your browser using the standard JSON.parse/stringify APIs, so your data is never uploaded anywhere.

Result

Frequently asked questions

Does this also validate my JSON?

Yes, if your JSON is invalid, the Format mode will show the parser's error message pointing at what's wrong, instead of silently failing.

What's the difference between Format and Minify?

Format pretty-prints your JSON with 2-space indentation for readability. Minify strips all unnecessary whitespace down to a single line, useful for reducing payload size or pasting into config files.

Is my JSON data sent anywhere?

No, parsing and formatting happen entirely in your browser using the standard JSON.parse/stringify APIs. Nothing is uploaded.

Related tools