JSON Minify / Beautify
Pretty-print JSON with configurable indentation, or minify it to a single compact line. Runs in your browser.
Pure browser JavaScript — no external libraries.
How to use this tool
- Paste JSON or upload a .json file.
- Pick the indent (2 / 4 spaces or tab) and click Beautify, or click Minify to compress.
- Copy or Download the result.
Pretty-print JSON with configurable indentation, or minify it to a single compact line. Runs in your browser.
Frequently asked questions
- Is my JSON validated?
- Yes — it is parsed first, so invalid JSON is rejected with the parser's error message before formatting.
- Does minify change my data?
- No — it only removes insignificant whitespace; keys, values, and ordering are preserved.