Ready
Ln 1, Col 1Blog

Tool Kumar tool

JSON minifier

Remove insignificant whitespace from JSON before sending it over a wire or storing it in a fixture. The readable input remains on the left.

How to use this tool

  1. Paste valid JSON.
  2. The output switches to one compact line.
  3. Copy or download the minified JSON.

Worked example

The minifier removes indentation and line breaks while keeping every value.

Input

{"name":"Ada","age":36,"active":true,"tags":["json","tools"],"profile":{"city":"London"}}

Output

{"name":"Ada","age":36,"active":true,"tags":["json","tools"],"profile":{"city":"London"}}

Options and edge cases

  • Switch back to pretty output at any time.
  • Sort keys only when your consumer does not depend on insertion order.
  • The parser preserves source digits instead of rounding large integers.

Private by default

Your document stays in this browser. Tool Kumar parses, converts and creates downloads on your device, with no account or upload step.

JSON minifier questions

Does minification change JSON data?
No. It removes whitespace outside strings. Values, key names and order remain the same.
Will strings be changed?
No. Whitespace inside quoted strings stays intact.
Can I validate while minifying?
Yes. The status bar reports whether the input is valid before the compact output is produced.

Related tools

JSON formatter, JSON validator, JSON to CSV.