Data tools

We never see your dataFree, no sign-up

JSON minifier

Strip the spaces and line breaks from JSON so it fits on one line, with every value left exactly as it was.

JSON

Minified

{
  "name": "Sample",
  "active": true
}

Guide

How to minify JSON

  1. Paste your JSON

    Paste a response, a JavaScript object or a Python dict, or open a file.

  2. Choose the result

    Format for reading or Minify for one line. Indent and key sorting are under Adjust.

  3. Copy or download

    Copy the result straight into your editor, or save it as a .json file.

Know-how

Good to know

Updated

When minified JSON helps

Minifying suits JSON that machines read: config embedded in a single line, payloads in logs, and fixtures stored in code. For API responses served over the network, gzip or brotli compression already removes most of the whitespace cost, so minifying saves less there than it seems.

Questions

Not here? Email us.

Shortcuts

Set up for a specific job