The JSON minifier removes the extra spaces, tabs and line breaks between elements to produce the most compact JSON. String contents, including inner spaces and escapes, are untouched and numbers are copied literally.
How to use it
- Paste the indented JSON.
- Press Run.
- Copy the single-line result or download it.
Example
{
"name": "Ana Pérez",
"note": " espacios internos ",
"items": [1, 2, 3]
} {"name":"Ana Pérez","note":" espacios internos ","items":[1,2,3]} Limitations
- It does not shorten key names or change number representation (1.0 stays 1.0).
- The JSON must be valid; otherwise the error is shown with its position.
FAQ
- Does minifying change the meaning of JSON?
- No. Only insignificant whitespace between tokens is removed, which the specification allows parsers to ignore.
- How much smaller does it get?
- It depends on the original indentation; the tool shows input and output sizes for comparison.