JSON Formatter & Validator
Format, minify, and check JSON syntax locally. Preserve large numbers and original value tokens, with optional key sorting.
What This Tool Handles
Format, validate, minify, and clean up JSON documents in a code-editor workflow. This is useful for API responses, configuration files, event payloads, logs, fixtures, and copied snippets from browser devtools.
Instead of using separate validators and beautifiers, you can inspect syntax errors, normalize indentation, and produce compact output in one place.
Formatting and sorting preserve the original number and string tokens, including large integers, high-precision decimals, and exponent notation. Object fields, including repeated keys and __proto__, are retained.
Typical Workflows
Use prettify mode while debugging or reviewing nested objects, and minify mode when you need compact output for transport or embedding.
Sorting object keys can also make diff reviews cleaner when two JSON blobs contain the same data but arrive in different field orders.