Back to Developer Tools

CSS Minifier

Minify CSS by removing comments and whitespace, or beautify it for readability. See size reduction stats.

About This Tool

Free CSS minifier online — compress CSS by removing whitespace, comments, and unnecessary semicolons to reduce file size. Smaller CSS files load faster, reducing page weight and improving Core Web Vitals scores (particularly LCP and FID). This free CSS compressor is ideal before deploying a website — minified CSS can be 30–70% smaller than the original. Paste your full CSS, click Minify, and copy the compressed output directly into your build or CDN. Unlike build tools like Webpack or Vite, this tool requires no configuration — it works for quick one-off minifications without any local setup.

How to Use

  1. 1

    Paste your CSS

    Paste your full CSS code into the input.

  2. 2

    Click Minify

    The tool removes all comments, whitespace, and redundant syntax.

  3. 3

    Copy the minified CSS

    Copy the compressed CSS for use in your project.

Frequently Asked Questions

Does minifying CSS break anything?+
No. Minification only removes characters that have no effect on how browsers parse CSS: whitespace, line breaks, and comments. The functionality is identical.
How much smaller does CSS get after minification?+
Typical CSS files shrink 30–60%. A stylesheet with many comments and consistent indentation can shrink even more. The exact savings depend on how much whitespace and how many comments are in the original.

Related Tools

JS Minifier

Try it free →

HTML Formatter

Try it free →

JSON Formatter

Try it free →