CSS Minifier
Minify CSS for faster loads.
Runs entirely in your browser — your input never leaves your deviceAbout this tool
Paste your CSS and get a compact, single-line version with comments and unnecessary whitespace removed and redundant semicolons trimmed. The size report shows exactly how many bytes you saved, which translates into faster page loads.
It is a fast, lightweight minifier for stylesheets and snippets, running entirely in your browser.
Why use it
Fast and lightweight
Strips comments and whitespace to a compact line.
Size report
See the byte saving instantly.
Private
Runs entirely in your browser.
Common use cases
- Minify a stylesheet for production
- Compress a CSS snippet
- Reduce inline-style weight
- Quickly shrink a component's CSS
Frequently asked questions
How much smaller will my CSS get?
It depends on how much whitespace and how many comments your file has — heavily formatted stylesheets often shrink 20–50%. The tool shows the exact saving.
Will it break my styles?
It removes comments and whitespace and trims redundant semicolons, which is safe for standard CSS. Keep your original source and use the minified version for production.
Is my CSS uploaded?
No. Minification happens entirely in your browser.
Should I minify CSS in production?
Yes — smaller CSS downloads and parses faster. Most build tools do this automatically; this tool is handy for quick one-off minification.