JSON Toolsavailable

JSON Minifier

Remove nonessential whitespace from JSON documents.

JSON input

Paste strict JSON to minify locally.






Minified JSON outputRead-only

Minified JSON will appear here.






Options

This option applies the next time you minify; existing output is unchanged.

What this tool does

Minification removes unnecessary formatting whitespace from valid JSON, producing a compact JSON value that remains readable by JSON parsers.

What it does not do

Minification is not ZIP or GZIP compression, does not encrypt JSON, and does not intentionally change JSON values. Optional key sorting only changes the order of object properties.

How to use

  1. Paste a complete JSON value into the input editor.
  2. Optionally select Sort object keys alphabetically.
  3. Select Minify or press Ctrl/⌘+Enter.
  4. Copy or download the compact result when it is current.

Strict JSON and privacy

Only strict JSON is accepted: comments, trailing commas, single quotes, and JavaScript object syntax are rejected. Processing happens locally in your browser; nothing you enter is uploaded or automatically saved.

Frequently asked questions

Does minification change JSON values?

No. It removes optional whitespace. Enabling Sort Keys changes object-property order only.

What is the difference between minification and compression?

Minification removes formatting whitespace. Compression uses an encoding such as ZIP or GZIP to reduce transfer size.

Will array order change?

No. Array item order is always preserved.

What happens when Sort Keys is enabled?

Object keys are sorted recursively, including objects inside arrays. The current output changes only after you select Minify again.

Can JSON start with an array or primitive?

Yes. Arrays, strings, numbers, booleans, and null are valid JSON roots.

Why are comments rejected?

Comments are not part of the JSON standard.

Practical guide

When to use it

Use it when a strict JSON payload needs fewer whitespace characters for transport, a fixture, or an inline configuration value.

Three steps

  1. Paste a valid JSON document.
  2. Decide whether alphabetic object-key sorting is appropriate for the target.
  3. Minify, then copy the compact output where it is needed.

Example and a common mistake

A formatted feature-flag object can become a single-line value for a test fixture or request body.

Minifying removes whitespace only; it does not compress data or make a payload private.

JSON

Available

JSON Formatter

Format, validate, minify, and sort JSON locally.

JSON

Available

JSON Validator

Check JSON syntax and pinpoint invalid data.

JSON

Available

JSON Sort Keys

Sort JSON object keys for predictable file diffs.