HTML Minifier
Minify HTML by removing comments, collapsing whitespace, and optimizing attributes.
Minify CSS by removing comments, collapsing whitespace, shortening colors, and removing zero units.
A tool that compresses CSS files to reduce their size.
It uses a state-machine approach that correctly identifies string literals, url() values, and comments, so color codes inside strings are never accidentally transformed.
Six options can be toggled individually: comment removal, whitespace collapsing, last-semicolon removal, color shortening, zero-unit removal, and url() quote removal.
Useful for improving page load speed and reducing HTTP response size.
No. Comments starting with `/*!` are used for license notices and are always preserved, even when the remove-comments option is enabled.
'#rrggbb' values where each pair has identical characters are shortened to '#rgb' (e.g. #ffffff → #fff, #aabbcc → #abc). Common named colors such as white, black, and red are also converted to their shorter hex equivalents.
Safe in most cases. Note that `0s` (used in transition-duration etc.) is also converted to `0`. Disable this option if you need compatibility with older browsers.
Quotes are only removed when the URL contains no whitespace, parentheses, or other special characters. Data URIs are automatically preserved.
No. All processing happens entirely in your browser.