JSON Minifier
Strip whitespace and shrink JSON to a single line — offline.
Your data is processed entirely in your browser and is never uploaded.
Tool workspace
Drag & drop file here or browse
Options
Deterministic output for diffing. Values are never changed.
0% smaller
Minify JSON in three steps
Paste or upload
Drop in formatted or pretty-printed JSON — validity is checked as you type.
Minify
Whitespace is stripped to a single line. Optionally sort keys for a deterministic result.
Copy & ship
Grab the smaller payload — copy to clipboard or download — and watch the saved-bytes readout.
Frequently asked questions
Is my JSON uploaded anywhere?
No. Minification runs entirely in your browser, in a background worker for large files. Your data never leaves your machine.
Does minifying change my data?
Only the whitespace. Every key, value, number, and array order is preserved exactly. The optional "sort keys" reorders object properties alphabetically but never alters values.
When should I minify?
When size matters more than readability — embedding JSON in a bundle, sending it over a slow link, or storing many records. For editing or debugging, the Formatter (beautifier) is the better tool; minified JSON is intentionally hard for humans to read.