ENRU

JSON Minifier

I cut the fat. The muscle stays.

Inputempty

Paste JSON. I cut whitespace, not corners.

Ctrl+Enter minifies · numbers stay as written

Silence is golden. Whitespace is optional.
— JSON Statham
OutputCode
Example: JSON Statham described as JSON. Strict, not rude.
Waiting for JSON.
Ln 1, Col 11:10 BAPI

Paste JSON and get it on one line, whitespace gone. Strings, numbers and escapes stay exactly as written, and you see how many bytes went.

How it works

  1. Paste JSON or drop a file.
  2. Press Ctrl/Cmd+Enter.
  3. Copy the one-liner or download .min.json; the status bar shows bytes before and after.

What gets removed

Spaces, tabs and line breaks between tokens. Nothing inside strings. Numbers, escapes and key order stay byte for byte.

FAQ

What does minify remove?

Only whitespace between tokens: spaces, tabs and line breaks outside strings. Strings, numbers and escape sequences stay byte for byte.

Does it check the JSON too?

Yes. Invalid input isn’t minified: you get the error with its line and column instead.

Should I minify if my server already uses gzip?

For HTTP responses, gzip or brotli does most of the work. Minifying still helps where compression doesn’t run: storage, logs, environment variables, fixtures in code.

Is there a size limit?

1 MiB per document (1,048,576 bytes). Larger input is rejected in your browser before it is sent.

Other tools

Keyboard shortcuts

Everywhere
Ctrl+EnterRun the page’s main action
Ctrl+OOpen a file
Ctrl+SDownload the result
F8 / eJump to the error
/Focus the input
wWrap lines
cCopy the output
qAnother quote
?This help
EscClose

Keys like c, q, w work when the cursor isn’t in an editor.

Runs the tool after a pause in typing: 0.6 s, or 1.2 s above 64 KiB; off above 256 KiB. Each run sends your JSON to our API.