Skip to content
JSON Viewer

Compress JSON

JSON Minifier

Strip every unnecessary space and line break from JSON to make it as small as possible for APIs, config values and storage. The size saving is shown as you go.

InputWaiting for JSON

The beautified JSON and tree appear here as soon as your input is valid.

0 B0 linesLn 1, Col 1

Load JSON from a URL

Your browser fetches it directly; it does not pass through our servers. The site must allow cross-origin requests.

How it works

How to use the JSON Minifier

  1. 01

    Paste formatted JSON or open a file.

  2. 02

    Press Minify (⌘/Ctrl + Shift + M). The output is a single compact line.

  3. 03

    Check the bytes saved in the status bar, then copy or download the result.

FAQ

Frequently asked questions

Does minifying change my data?

No. Minifying only removes whitespace that sits outside strings. Keys, values and order stay exactly the same, and whitespace inside strings is kept.

How much smaller will my JSON get?

Typically 10–30% for pretty-printed JSON, more for deeply indented files. Combining minification with gzip or brotli on your server gives the biggest saving.

Is my JSON uploaded to a server?

No. All parsing, formatting and validation happens in your browser with JavaScript. Nothing you paste or open is sent to us or stored on a server. Share links keep the JSON inside the URL fragment (after the #), which browsers never send to servers.

Tools