format validator

JSON Minifier

Strip whitespace from JSON for compact payloads and env vars.

Results

Processing…
Status
Processing...
Details
Processing...
Minified JSON
Processing...

Rules & checks

Parses JSON5 for lenient input.

Outputs standard JSON without whitespace.

All processing stays in-browser.

When to use it

  • Embed JSON in curl commands or query params
  • Reduce size for environment variables or config maps
  • Normalize payloads before hashing or signing

Tips

  • Minify after validation to avoid shipping malformed payloads
  • Keep a prettified copy for readability in source control

Examples

Pretty to minified

  • { "a": 1 } -> {"a":1}

Invalid JSON

  • {foo: "bar"} -> Flags missing quotes

FAQs

Does minification change data?
Only whitespace is removed; the structure stays the same.
Can I undo minification?
Use the JSON Prettifier to reformat if needed.

Related validators

Minifies structure only; does not validate schemas.