JSON minifier

Compact JSON to a single line without changing values.

Paste formatted JSON to minify it for smaller request bodies, storage, or transmission.

JSON input
Minified JSON

How it works

Valid JSON is parsed and stringified without extra spaces or line breaks.

Data values stay the same; only whitespace is removed.

When to minify

Smaller payloads save bandwidth; minified JSON is harder for humans to read.

Privacy

Minification runs in your browser only.

Common questions

Does minifying change data?
No—only whitespace is removed.
Invalid JSON?
Minify requires valid JSON first; use the validator to debug syntax.
Pretty-print again?
Use the JSON formatter after minifying.
Unicode?
Unicode in strings is preserved.