← Developer Tools

Code Minifier

Minify HTML, CSS or JavaScript using a browser-based parser when supported. Everything runs locally in your browser.

HTML whitespace can affect layout, so this tool conservatively removes comments only. JavaScript uses a safe whitespace-preserving mode to avoid breaking code. For production-grade minification use a dedicated parser/build tool.