developer
Free
No signup
HTML / CSS / JS Minifier
Minify HTML, CSS, and JavaScript to reduce file size — runs entirely in your browser.
Loading tool…
About this tool
Reduce the size of your HTML, CSS, and JavaScript files for faster page loads. Switch between three tabs, paste your code, and see the minified output instantly along with the original size, minified size, and percentage reduction. HTML minification strips comments and collapses whitespace; CSS removes comments and whitespace; JS strips line and block comments and collapses whitespace.
How to use
- 1 Select the HTML, CSS, or JS tab.
- 2 Paste your source code into the input.
- 3 The minified output and size reduction appear automatically.
- 4 Click 'Copy Output' to copy the minified code.
Frequently Asked Questions
Related tools
JSON Formatter & Validator
Format, validate, and minify JSON — with syntax error pinpointing.
Base64 Encoder / Decoder
Encode or decode Base64 strings — works for text and files.
HTML Entity Encoder / Decoder
Encode special characters to HTML entities and decode entities back to plain text — supports named and numeric entities.