colby.campthe little toolbox
← Back to tools

A USEFUL LITTLE THING / 010

JSON Formatter.

Validate, indent or minify JSON while preserving its original values.

Output

What is preserved?

Standard JSON only: no comments or trailing commas. Up to 200,000 characters and 64 nesting levels. Formatting preserves original number literals, string escapes, property order and duplicate keys. It does not evaluate code or turn JSON into HTML. Duplicate keys remain ambiguous to other software even though this formatter preserves them.