Validate & Format · Runs in your browser

JSON Minifier

Compress JSON by removing every unnecessary space and line break, for smaller payloads and faster transfers.

Paste, drop or type your JSON

It’s checked as you type — nothing is uploaded.

Ctrl + V to paste · drop a .json file anywhere here

Drop your JSON file to load it
Waiting for input1 line0 B

Ctrl Enter ValidateCtrl Shift F FormatCtrl Shift M MinifyCtrl Z Undo

How to use it

  1. Paste formatted JSON into the editor, or upload a .json file.
  2. Click “Minify” (or press Ctrl + Shift + M).
  3. Copy the compact JSON or download it. The status bar shows the new size.

Lossless

Minifying only removes whitespace outside of strings. The data is exactly the same — parse it and you get an identical value.

Validated first

Invalid JSON is never minified. If there’s an error, you’re taken straight to it.

When to minify

Use minified JSON for API payloads, config embedded in code, or storage. Keep formatted JSON for anything people will read or review.