JSON Minifier

Remove whitespace from JSON to make it as compact as possible.

Processed locally in your browser
Input
Output

How to use the JSON Minifier

  1. Paste formatted JSON.
  2. Click Minify.
  3. Check the size reduction.
  4. Copy or download the compact output.

Examples

Config file

2 KB pretty JSON → about 1.3 KB on a single line.

Features

  • Removes all insignificant whitespace
  • Validates while minifying
  • Shows bytes saved
  • Local processing

About this tool

Minified JSON is semantically identical to formatted JSON. It is the form usually sent over the network; use the JSON Formatter to turn it back into a readable form.

Frequently asked questions

Does minifying change the data?

No. Only whitespace between tokens is removed; values are identical.

Why minify JSON?

Smaller payloads for APIs, embedding JSON in other files, or storing compact data.

Is gzip better?

HTTP compression achieves more, but minifying first still helps and is useful where compression is not available.

Privacy

Processed locally in your browser. Your data never leaves your device. The tool's code runs in your browser tab; nothing you enter or select is uploaded, and nothing is saved after you close the page.