How to use JSON Minifier

  1. Paste or type JSON in the input area.
  2. Click "Minify" to remove whitespace and produce a single-line JSON.
  3. Copy or download the minified output.

Example

Input

{
  "key": "value",
  "nested": { "a": 1 }
}

Output

{"key":"value","nested":{"a":1}}

Frequently asked questions

Why minify JSON?
Minified JSON is smaller and faster to transfer; it's often used in APIs and configs.
Is minified JSON still valid?
Yes. Minification only removes unnecessary whitespace; the data is unchanged.