Data & developer tools JSON

JSON Minifier

Remove unnecessary whitespace from JSON while keeping every value and every space inside your strings intact.

Workspace

Make a compact JSON payload

Runs locally in your browser. Your JSON is not uploaded, saved, or included in sharing.
0 characters
Or drop one .json or .txt file here (up to 5 MiB). Replaces this input; stays on your device.

Whitespace outside quoted strings can be safely removed.

Minified JSON
Waiting for input
Your compact JSON will appear here.
Preserves your data. Removes only formatting.
Ready when you are.

Video guide · 16 seconds

Watch: minify JSON

No sound. Each step is captioned on screen and also written out in the guide below.

A quick guide

What gets removed?

  1. 01
    Parse

    BytesBench checks that the input is standard JSON.

  2. 02
    Compact

    Formatting spaces, tabs, and line breaks are removed.

  3. 03
    Use

    Copy or download a smaller payload for your next request.

Example

Strings stay untouched

{
  "message": "keep  these spaces",
  "active": true
}

Whitespace inside quoted strings is data, so it stays exactly as you wrote it.

Good to know

Frequently asked questions

Will minifying change my JSON values?

No. The input is parsed and serialized again, so the result represents the same JSON value. Only presentation whitespace outside strings is removed.

Does minifying make data encrypted?

No. Minification only makes JSON smaller and easier to send. It does not hide, secure, or compress the contents cryptographically.

Why did my input fail?

JSON requires double quotes, commas between values, and closed braces or brackets. Comments and trailing commas are not standard JSON.