Skip to content
Utilerio

JSON Minifier

Strip whitespace from JSON to produce the smallest possible payload.

Minified JSON

The result will appear here.

Was this tool useful?

About this tool

JSON sent over a network should be as small as possible. Every space, tab and newline in a formatted document is wasted bandwidth. Minifying removes all optional whitespace while keeping the data identical.

The minifier first parses the document to make sure it is valid JSON, then re-serialises it without any whitespace. If your JSON is malformed, the parser will tell you exactly where it failed.

How to use it

  1. Paste the formatted JSON into the input.
  2. Click Minify.
  3. The output contains the same data with all whitespace removed.
  4. Copy or download the result.

Examples

Formatted → Minified

{
  "name": "Utilerio",
  "tools": 50
}
{"name":"Utilerio","tools":50}

Common problems

The minifier shows a syntax error.
The input is not valid JSON. Check for trailing commas, single quotes or missing colons. Use the JSON Formatter to find and fix the error first.

Frequently asked questions