CODE & DATA

JSON Minifier

Keep the data. Lose the extra whitespace. Make your JSON compact.

YOUR WORKSPACE
INPUT
Your input stays in this tab · Up to 500,000 characters

A little clarity, coming right up.

Your result will appear here.
A clean result. No extra steps.
Processed here. Never uploaded.
Tip: Ctrl + Enter or ⌘ + Enter to run.
THE QUICK START

One less thing on your list.

  1. 01

    Paste valid JSON with or without indentation.

  2. 02

    Select Minify JSON.

  3. 03

    Copy the compact output or download a JSON file.

A LITTLE CONTEXT

About this tool

Remove unnecessary spaces and line breaks outside JSON strings. The result remains valid JSON and keeps spaces inside string values.

Minification parses and serializes JSON. Unsafe integers are rejected; duplicate keys retain the last value and decimals use JavaScript precision.

GOOD TO KNOW

A couple of useful answers.

Does this remove spaces from text values?+

No. Spaces inside JSON string values are preserved.

Is minification the same as gzip?+

No. Minification removes formatting whitespace. Gzip is a separate transport compression method.

This tool runs in your browser. Your input is not uploaded or saved by Saanvi.

Privacy details