Skip to main content

Code Minifier

New

Minify HTML, CSS, and JavaScript by removing unnecessary whitespace and (optionally) comments.


A code minifier helps developers reduce payload size before shipping drafts, embedding code in previews, or preparing assets for faster delivery. Even simple whitespace removal can improve transfer times and reduce copy/paste overhead.

This tool provides safe and compact modes. Safe mode focuses on whitespace normalization, while compact mode removes comments and collapses formatting more aggressively to produce smaller output.

Minification runs in your browser only. Your data never leaves your browser.