How to use JSON Minifier
- Paste the JSON you want to minify, or start from the sample.
- The minified JSON appears in the output box as you type, with the size before and after.
- Click Copy or Download to take the result; if the JSON has an error, the message shows the line and column.
Features
- Removes all whitespace outside strings
- Shows bytes before and after and the percentage saved
- Reports the line and column of JSON syntax errors
- Keeps every value and the original key order
- Runs in your browser, so the JSON is never uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| { "name": "OneVixa", "tools": [ "json", "hash" ], "free": true } | {"name":"OneVixa","tools":["json","hash"],"free":true} |
| { "a" : [ 1, 2, 3 ] } | {"a":[1,2,3]} |
Limitations
- The input must be valid JSON. JSON with comments or trailing commas is rejected with the position of the problem.
- Numbers are re-written by the browser, so a number such as 1.0 becomes 1 and very large integers can lose precision.
Learn more
JSON is often written with indentation so people can read it, but machines do not need the extra spaces and line breaks. Minifying removes them. On a large API response or configuration file the saving can be noticeable, especially when the data is sent to many users.
Minifying is lossless for the data: the parsed result is the same before and after. It is different from compression such as gzip or Brotli, which also works on the repeated text inside the data. Web servers usually apply compression on top of minified JSON, and the two savings add up.
Keep a readable copy for editing and review, and generate the minified version as a build or export step. Minified files are hard to diff and to read, which is why most teams do not edit them by hand.
Frequently asked questions
What does minifying JSON do?
It removes the spaces, tabs and line breaks that only make JSON easier to read, so the same data takes fewer bytes when it is stored or sent.
Does minifying change my data?
No values or key order change. Only whitespace outside strings is removed, although numbers are normalized, for example 1.0 is written as 1.
How do I make minified JSON readable again?
Use the JSON formatter, which adds indentation back.
Is my JSON uploaded anywhere?
No. Minifying happens in your browser.
Sources
Last reviewed: September 30, 2026