JSON Formatter

Format, minify and validate JSON for easier reading.

Processed on this page. No uploads. Your input is not saved.

Up to 100,000 UTF-16 units; some emoji use multiple units

Enable JavaScript to process content locally in your browser.

How to use

Paste valid JSON, then format or minify and copy the result. Original number precision, key order and duplicate keys are preserved. Only whitespace outside strings changes; content is never executed. Supports up to 100 nesting levels.

Make JSON easier to review

Paste valid JSON, format it for reading or compact it for copying. If parsing fails, correct the source and try again; the tool does not guess missing data.

Example and expected result

The compact JSON {"name":"Robin","count":2} becomes an indented object when formatted and returns to compact form when minified. Comments, trailing commas and single-quoted strings are not valid JSON. Formatting is not schema validation.