CSS Minifier / Beautifier
Minify CSS to reduce file size or beautify minified CSS for readability. Removes comments, whitespace, and unnecessary characters. 100% browser-based, free, no signup.
About this tool
The CSS Minifier removes comments, whitespace, and unnecessary characters from your CSS to reduce file size. Smaller CSS files load faster, improving page speed and Core Web Vitals scores.
Use the Beautify mode to unminify compressed CSS back to readable, properly indented code. The formatter adds line breaks, indentation, and spacing to make minified CSS easy to read and edit again.
All processing happens entirely in your browser. Your CSS code is never sent to any server.
Frequently Asked Questions
What does CSS minification do?
CSS minification removes comments, whitespace, line breaks, and unnecessary characters from your CSS code. This reduces file size, which makes your pages load faster and improves Core Web Vitals scores.
Can I unminify CSS?
Yes. Click the Beautify button to convert minified CSS back to readable, properly indented code with line breaks and spacing.
Is my CSS sent to a server?
No. All minification and beautification happens entirely in your browser using JavaScript. Your CSS code never leaves your device.
How much can CSS minification save?
Typical savings range from 20% to 60% depending on the original CSS. Files with many comments and generous whitespace see the largest reductions.