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
JSON to YAML
Convert any JSON document to YAML 1.2 in your browser — proper quoting, nested objects and arrays, multi-line strings.
JSON to XML
Convert any JSON document to well-formed XML in your browser — proper entity escaping, nested elements, attributes via the `@` prefix.
JSON to CSV
Turn a JSON array of objects into a clean CSV file — perfect for Excel, Google Sheets, BigQuery, or any database import.
JSON Validator
Paste any JSON to instantly check if it's valid — get the exact error message, and one-click auto-repair for the common mistakes.
Full JSON editor →
Pretty · Minify · Tree · YAML · XML · CSV · Schema · JSONPath · auto-repair
