Skip to content

Minify CSS

Remove unnecessary whitespace and comments from CSS to reduce its size.

Processed on your device. Nothing is sent to any server.

Remove unnecessary comments and whitespace from CSS to reduce its size before publishing it.

Removes comments and whitespace around braces, colons and semicolons, reducing the file size without changing the styles it applies.

Use cases

  • Reducing a stylesheet's size before publishing it.
  • Optimizing a website's load time.
  • Preparing compact CSS to embed in an inline <style>.

How it works

  1. 1

    Paste your CSS

    Type or paste the formatted CSS code.

  2. 2

    Minify it

    Click Minify and copy or download the compact result.

Frequently asked questions

Could it break my CSS?
Minification is conservative (it only collapses whitespace and removes comments), but it's always good practice to visually check the result before publishing it.
Web & SEO