How to minify CSS and how much it really saves
Smaller CSS loads faster. CSS minifier strips what browsers do not need.
Steps
- Paste your CSS.
- Choose whether to keep licence comments.
- Copy the minified result.
Use cases
- Quick one-off sites without a build tool.
- Inline CSS in emails and widgets.
- Checking how much space is wasted.
Tips
- Keep your readable source file and publish the minified one.
- Gzip or Brotli on the server saves more than minifying alone, and they work together.
- Test the page after replacing the file.