These two are the same operation run in opposite directions. The Formatter parses your JSON and writes it back out with indentation so a human can read it; the Minifier parses it and writes it back out with every bit of whitespace removed so it's as small as possible. Same engine, same guarantee that your data is never altered — only the whitespace changes.

Use the Minifier when

  • You want the smallest possible payload for an API response, a request body, or a webhook.
  • You're embedding JSON in a URL, a bundle, or a config file where whitespace is pure waste.
  • You care about transfer or storage size and the output is for a machine, not a reader.
  • You're shipping to production and don't need anyone to read the result by hand.

Use the Formatter when

  • You have minified or cramped JSON and you need to read, review, or edit it.
  • You want consistent indentation — 2-space, 4-space, or tabs — to match a codebase.
  • You want to sort object keys alphabetically so diffs stay stable.
  • You're preparing JSON to paste into a file, a commit, or a colleague's editor.

Side by side

JSON MinifierJSON Formatter
Primary jobStrip whitespace to shrink JSONAdd whitespace to make JSON readable
DirectionCompressExpand
Changes your data?No — whitespace onlyNo — whitespace only
Output sizeSmallerLarger (indented)
Human-readable outputNo — deliberately compactYes — that's the point
Sort keysYes (optional)Yes (optional)
Best forAPIs, URLs, bundles, storageEditing, reviewing, committing
Runs 100% locallyYesYes
under the hood

Literally the same tool. Minifying is formatting with the indentation set to zero — both parse your JSON and re-serialize it, so neither can change your values, and both push large files into a background worker so the page never stalls.

bottom line

Same engine, opposite directions. Minify to ship it, format to read it — your data is never altered, only the whitespace. A common rhythm: format while you're debugging, minify when you deploy.