Skip to content
JSON & Data

JSON Minifier

Strips every optional space, tab and line break from JSON, leaving the smallest valid representation of the same data. The structure and values are untouched — only the formatting whitespace goes.

Free, no signupRuns entirely in your browser
Input
Result
{"site":"Vibeland","awesome":true}
About

What the JSON Minifier does

Savings are meaningful on large payloads. Pretty-printed JSON with four-space indentation can be 20-30% whitespace, all of which is transmitted on every request. For an API returning large documents at high volume, minifying is free bandwidth.

How it works

Using the JSON Minifier

  1. 1Paste your formatted JSON.
  2. 2It is parsed to confirm it is valid.
  3. 3The parsed structure is re-serialised with no indentation or line breaks.
  4. 4Whitespace inside string values is preserved, since that is data.
  5. 5Copy the minified result.
Use cases

What people use it for

  • Shrinking an API response payload
  • Reducing the size of a config file bundled into an app
  • Fitting JSON into a size-limited field
  • Preparing JSON for embedding in a data attribute
FAQ

Frequently asked questions

6 related

Related tools

All tools →