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
- Paste JSON into the left box.
- Fix any error reported with its line and column.
- Read the size saving.
- 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.