📦 JSON Minifier

Strip every unnecessary space and line break from JSON to get the smallest valid version — or expand it back to readable form. Runs in your browser, nothing uploaded. Free, no account needed.

Input
Output

About this tool

Paste formatted JSON and get the compact single-line version for config files, embedded data, API bodies and localStorage. Validation happens at the same time, so invalid input is flagged instead of silently mangled.

Runs locally in your browser; nothing is sent to a server.

How to use it

  1. Paste your JSON into the input box.
  2. Click "Format" to validate and pretty-print, or "Minify" to compress.
  3. If it is invalid, read the error message — it names the line and character.
  4. Copy the result with one click.

Frequently asked questions

How much smaller does minified JSON get?

Typically 20–40 % for indented documents; the saving is all whitespace, the data is unchanged.

Does minifying change the data?

No. Keys, values and order stay identical; only whitespace outside strings is removed.

Also on this page

JSON Validator · JSON Formatter & Validator (all features)

Free, private, no account. Like every DevForge tool, this one runs in your browser and never uploads your files. See all 35 free tools or join the DevForge community to share your own games, tools and assets.