JSON Minifier

Shrink your JSON payloads by stripping all unnecessary whitespace.

100% client-side Instant Private
Input (formatted)JSON
0 bytes Β· 1 lineWaiting for input
Output (minified)JSON
Minified JSON appears hereClick Minify above to shrink your JSON
Ready when you are
πŸ” What’s being removed?
  • βœ“ Indentation spaces
  • βœ“ Line breaks and newlines
  • βœ“ Spaces after colons and commas
  • βœ“ Trailing whitespace at end of file
  • Preserved:
  • βœ“ Whitespace inside string values
  • βœ“ Escaped sequences, keys, values, and structure

πŸ“‹ Sample JSON

Load a sample and compare its size.

πŸ“š When to minify

  • β€’ API payloads and config files
  • β€’ Embedding JSON in pages
  • β€’ Reducing bundle and transfer size

About JSON minification

Whitespace in JSON is cosmetic once parsed. Minifying strips formatting to reduce payload size for APIs, bundlers, and configuration files. String contents and the JSON data structure remain intact, so meaningful whitespace inside values is preserved.

βœ“ Values preserved Β· βœ“ Preserves string whitespace Β· βœ“ Runs in-browser Β· βœ“ Combine with gzip for max savings Β· βœ“ Free forever