Skip to content
Popular tools

JSON Minifier

Remove whitespace and shrink JSON payloads.

LocalYour data is processed locally in your browser and is not uploaded to Alphzen.

Paste JSON to minify.

How to use

  1. Paste JSON into the input panel.
  2. Select Minify to strip whitespace.
  3. Compare the original and minified sizes in the status bar.
  4. Copy or download the compact JSON.

Features

  • Removes insignificant whitespace without changing values.
  • Shows byte size before and after so you can see the saving.
  • Same parse errors as the formatter, with line and column.
  • Optional pretty-print if you minify the wrong way and need to read it again.
  • Local processing only.

Examples

Collapse a pretty-printed document
{
  "id": 42,
  "name": "Ada Lovelace",
  "active": true,
  "roles": ["engineer", "mathematician"],
  "profile": {
    "email": "ada@example.com"
  }
}
{"id":42,"name":"Ada Lovelace","active":true,"roles":["engineer","mathematician"],"profile":{"email":"ada@example.com"}}

FAQ

Does minifying JSON compress it like gzip?

No. Minifying only removes whitespace. HTTP gzip or Brotli can shrink the result further. Minified JSON is still useful for logs, environment variables, and payloads that cannot be compressed in transit.

Will numbers or Unicode change?

JSON.stringify may normalize some number representations and escape characters. The data model stays equivalent JSON; the exact source characters may differ.

Should I commit minified JSON to git?

Usually no. Pretty-printed JSON diffs cleanly. Minify at the boundary where size matters — a network payload, not the source file.

Related guides

Related tools

About this tool

JSON Minifier produces a single-line document with no extra spaces or line breaks. That is useful when you need to embed JSON in a command, a CI variable, or a compact log field.

Minification is not encryption and it is not binary compression. It only drops whitespace that JSON parsers ignore. Pair it with JSON Formatter when you need to read the same document again.

Invalid input is not minified. Fix syntax with the error location, or validate first with JSON Validator.