Free CSS and HTML minifier. Remove whitespace, comments, and redundant code to reduce file size. Shows bytes and percentage saved.
Minification removes characters that aren't required for execution — comments, line breaks, indentation, and redundant whitespace — without changing what the code does. The result is byte-for-byte smaller and faster to download.
Yes. The tool only strips whitespace, comments, and optional trailing semicolons in CSS. Selectors, property values, attribute values, and tag content are preserved exactly. Both browsers and validators accept the output as-is.
It preserves content inside <pre>, <textarea>, <script>, and <style> tags verbatim — whitespace matters there. It also keeps IE conditional comments (the <!--[if IE]>…<![endif]--> blocks) untouched.
No. The minifier guarantees the output byte length is always less than or equal to the input. If a transformation would somehow grow the source (it shouldn't with normal input), the tool falls back to the original.
No. Everything runs locally in your browser using plain JavaScript string processing. Your CSS or HTML never leaves your device.