JSON Minifier
Strip every unnecessary byte from JSON — whitespace, newlines and indentation — in one step.
Input
Output
Ready
Drop a file to load it
About this tool
Collapse formatted JSON to a single line. Useful for embedding a payload in an environment variable, cutting request size, or pasting into a field that will not accept newlines.
When you would use it
- Shrinking a config blob before putting it in an environment variable
- Reducing the size of a request body
- Pasting JSON into a single-line form field
Worked example
{
"id": 4815,
"tags": [ "a", "b" ]
}
{"id":4815,"tags":["a","b"]}
Things worth knowing
- Minifying only removes insignificant whitespace — the parsed value is identical.
- Whitespace inside string values is preserved, because it is data rather than formatting.
Questions
Frequently asked
How much smaller will my JSON get?
Typically 10–30% for indented documents, though the saving is mostly irrelevant once gzip or brotli compression is applied in transit — whitespace compresses extremely well.
Is my data uploaded anywhere?
No. Every tool on JSONWorks runs entirely in your browser using JavaScript. Your input is never sent to a server, never logged and never stored. The simplest proof is to disconnect from the internet — the tools keep working. The site does load Google Fonts and a Google Analytics page-view tag, so you will see those two requests in your network tab, but neither receives anything you type or paste.
Does it work offline?
Yes. JSONWorks is installable as a progressive web app and caches itself on first visit, so every tool keeps working without a connection.
Related