Code Minifier
Shrink HTML, CSS and JavaScript — strip comments and whitespace to make files smaller and load faster.
About Code Minifier
The Code Minifier shrinks HTML, CSS and JavaScript by stripping comments, insignificant whitespace and line breaks, so the files you ship are smaller and load faster. Paste code straight into the editor or upload a file, pick the language, and minify with one click.
The result pane shows the minified code next to a size comparison — original bytes, minified bytes and the percentage saved — so you can see exactly what the pass earned you. Copy the output to your clipboard or download it as a file ready to deploy.
Minification is conservative: it removes what browsers ignore rather than rewriting your logic, which makes it safe for hand-written code and templates alike. Files are uploaded only when you choose file mode and are processed and cleaned up automatically.
How to use Code Minifier
- Choose the language: HTML, CSS or JavaScript.
- Paste your source code, or switch to Upload file and drop the file in.
- Click Minify and wait a moment.
- Review the size savings — original vs minified — then copy or download the result.