Browser-only utility

Minify JSON without changing its structure.

Turn readable JSON into a single compact value. The input must be valid JSON, and the browser never uploads it for minification.

Private browser workspace — input is processed on your device. Maximum input: 1,000,000 characters.

Initializing tool…

How it works

Use JSON Minifier locally

The tool parses the JSON document and serializes it without optional spaces. Whitespace inside quoted strings remains part of the value.

Important limitations

Parsing and re-serialization can normalize floating-point numbers and duplicate object keys. Unsafe integer literals are rejected to avoid silent precision loss.

Processing runs on your device. Keep source content when exact formatting or compatibility matters.

Practical walkthrough

Compact a JSON settings file

A readable configuration is going into a space-sensitive transport field where optional indentation and line breaks are unnecessary.

Indented JSON example

{
  "active": true,
  "limit": 10
}

Expected behavior

The minified JSON is {"active":true,"limit":10}. Whitespace inside a quoted string remains part of that value.

Check before using the output

Minification is not compression and does not make invalid JSON valid. If you need the original spacing for human editing, preserve the original file.

Next step: Format JSON for review.