JSON utility
JSON Minifier
Remove unnecessary whitespace from JSON data.
● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…
How to use JSON Minifier
- Enter valid JSON.
- Select Minify.
- Copy the compact result and check that the destination expects JSON.
Example
Input / settings:
{
"message": "hello world",
"ok": true
}Output:
{"message":"hello world","ok":true}When to use
- Compact a JSON fixture.
- Prepare a one-line payload for a command.
- Compare formatted and compact representations.
Overview
Minification removes formatting whitespace by parsing a JSON value and serializing it compactly. Spaces inside string values remain part of the data.
Common mistakes
- Minifying cannot fix comments or trailing commas.
- Compact JSON is not automatically escaped for a shell or HTML attribute.
- Large numeric identifiers may lose precision during parsing.
Practical tips
- Use the formatter again when reviewing the result.
- Measure transferred size separately: minification is different from gzip or Brotli compression.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers. Processing stays in your browser. Compacting does not anonymize personal data.
Frequently asked questions
Are spaces inside strings removed?
No. They are values, not formatting whitespace.
Is the output compressed?
No. It is plain JSON text without optional formatting whitespace. The sizes shown are UTF-8 bytes, not characters, so a Japanese character or an emoji counts as several bytes.
Will numeric spelling stay identical?
Not necessarily. Parsing and serialization can normalize notation and lose unsafe integer precision.