CSS minifier and beautifier
Minify CSS to make your site lighter, or format minified CSS to read and edit it, with the byte savings.
How to usePaste your CSS.
CSS minifier and beautifier: what it is for
The tool minifies CSS by removing comments, spaces, line breaks and unnecessary semicolons, and shows how many bytes you saved. License comments (/*!) and strings are kept.
In format mode, it goes the other way: it turns minified CSS into organized code, with one selector per line and indented properties.
How to use
- Paste the CSS.
- Choose minify or format.
- Copy the result.
When to use it
- Improving your site's speed and PageSpeed score.
- Reading another site's CSS.
- Organizing messy stylesheets.
Frequently asked questions
What does minification remove?
Comments, spaces, line breaks and the last semicolon in each block. Comments starting with /*! (licenses) are kept.
Does minification change how the CSS works?
No. It only removes what the browser ignores. Strings and url() are kept as they are.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.