JSON Minifier

Remove every unnecessary space and line break from a JSON document to minimize its size, without changing the data.

How to use

  1. Paste your formatted JSON.
  2. Click Minify.
  3. Copy the single-line result.

Examples

Pretty to minified
Input: { "a": 1, "b": true }
Output: {"a":1,"b":true}

Frequently asked questions

Does minifying change the data?

No. Only insignificant whitespace is removed. Keys, values and order are preserved.

How much smaller does it get?

Typically 10-30% smaller depending on how much indentation the original had.

Related tools