HTML, CSS & JS Minifier / Beautifier
Shrink or prettify code
Minify or beautify HTML, CSS and JavaScript with size savings shown. Your code is processed in the browser and never uploaded.
HTML, CSS & JS Minifier / Beautifier — Minify or beautify HTML, CSS and JavaScript with size savings shown. Your code is processed in the browser and never uploaded. Free on ToolWand: no sign-up, no watermark, works offline.
How to use HTML, CSS & JS Minifier / Beautifier
- 1Open HTML, CSS & JS Minifier / Beautifier. It runs in your browser, no sign-up.
- 2Type or paste your input.
- 3Copy or download the result.
About HTML, CSS & JS Minifier / Beautifier
HTML, CSS & JS Minifier / Beautifier shrinks HTML, CSS and JavaScript and shows the size saved, or re-indents minified code so it’s readable. JavaScript is minified with Terser.
When to use it
- Minify a snippet or small site without a build step.
- Make minified code readable while debugging.
- Check how much a file shrinks when minified.
Tips
- Beautify uses js-beautify with 2- or 4-space indents.
- Keep the original source; minified code is hard to edit.
Questions
How is JavaScript minified?
With Terser — the same minifier used by most bundlers — which removes whitespace, shortens variable names and simplifies code.
Is my code uploaded?
No. Minifying and beautifying run entirely in your browser.
Can it beautify minified code?
Yes. Beautify uses js-beautify to re-indent HTML, CSS and JavaScript.