JSON Minifier
Minify valid JSON locally for smaller payloads.
Free. No signup required.
What this tool does
Minify valid JSON while keeping spaces inside strings. Compare input and output sizes, optionally escape Unicode and copy compact JSON from your browser.
How to use
Paste JSON to remove indentation and extra spaces. Copy or download the compact result.
Features
Remove layout whitespace while retaining spaces inside string values.
When to use it
Prepare a compact JSON payload after checking its syntax and values.
Example and checks
Layout whitespace disappears, but the space between hello and world remains part of the string. Minification still parses and serializes the document, so duplicate keys and large unquoted integers need the same care as formatting. It is not transport compression such as gzip.
{
"message": "hello world"
}
{"message":"hello world"}Common questions
Does minifying change text inside JSON strings?
Whitespace inside strings is preserved. Number precision follows JavaScript.
Data processing
This tool processes its input locally in your browser without sending it to a server for processing. Input and results are not included in share URLs.
Related tools
JSON Formatter
Format and validate JSON locally in your browser.
JSON Validator
Validate JSON and locate parse errors without uploading your data.
JSON to CSV
Convert an array of JSON objects to CSV locally.
Related guides
How to Validate JSON and Fix Common Syntax Errors
Find common JSON syntax errors, repair quotes and trailing commas, then format nested data without changing its meaning.
How to Format JSON and Make It Readable
Make compact JSON readable with indentation, inspect nested objects and avoid changes to large identifiers or duplicate keys when formatting.