CSS Minifier
Minify CSS by removing comments and unnecessary whitespace while preserving string values. Everything runs in your browser.
FAQ
Is my CSS sent to a server?
No. All minification happens entirely in your browser and no code leaves your device.
What gets removed?
Comments (/* */), repeated whitespace and line breaks, spaces around punctuation, and trailing semicolons.
Are string values like content safe?
Yes. Whitespace inside quoted strings is preserved exactly.
Related tools
Strip tags, comments, and scripts from HTML to extract plain text, decoding entities along the way. Everything runs in your browser.
Format JSON for readability or minify it to a single line. Syntax errors are shown instantly.
Collapse extra spaces, remove all whitespace, or trim line ends in one click.
Convert between HEX, RGB and HSL color codes with a live preview.
Generate a HEX palette of tints and shades from a base color—useful for design-system color scales. Everything runs in your browser.
Convert between px, rem, em, pt, and % based on a root font size. Handy for responsive typography. Everything runs in your browser.