JSON Minifier
Compact JSON by removing insignificant whitespace and compare the exact UTF-8 byte counts.
- Free
- Works Offline
- No Uploads
How to Minify JSON
- Open the HTML, review Security Check, then select Continue.
- Paste one JSON value, choose a local UTF-8 .json file, or select Open Sample.
- Select Minify JSON. The tool validates the whole value and removes only insignificant whitespace.
- Compare the exact byte counts and choose Copy JSON or Download JSON. Copy and Download use the full result.
Keep Tokens and Remove Insignificant Whitespace
- Keep precise integer and exponent lexemes.
- Retain the original key order and repeated members.
- Find syntax errors by line and column before trying again.
Formats and Compatibility
| Input | Paste one strict JSON value or choose a local UTF-8 .json file up to 2 MiB. The validator accepts arrays, objects and scalar values. |
|---|---|
| Output | See source, compact and saved UTF-8 bytes. Copy or download the complete compact JSON. |
| Browser | A modern browser with local file support. |
| Scope | Minify one strict UTF-8 JSON document up to 2 MiB. Objects, arrays and scalar values are supported. |
| Operating Systems |
Local Processing Without Uploads
Minify JSON without uploading files. The browser-based tool runs offline with no upload.
Select Open Sample to see the workflow with the included example.
Strict JSON
Only spaces, tabs, carriage returns and line feeds outside string tokens are removed. Numeric spelling, key order, repeated keys, Unicode and string escapes remain.
Compare Bytes and Save the Compact JSON
For example, two spaces on each side of the JSON string "a b é" save exactly four bytes. Spaces inside the string remain.
Frequently Asked Questions
How can I minify JSON offline?
Use the Minify JSON download, extract the ZIP, and open JSONMinifier.html. The free Minify JSON tool includes a local sample.
Can I minify JSON in browser?
Yes. The local Minify JSON workbench compacts the text on your device.
Can I minify JSON online?
Open the hosted Minify JSON browser tool. Processing remains local.
Are repeated property names changed?
The tool retains every property in order and displays a count of repeated names. Downstream readers can interpret repeated names differently.
Which input is accepted?
Use one strict UTF-8 JSON value up to 2 MiB. The tool reports invalid JSON, including a trailing comma, extra data or a leading byte order mark.
Does the preview limit the result?
The on-screen preview can be shortened for large files. Copy JSON and Download JSON use the complete text.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.