What minifying does
Browsers ignore comments, line breaks and indentation in CSS, but they still have to download them. Minifying removes them so the file is smaller and the page can be styled sooner.
This minifier only removes what is safe to remove. It does not rename, merge or rewrite rules, so the result behaves exactly like the original.
Minify and compress
Minifying and server compression such as Brotli work together. Compression already removes much of the repetition, so the gain from minifying is smaller after compression than the figure shown here, but it is still worth having.
Common questions
- Is my CSS uploaded?
- No. The minifier runs in your browser and sends nothing.
- Should I minify by hand?
- For a one-off file, pasting it here is fine. For a site you update, let your build tool do it on every release so the readable source stays in your project.