Pretty Print JSON

Pretty-print is another name for formatting. This page uses JSON.stringify(value, null, 2) after a successful parse.

Your input never leaves the browser

Errors

Trailing commas, single quotes, and comments will fail — they are not valid JSON.

FAQ

Tabs or spaces?

Spaces, width 2.

Sort keys?

No. Key order is left as the parser returns it.

More free tools: prompt packs and the buildlog bundle. packs.sadana.app · bundle.sadana.app

More format tools

Prettify JSONValidate JSON OnlineCSV Pretty PrintYAML LintJSON · CSV · YAML FormatterJSON FormatterJSON ValidatorJSON MinifyCSV FormatterCSV to JSONJSON to CSVYAML FormatterYAML to JSONJSON to YAMLJSON Diff