HTML / CSS / JS beautifier & minifier — offline
Readable or tiny — formatted on your device, with the real Terser compiler for JS.
100% private — files never leave your device
Input
Output
How it works
- 1
Pick the language.
- 2
Paste your code.
- 3
Beautify for readability or minify for size, then copy.
Related tools
Frequently asked questions
Is my source code uploaded?
No — beautifying uses js-beautify and JS minification uses Terser, both running in your browser. Proprietary code stays on your machine.
What can it format?
HTML, CSS, and JavaScript — beautify (readable indentation) or minify (smallest size). JS minification uses the real Terser compiler; HTML/CSS minification strips comments and collapses whitespace.
Does minified JS behave identically?
Terser performs safe transformations only — the output is functionally equivalent, just smaller.