CSS Minifier
Minify CSS to reduce file size by removing whitespace and comments.
About the CSS Minifier
Minification strips everything a browser does not need from a stylesheet – comments, line breaks, indentation and redundant characters – without changing how the CSS works. Smaller files download and parse faster, which helps First Contentful Paint because CSS blocks rendering.
Paste your CSS to get a minified version instantly, ready to copy or download. Comments starting with /*! (often licence notices) are preserved. For production sites, it is best to automate minification in your build tool or let your CMS, caching plugin or CDN handle it.
Frequently asked questions
Will minifying break my CSS?
It should not. This minifier only removes whitespace and comments and applies safe shortenings. Keep your original file for editing.
How much does minification save?
Typically 15–30% before compression. Combined with Gzip or Brotli the savings are larger.
Should I minify inline CSS too?
Yes, inline <style> blocks benefit as well, especially critical CSS placed in the <head>.