elefcode

JSON tool

JSON Minifier — free online tool

Shrink any JSON to the smallest valid form — strip every byte of whitespace, indentation, and line breaks while keeping the value identical.

What does this do?

Minified JSON is what you send over the wire, store in databases, or commit to a vendor file. This tool parses your input in a Web Worker, validates it, then emits the most compact valid JSON: no spaces between tokens, no indentation, no trailing newline. The stats bar shows the byte count so you can see exactly how much you saved.

When to use it

  • Reduce request/response size in a slow API
  • Compress JSON before storing in a column or cache
  • Embed JSON in a URL or query parameter
  • Prepare fixture files for production use

Tip

Minifying is lossless — value, type, and key order are preserved. Switch to the "Pretty" tab to expand it back. To both minify and sort keys, toggle "⇅ Sort keys" first.

Example: Pretty config → minified

Input — JSON

{
  "name": "elefcode",
  "version": "1.0.0",
  "description": "Fast browser-based developer tools",
  "scripts": {
    "build": "next build",
    "dev":   "next dev",
    "start": "next start"
  },
  "private": true
}

Output

{"name":"elefcode","version":"1.0.0","description":"Fast browser-based developer tools","scripts":{"build":"next build","dev":"next dev","start":"next start"},"private":true}

More JSON tools