JSON Minifier
Compress JSON into a single line for requests, configuration values and storage. The byte saving is shown after every run.
Output
Your result will appear here.
Nothing to check yet
1 line · UTF-8
Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more
How to minify JSON
- 01
Paste your JSON
Any valid JSON document, formatted or not.
- 02
Minify
All whitespace outside strings is removed. The status shows the size before and after.
- 03
Copy or download
Copy the compact JSON or save it as minified.json.
What minifying changes
- Spaces, tabs and line breaks between tokens are removed; whitespace inside strings is kept.
- The data is parsed first, so the output is guaranteed to be valid JSON.
- Values are written in standard form, so 1.0 becomes 1 and escaped characters may be written differently. Duplicate keys keep only the last value.
- Numbers beyond 2^53 lose precision in the browser's JSON parser. Keep long numeric IDs as strings.
Related tools
Frequently asked questions
Does minifying JSON change the data?
It parses and serializes the JSON, rather than just deleting whitespace. Duplicate keys keep their last value, integer-like keys may reorder, and large numbers can lose precision. Keep long IDs as strings.
How much smaller does minified JSON get?
It depends on the indentation and content. The exact byte counts are shown after minifying.
Can I format minified JSON again?
Yes. Use the Format button here, or the JSON Formatter.