Skip to content
Web Codes Stack
Explore Free Tools

HTML / CSS / JS Minifier

Minify HTML, CSS, or JavaScript in your browser. Compare file sizes, then copy or download the result.

Minify code and check the savings

Choose the language and select Minify code. The tool reports the input and output sizes in UTF-8 bytes, so you can compare how much the file shrank. If a parser reports a syntax error, correct the source and run the minifier again.

Keep preformatted HTML content in elements such as <pre> and <textarea> so its whitespace can be preserved.

Your browser may fetch fixed versions of the minifier libraries. A Web Worker processes the source locally.