HTML/CSS/JS Minifier
Minify HTML, CSS or JavaScript, see size reduction, then copy or download the result.
Loading tool…
Runs locally in your browser. Your files are never uploaded.
About this tool
Large web files slow down page loads, especially when they contain unnecessary whitespace or comments. This tool compresses HTML, CSS and JavaScript using Terser for JS and CSSO for CSS, shows how many bytes were saved, and lets you copy the minified code or download it as a file, all without sending data to a server.
How to use it
- Paste or drop your HTML, CSS or JS code into the editor.
- Press Minify to compress the code and view saved bytes.
- Copy the minified output or download it as a file.