105 · Developer Tools

JSON Minifier

Paste formatted JSON to get the smallest valid version on a single line.

JSON Minifier

How to use the json minifier

  1. Paste your JSON.
  2. Copy the minified result.
  3. Use “Use result as input” to chain another tool.

When to minify JSON

Minified JSON is smaller to send over the network and to store, which matters for API responses and config embedded in pages. Keep a formatted copy for editing: the JSON formatter turns it back into readable form.

Examples

63 bytes of formatted JSON

41 bytes, 35% smaller

{ "tags": [ "a", "b" ] }

{"tags":["a","b"]}

Questions

Does minifying change my data?

No. Only whitespace between values is removed; strings, numbers and structure are unchanged.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.