GrowthGadgetAI video walkthrough
How to Use the CSS Minifier (Free)
Strip comments and collapse whitespace to compact a CSS stylesheet. A short video walkthrough of the free CSS Minifier.
Watch: how to use the CSS Minifier in 25 seconds
Video transcript
CSS Minifier. Strip comments and collapse whitespace to compact a CSS stylesheet. First, open the CSS Minifier. Then, fill in your details or upload your file. You get: your CSS with whitespace and comments removed to reduce file size. Free, and it runs in your browser. Try it free at growthgadgetai.com/tools.
What this video covers
Paste CSS and choose Minify or Beautify. Minifying removes comments and whitespace, drops the last semicolon in each rule and removes empty rules, while keeping strings, url() and calc() spacing intact and, optionally, /*! license */ comments. Beautify re-indents with nested media queries.
In this video
- 0:00 CSS Minifier. Strip comments and collapse whitespace to compact a CSS stylesheet.
- 0:07 First, open the CSS Minifier. Then, fill in your details or upload your file.
- 0:13 You get: your CSS with whitespace and comments removed to reduce file size.
- 0:18 Free, and it runs in your browser. Try it free at growthgadgetai.com/tools.
Steps shown
- Paste your CSS or open a .css file
- Choose Minify or Beautify and your options
- Check the size saved and the gzipped size
- Copy or download and test before deploying
Frequently asked questions
What does CSS minification do?
It removes comments and whitespace, the last semicolon in each rule and empty rules, so the stylesheet downloads faster. Strings, url() values and spacing inside calc() are kept so the rules behave the same.
How much smaller will my CSS get?
The saving depends on how much whitespace and how many comments the file has. Heavily commented, well-indented files shrink the most.
Should I keep the original CSS?
Yes. Keep the readable source for editing and only deploy the minified version, because minified code is hard to maintain.
More video walkthroughs for utilities
Open the related free tool