Skip to content
DevKOM

JSON Minifier

Remove all insignificant whitespace from JSON to make it as small as possible for APIs, config values or storage. The data itself is untouched.

Minified JSON
Original size
—
Minified size
—
Saved
—

How to minify JSON

  1. Paste formatted JSON into the input.
  2. The minified output appears instantly, with the size before and after.
  3. If the JSON is invalid, fix the error shown and the output updates.
  4. Copy the minified JSON or download it.

Frequently asked questions

Is minification lossless?

Yes. Only whitespace between tokens is removed. Strings, including any spaces inside them, numbers and key order are preserved exactly.

How are sizes measured?

As UTF-8 bytes, which is how the JSON is sent over the network or stored on disk.

More in Code & Data.