Quecko Logo

Free tool • Runs in your browser

CSS minifier

Minify CSS by removing comments and unnecessary whitespace, and see the bytes saved.

Loading tool...

Quick answer

Minifying removes characters browsers do not need, without changing how rules work. Keep your original source for editing and ship the minified copy.

How to use it

  1. Paste your CSS.
  2. Read the minified result and size saved.
  3. Copy or download the output.

Example

Input
a {
  color: red;
}
Output
a{color:red}

Common errors and how to fix them

The output looks broken
Check the source for an unclosed comment, string or bracket.

Frequently asked questions

How do I minify CSS online?

Paste your CSS here and copy the minified result. The size saved is shown underneath.

What is CSS minification?

It removes characters that browsers do not need, such as comments and extra spaces, without changing the rules.

How do I minify a CSS file?

Paste the file's contents here and download the result. Build tools can also do this automatically.

How do I minify CSS in VS Code?

Use an extension that minifies files, or paste your CSS here.

How do I minify CSS in WordPress?

Use a caching or optimisation plugin that includes CSS minification, and test your site afterwards.

How do I minify Tailwind CSS?

Use Tailwind's build command with its --minify option, or run the output through your build tool.

Should I minify CSS and JavaScript?

Yes, for production sites. It reduces file size, and it works well alongside gzip or Brotli compression.

What is the reverse of CSS minification?

Formatting or beautifying. It restores readable spacing, but not your original comments.

Does this rename or merge my CSS rules?

No. It only removes comments and safe whitespace.

Is what I paste uploaded?

No. Everything runs in your browser and nothing is sent to Quecko.

More developer tools

Need something built for your business?

Quecko designs and builds AI, Web3 and custom software products.

Start a Project