About the CSS Minifier
The CSS Minifier runs entirely in your browser — your data never leaves your machine. Paste, click and copy the result.
Every byte of CSS is a byte your visitors must download. This minifier strips comments, collapses runs of whitespace and removes the spaces around braces, semicolons and commas to produce the smallest equivalent stylesheet.
How to use this tool
- Paste your stylesheet into the input box.
- Leave “Remove comments” ticked to drop /* … */ blocks.
- Click Minify CSS and copy the compressed output.
- Check the stats line to see the size saving.
What gets removed
- Comments beginning with
/*. - Extra spaces, tabs and blank lines.
- Spaces around
{ } ; ,and combinators. - The final semicolon before a closing brace.
Developer tip
Always keep an unminified copy as your source of truth — minified CSS is hard to edit by hand. Build tools such as PostCSS and esbuild can minify automatically in a pipeline.
Who is this tool for?
Front-end developers shaving kilobytes off stylesheets, and anyone inlining critical CSS for faster page loads.