Skip to content
SEO ToolsInstant

CSS Minifier

Minify CSS stylesheets by stripping comments and extra whitespace.

Examples

See what this tool can do.

Shrink a stylesheet

Cut comments and spacing to reduce CSS size.

Inline compact CSS

Produce tight CSS to inline in a page head.

Tips & tricks

Get the most out of it.

  • 1Keep a readable source file and minify as a build step.
  • 2For unused-CSS removal, use a dedicated build tool.
  • 3Test the page after minifying to confirm styles are intact.

About CSS Minifier

What this tool does

CSS Minifier compresses stylesheets by stripping comments and extra whitespace.

How to use it

  • Paste your CSS.
  • Minify it.
  • Copy the compact output.

How it works

The tool removes CSS comments and collapses whitespace around braces, colons and semicolons while keeping the rules intact.

Important considerations

  • This is whitespace-level minification, not a full optimiser — it won't merge rules or remove unused CSS.

Privacy

This tool runs entirely in your browser. The text, HTML or settings you enter are processed locally and never uploaded to a server.

Related SEO tools

Frequently asked questions

No. It performs safe whitespace and comment removal. Removing unused selectors requires a tool that analyses your pages.

Related tools