JSON
AvailableJSON Formatter
Format, validate, minify, and sort JSON locally.
Paste strict JSON to minify locally.
Minified JSON will appear here.
This option applies the next time you minify; existing output is unchanged.
Minification removes unnecessary formatting whitespace from valid JSON, producing a compact JSON value that remains readable by JSON parsers.
Minification is not ZIP or GZIP compression, does not encrypt JSON, and does not intentionally change JSON values. Optional key sorting only changes the order of object properties.
Only strict JSON is accepted: comments, trailing commas, single quotes, and JavaScript object syntax are rejected. Processing happens locally in your browser; nothing you enter is uploaded or automatically saved.
No. It removes optional whitespace. Enabling Sort Keys changes object-property order only.
Minification removes formatting whitespace. Compression uses an encoding such as ZIP or GZIP to reduce transfer size.
No. Array item order is always preserved.
Object keys are sorted recursively, including objects inside arrays. The current output changes only after you select Minify again.
Yes. Arrays, strings, numbers, booleans, and null are valid JSON roots.
Comments are not part of the JSON standard.
Use it when a strict JSON payload needs fewer whitespace characters for transport, a fixture, or an inline configuration value.
A formatted feature-flag object can become a single-line value for a test fixture or request body.
Minifying removes whitespace only; it does not compress data or make a payload private.
JSON
AvailableFormat, validate, minify, and sort JSON locally.
JSON
AvailableCheck JSON syntax and pinpoint invalid data.
JSON
AvailableSort JSON object keys for predictable file diffs.