Skip to content

JSON Minifier

Strip whitespace and see how much you save

Input JSON

Empty

Minified

Minified JSON appears here

How to use

  1. Paste or upload JSON on the left.
  2. The minified version appears on the right with the size saving.
  3. Click Minify to replace the input, or copy and download the result.

Minify vs. format

Minified JSON is ideal for machines: smaller payloads, faster parsing and less storage. Formatted JSON is ideal for humans. Keep both in your workflow: minify before shipping, and use the JSON Formatter when you need to read or edit a document.

Enabling Sort keys produces a canonical form of the document, which makes it easier to compare two versions and improves compression for repeated keys.

Frequently asked questions

It removes every space, tab and line break that is not inside a string. The data stays exactly the same, but the file becomes smaller and faster to transfer.