Validate & Format · Runs in your browser
JSON Minifier
Compress JSON by removing every unnecessary space and line break, for smaller payloads and faster transfers.
Paste, drop or type your JSON
It’s checked as you type — nothing is uploaded.
Ctrl + V to paste · drop a .json file anywhere here
Drop your JSON file to load it
Ctrl Enter ValidateCtrl Shift F FormatCtrl Shift M MinifyCtrl Z Undo
How to use it
- Paste formatted JSON into the editor, or upload a .json file.
- Click “Minify” (or press Ctrl + Shift + M).
- Copy the compact JSON or download it. The status bar shows the new size.
Lossless
Minifying only removes whitespace outside of strings. The data is exactly the same — parse it and you get an identical value.
Validated first
Invalid JSON is never minified. If there’s an error, you’re taken straight to it.
When to minify
Use minified JSON for API payloads, config embedded in code, or storage. Keep formatted JSON for anything people will read or review.
More validate & format tools
All free, all private, all running locally in your browser.
JSON ValidatorFind and pinpoint syntax errorsJSON FormatterIndent JSON with spaces or tabsJSON Pretty PrintMake one-line JSON readableSort JSON KeysOrder keys alphabeticallyJSON RepairFix broken or AI-generated JSONJSON Error AnalyzerExplain why JSON won’t parseJSONC to JSONStrip comments and trailing commas