Converter Web ToolsConverter WebTools

JSON Minifier

JSON Minifier lets you minify JSON quickly in your browser — nothing is uploaded.

Input
Output
Settings

What is JSON?

A JSON minifier removes all unnecessary whitespace — spaces, tabs and line breaks — from JSON, producing the smallest equivalent output. The data is unchanged; only the formatting is stripped. Minifying reduces payload size, which means faster API responses, smaller files and less bandwidth. This tool minifies JSON instantly and privately in your browser.

Same data, smaller size: minifying only removes whitespace — the JSON content is identical. Runs locally in your browser.

How JSON works

Minifying parses and re-serializes the JSON without formatting:

  1. The JSON is parsed into its structure.
  2. It is written back out with no indentation and no spaces between tokens.
  3. The result is the most compact JSON that still parses identically.

How to use

  1. Paste your JSON into the input box.
  2. The tool processes it instantly in your browser.
  3. Copy the result.

Examples

InputMinified
{ "a": 1, "b": [1, 2] }{"a":1,"b":[1,2]}
{ "name": "Sam" }{"name":"Sam"}

Options explained

  • Validate while minifying — Invalid JSON is reported instead of being silently mangled.

Common uses

  • Shrinking API responses to reduce bandwidth.
  • Making config and data files smaller.
  • Embedding compact JSON in HTML or scripts.

Frequently asked questions

Does minifying change my data?
No. It only removes whitespace; the parsed result is identical.
How much smaller will it be?
It depends on the indentation, but pretty-printed JSON often shrinks by 20–50%.
How do I reverse it?
Use the JSON Formatter to pretty-print it again.