Code Minifier
Remove whitespace, strip comments, and shrink code across 9 languages — entirely in your browser.
⚡ Client-side
🔒 No upload
📦 9 Languages
Language
Minification Options
(HTML)
Input
0 B
0 lines
Output
0 B
📁
Batch Minify
Drop multiple files or to minify all at once and download as ZIP
💡 How Code Minification Works
HTML
Collapses whitespace between tags, removes HTML comments, shortens boolean attributes, removes optional closing tags (optional), and trims attribute values.CSS / JS / TS
Strips block and line comments, compresses whitespace, removes trailing semicolons, eliminates empty rules (CSS), and collapses multi-line declarations.Python / Ruby / PHP / Java / Rust
Removes single-line and block comments, strips blank lines, trims trailing whitespace per line, and compresses indentation.