Data
JSON Minifier
Remove JSON whitespace without rounding numeric tokens or changing property order.
Loading tool…
How to use JSON Minifier
Create compact JSON for a request body, fixture, or configuration export. Syntax is checked before output; number spellings, existing string escapes, property order and repeated members remain as supplied.
- Paste a valid JSON document with any amount of whitespace.
- Select Run tool to produce compact JSON.
- Review the result, then copy it or download the generated file.
Good to know
- Up to 100,000 input UTF-16 code units, 10,000 source values (including containers and repeated members), and 40 nesting levels with the root at depth zero. Non-finite numeric values are refused, including earlier repeated members.
- Only whitespace between JSON tokens is removed. Strings keep their spaces and existing escapes; raw unpaired UTF-16 surrogates are escaped for UTF-8 safety. Output is bounded at 600,000 UTF-16 code units.
- This preserves numeric text, not arbitrary-precision calculation. Receiving applications may still round numbers or reject or fold repeated object members. Comments and trailing commas are unsupported; this is whitespace reduction, not file compression.
Common questions
Does minifying change string spaces or number spelling?
String spaces, existing escapes and numeric token spellings remain as supplied. Only raw unpaired UTF-16 surrogates are escaped so a UTF-8 file does not replace them.
Keep going with related tools
All data →Developer
JSON Formatter
Format and indent valid JSON in your browser, with downloadable output and clear syntax errors.
DeveloperJSON Validator
Check JSON syntax locally and see its root type, value count, and nesting depth.
DataJSON Canonicalization Workbench
Produce RFC8785-style canonical JSON bytes with strict duplicate-member and Unicode checks.