CSS Minifier
Readable CSS contains indentation, line breaks and comments that help during development. Browsers do not need most of that formatting when serving a production stylesheet.
Paste valid CSS below to create a smaller copy. Keep your readable source file for future editing.
Test the minified file before deploying it. This tool removes comments and unnecessary whitespace but does not validate or repair CSS.
What the tool removes
The minifier removes ordinary block comments, collapses unnecessary whitespace and removes the final semicolon before a closing brace. It preserves quoted strings and the spaces around mathematical operators, including operators used inside calc().
Select the licence option to preserve comments beginning with /*!.
The tool reports the original size, minified size and reduction. You can copy the result or download it as styles.min.css.
Test before deployment
CSS minification is not validation. Test the downloaded file on a staging site before replacing a production stylesheet, particularly when the source contains custom properties, generated content, data URLs or newer CSS syntax.
Privacy
Your CSS remains in the browser. The plugin does not send it to WordPress or a third-party service.
Frequently Asked Questions
Does minifying CSS improve page speed?
A smaller stylesheet reduces transferred bytes. The practical effect depends on the original size, compression, caching and the rest of the page.
Will the tool change how the CSS works?
It uses conservative transformations intended to preserve behaviour. You should still test the result before production deployment.
Does it preserve calc() expressions?
Yes. The minifier retains spaces around mathematical operators rather than applying the unsafe removal used by the previous version.
What happens to comments?
It removes ordinary block comments. You can preserve licence comments that begin with /*!.
Can I minify SCSS or LESS?
No. Compile preprocessor source into valid CSS first.
Does the tool validate CSS?
No. It neither repairs syntax errors nor confirms browser support.
Is my stylesheet uploaded?
No. Processing happens in your browser.
