/ TOOL · CSS minify & beautify

CSS Minifier

Paste CSS stylesheet. Minify for production or beautify for debugging — everything runs locally in your browser.

waiting for input
Input · CSS 0 chars · 0 B
Output · Compressed 0 B
/ FAQ

Frequently asked questions

What is CSS minification?

CSS minification is the process of removing unnecessary characters from CSS code (whitespace, comments, newlines) and optimizing selectors and properties to reduce file size without changing how styles are applied.

Does this tool send my code to a server?

No. Everything runs entirely in your browser using JavaScript (CSSO for minification, css-beautify for formatting). Your code is never uploaded anywhere.

What is the difference between minify and prettify CSS?

Minify removes all unnecessary characters to make the CSS file as small as possible for production. Prettify (beautify) adds proper indentation, line breaks, and spacing to make minified or messy CSS readable again.