JSON Minifier

Remove all whitespace from JSON and see the bytes saved.

Result

{"name":"Superwebkit","tools":[{"id":1,"free":true},{"id":2,"free":true}],"private":true,"price":0}
1 lines · 99 bytes
  • 171 bytes → 99 bytes (42.1% smaller).

What does minifying JSON do?

Minifying JSON means removing all the whitespace that only helps people read it: spaces, tabs and line breaks. The data stays the same. Only the size shrinks.

The tool re-prints your JSON with no whitespace outside strings and reports the size before and after. The sample object, indented over many lines, goes from 171 bytes to 99 bytes, which is 42.1 percent smaller. Values, numbers and key order are untouched.

How to use the JSON Minifier

  1. Paste your JSON on the left.
  2. Read the minified result on the right.
  3. Check the note for bytes before and after.
  4. Copy or download the result.

Real situations

When people use the JSON Minifier

  • 1

    Shrink an API payload

    Smaller bodies send faster, which helps on slow connections and when you pay per request or byte.

  • 2

    Fit JSON into a URL or a field

    When something has a size limit, such as a query string or a text field, removing whitespace can make the data fit.

  • 3

    Compact stored config

    Keep a single-line version in a database column or an environment variable.

  • 4

    Compare size before and after

    See how much of your file was indentation, which can be a large share of an indented file.

Good to know

  • Minified JSON is hard to read. Keep a formatted copy for editing.
  • Whitespace inside strings is kept, because it is part of the data.

FAQ

JSON Minifier: questions answered

What is the difference between minify and compress?

Minifying removes whitespace from the text itself. Compression, such as gzip, encodes the whole file more compactly and needs to be undone. They work together, and minified JSON still compresses well.

Does minifying change my data?

No. Only whitespace outside of strings is removed. Values, numbers, strings and key order stay exactly as you wrote them.

How much space will I save?

It depends on how much indentation the file has. The sample here goes from 171 bytes to 99 bytes, or 42.1 percent. A file already on one line will save nothing.

Can I undo minification?

You can format the JSON again with the formatter. Original indentation and comment-free layout can be recreated, but your exact original spacing cannot be known.

Will invalid JSON be minified?

No. The tool checks first and shows the error with its line and column. Fix it, and the minified output appears.

Is JSON minifying the same as obfuscating?

No. Minified JSON is still plain readable data, just on one line. It does not hide anything. Do not rely on it to protect secrets.

Is this JSON Minifier free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way