★

CSS Minifier

Minify CSS by removing comments, spaces and line breaks.

Updated · Free · No sign-up

Send on WhatsApp

How to use the CSS Minifier

Type or paste your text into the first box. The result appears immediately in the second box, ready to copy or download. Replace the sample text with your own.

Worked example

Input:

/* card */
.card {
  color: #333;
  margin: 0 auto;
}

Output:

.card{color:#333;margin:0 auto}

Frequently asked questions

What does the CSS Minifier do?

Minify CSS by removing comments, spaces and line breaks.

Is the CSS Minifier free to use?

Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.

Related online tools