Skip to main content

JSON Minifier

JSON Minifier removes every space, tab and line break that JSON does not need, producing the most compact form of the same data.

How to use it

  1. Paste your formatted JSON into the input box
  2. Click Minify — the JSON is validated first
  3. Copy the compact result with one click

It validates first: an invalid document is rejected with a clear error rather than minified, so you never ship broken JSON. The values are untouched, but — like the formatter — a round-trip through the browser's JSON engine keeps only the last of any duplicate object key and can re-order integer-like keys. Use it to shrink a request body or an embedded config; use JSON Formatter for the reverse, when you need indentation to read or diff a document. There is no XML equivalent — the XML tool only re-indents. Input is limited to 2 MB, about 100,000 values and 64 nesting levels, and the document never leaves your browser.

FAQ

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.