CSS Minifier & Beautifier
Use this CSS minifier to make CSS smaller so your site loads faster. Besides removing spaces and comments, it shortens values (like #ffffff → #fff) and safely merges repeated rules. Or switch to Beautify to read minified CSS.
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Paste your CSS or open a .css file.
- 2Choose Minify or Beautify and the options.
- 3Copy or download the result.
Frequently asked questions
What does “Merge and shorten rules” do?
It joins selectors with the same styles and removes overridden declarations, using CSSO's safe restructuring. Turn it off if you want only spaces and comments removed.
Is my license comment kept?
Yes. Comments starting with /*! are kept by default.
Is my data sent anywhere?
No. Everything runs in your browser, so your text and code stay on your device.
More free tools
Meta Tag GeneratorCreate SEO and social meta tags with live previews.On-Page SEO CheckerCheck a page's HTML for 20+ SEO problems.Robots.txt Generator & TesterCreate a robots.txt file and test URLs against it.XML Sitemap GeneratorMake a sitemap.xml from a list of your pages.Schema Markup Generator (JSON-LD)Create structured data for rich results in Google.Google SERP PreviewSee how your page will look in Google results.