JSON Tools

JSON Minifier

Strip every unnecessary space and line break to make JSON as small as possible — losslessly, and without uploading anything.

Input

Ready

How it works

How to use the JSON Minifier

  1. Paste formatted JSON

    Paste, drop or open the JSON you want to compress.

  2. Get minified output instantly

    The output panel shows the smallest valid representation of your data.

  3. Check the savings

    The status bar and Stats tab show the size before and after minification.

  4. Copy or download

    Copy the minified JSON or download it as a .min.json file.

Why minify JSON?

Whitespace makes JSON readable for humans but adds nothing for machines. Minifying removes it, typically shrinking pretty-printed JSON by 20–40%. That means smaller API payloads, faster page loads, smaller config bundles and lower bandwidth costs.

Minification here is lossless: values, number formats and string escapes are preserved exactly. If you also serve JSON over HTTP, enable gzip or Brotli compression on your server — minification and compression work best together.

Built for developers

Why developers use it

  • Private by design

    Everything runs locally in your browser. No uploads, no tracking of your data, no accounts.

  • Precise errors

    Exact line and column, a plain-English explanation and a suggested fix for every syntax error.

  • Lossless formatting

    Big integers, decimals and escapes are preserved byte-for-byte. Only whitespace changes.

  • Built for large files

    A background worker, virtualised rendering and a fast custom parser keep big files smooth.

  • Tree explorer

    Collapsible, searchable tree with JSONPath copying and jump-to-source.

  • Works offline

    Install it as an app or keep using it without a connection once loaded.

FAQ

Frequently asked questions

Does minifying JSON change the data?

No. Only insignificant whitespace between tokens is removed. Whitespace inside strings is preserved, and numbers are kept exactly as written.

How do I turn minified JSON back into readable JSON?

Switch the output mode from Minify to Beautify, or open the JSON Formatter. Formatting and minifying are fully reversible.

Is my JSON sent to a server?

No. Parsing, validation, formatting and the tree view all run in your browser using JavaScript and a Web Worker. Your data never leaves your device. You can even use the tool offline once the page has loaded.

How large a JSON file can I open?

Files of tens of megabytes work well on a modern laptop. Processing runs in a background thread so the page stays responsive, the editor only renders what is visible, and the tree view is virtualised. The hard limit is 200 MB per file.

Does formatting change my numbers?

Never. Many online formatters use JSON.parse, which silently rounds big integers (like 64-bit IDs) and rewrites numbers such as 1.0 or 1e3. This tool keeps every number and string escape exactly as you wrote it — only whitespace changes.

Keep going

Related tools

Private by design

Your data never leaves your browser.

498 free tools that run locally — no uploads, no sign-up, no tracking of what you paste. They even work offline.

  • 498free tools
  • 0bytes uploaded
  • 23categories

Keyboard shortcuts

Ctrl+EnterFormat input in place
Ctrl+Shift+EnterMinify input in place
Ctrl+OOpen a file
Ctrl+SDownload output
Ctrl+Alt+CCopy output
Ctrl+FSearch in editor
Ctrl+ZUndo
Alt+1 / 2 / 3Code / Tree / Stats view
Esc then TabMove focus out of the editor
?Show this help

Load JSON from URL

The request is made directly from your browser. The server must allow cross-origin requests (CORS).