Skip to main content

CSS Minifier

Minify CSS locally by removing comments and extra whitespace.

Tool workspace

Minify CSS in your browser by removing comments and extra whitespace. Strings and url() contents are preserved. Styles are not injected or uploaded. Not a bundler-equivalent build step.

How it works

Paste CSS, then Minify.

Minification runs entirely in your browser: comments and unnecessary whitespace are removed while quoted strings and url() contents stay intact. Styles are never injected, executed, or uploaded. Remote @import URLs are not fetched.

Empty input clears the result—no error. This is not a full CSS validator or a production bundler (cssnano/clean-css) equivalent.

Examples

  • /* comment */ body { margin: 0; } → body{margin:0}
  • Preserve url("bg.png") and quoted strings
  • Status shows before → after character counts when useful

Privacy

Privacy: this tool processes CSS locally in your browser. We do not log or store what you paste. Login is not required.

FAQ

Is my CSS uploaded?

No. Minification runs entirely in your browser. We do not log or store what you paste.

Will this match my bundler’s minifier?

Not necessarily. This is a safe best-effort minifier for pasted stylesheets, not a production build pipeline.

Do I need an account?

No. All published tools work for guests without login.