CSS Minifier Online — Remove CSS Comments and Whitespace

Minify CSS online by removing comments and unnecessary whitespace locally in your browser.

About this tool

This CSS minifier removes block comments, collapses whitespace around common syntax characters and removes final semicolons before closing braces.

How to use

  1. Paste CSS source.
  2. Minify it locally.
  3. Test the compact result in the target page.

Features

  • Removes block comments.
  • Collapses common syntax whitespace.
  • Requires no upload.

Common use cases

  • Reduce a small stylesheet.
  • Compact an embedded CSS snippet.
  • Prepare generated styles for delivery.

Common issues and tips

  • This is text-based rather than a full CSS parser.
  • License comments are removed with other block comments.

Privacy

CSS minification runs locally. Styles are not uploaded.

Frequently asked questions

Are comments removed?

Yes, block comments are removed.

Does it change selectors?

It mainly removes whitespace and comments.

Should I test output?

Yes, especially when CSS contains unusual strings or custom syntax.

Related tools