JSON Minifier
100% PrivateData & JSON ToolsRemove every unnecessary space and newline from a JSON document and see the size saved.
Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.
- 1Paste your JSON into the input box.
- 2Press Minify JSON.
- 3Check the size saving shown above the result.
- 4Copy the compact JSON from the result panel.
Worked example
Minifying a small object
Input: { "name": "Ovatly", "tools": 250 } Output: {"name":"Ovatly","tools":250} The pretty version is 38 bytes and the minified version is 29 bytes, a saving of 23.7%.
- Minifying never changes values: it only removes whitespace between tokens, which JSON parsers ignore.
- Size is measured in UTF-8 bytes, so non-ASCII characters count for more than one byte.
- Invalid JSON is reported with a plain-language parse error instead of producing partial output.
Yes. Whitespace outside strings has no meaning in JSON, so the minified document parses to exactly the same value.
About this tool
The JSON Minifier removes every unnecessary space and newline from a JSON document and reports exactly how many bytes that saved, so you can shrink API payloads, inline config or embedded data with confidence that the content is unchanged.
Related tools
JSON Formatter and ValidatorFormat JSON with your choice of indentation, validate it and explore its structureData & JSON ToolsOpenJSON to CSV ConverterConvert a JSON array of objects into a spreadsheet-ready CSV fileData & JSON ToolsOpenJSON Diff CheckerCompare two JSON documents structurally and list every difference by pathData & JSON ToolsOpenJSON Path TesterQuery a JSON document with simple path expressions and see every matchData & JSON ToolsOpen
Advertisement
Part of Ovatly's free tools in Data & JSON Tools.