JSON Minifier

Paste JSON and get the smallest valid version. You see how many bytes you saved. More data tools

Minify JSON and see the size saved

Minifying JSON removes every space, tab and line break that is not part of a string. The data stays exactly the same, but the text is smaller, which helps with API payloads, config files and URLs.

The tool shows the size before and after. If your JSON has small mistakes, tick Auto-repair broken JSON and it will fix them first.

Features

  • Live: the result updates while you type.
  • Clear errors: the line, the reason and, where possible, a one-click fix.
  • Open and drop files, copy or download the result, and share your input as a link.
  • Send to another tool: pass the result straight to a related tool.
  • Private: Everything runs in your browser. Your data is not uploaded to any server.

Related data tools

  • JSON Validator: Paste JSON to check it. If something is wrong you see the line, the reason and a one-click fix. Nothing is uploaded.
  • JSON Stringify: Convert JSON to an escaped one-line string for your code, or turn an escaped string back into readable JSON.
  • Sort JSON Keys: Put every object key in order, at all levels. Great before comparing or committing JSON.
  • JSON Tree Viewer: See JSON as a tree you can expand, search and copy paths from.
  • JSON Compare: Paste two JSON documents and see exactly what was added, removed or changed.
  • JSON Path Evaluator: Type a JSONPath and see what it matches in your JSON, live.
  • All DataMint tools

Frequently asked questions

Does minifying change my data?

No. Only whitespace outside strings is removed. Keys, values and order stay the same.

How much smaller will it be?

Pretty-printed JSON usually shrinks 20 to 40 percent. The result is shown after each run.

Is my data private?

Everything runs in your browser. Your data is not uploaded to any server. You can even use the tool offline once the page has loaded.

Is it free?

Yes. There is no signup, no watermark and no limit on how often you use it.