Skip to content
TabKiwiTabKiwi

JSON Minifier

Strip all insignificant whitespace from JSON and see how many bytes you saved.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

The JSON is validated first, then every space, tab and line break outside string values is removed. Because the text is not re-serialised, very large numbers, escape sequences and key order are kept exactly as you wrote them. The original size, minified size and percentage saved are shown below, and the data never leaves your browser.

How to use JSON Minifier

  1. Paste JSON into the left box.
  2. Fix any error reported with its line and column.
  3. Read the size saving.
  4. Copy the one-line JSON or download it.

Frequently asked questions

Will my large numbers lose precision?

No. Unlike many minifiers that parse and re-print the data, this one only removes whitespace, so numbers keep every digit.

How much smaller will my file get?

Pretty-printed JSON typically shrinks by 10 to 30 percent. If it is served compressed with gzip or Brotli, the real saving over the network is smaller.

More Developer tools

View all 91 →