JSON Minifier

Strip whitespace from JSON to make it as small as possible.

Everything is processed in your browser. Nothing you paste is uploaded or stored.

Advertisement

About these formats

Minifying removes the indentation and line breaks that exist for human readers. The parsed value is identical, so this is safe for anything a machine reads: API payloads, config baked into a build, or data stored in a column where size matters.

How to use this tool

  1. Paste formatted JSON on the left.
  2. The minified version appears on the right.
  3. Copy it straight to your clipboard.

Frequently asked questions

Is my JSON sent to a server?

No. Everything happens in your browser. Nothing you paste is uploaded, logged or stored, which matters when the document contains keys, tokens or personal data.

Why is my JSON reported as invalid?

The most common causes are trailing commas, single quotes instead of double quotes around keys and strings, and unescaped line breaks inside a string. The error message gives the line and column of the first problem.

Does it change my data?

No. The document is parsed and re-serialised, so only whitespace changes. Key order is preserved and values are untouched.

Can it handle large documents?

Yes, within your browser's memory. Documents of a few megabytes are fine; extremely large files may make the page pause briefly while it parses.

Related tools

Advertisement