HTML Runner

CSS Minifier

Generate compact CSS from a parsed stylesheet while retaining declaration order and custom property values.

How to use CSS Minifier

Minify a stylesheet and paste the output into the runner’s CSS tab to check the resulting layout.

Limitations

The tool compacts syntax. It leaves cascade-dependent optimizations such as merging rules to your build pipeline.

Frequently asked questions

Will minifying fix invalid CSS?

Parsing errors are reported. Correct the syntax before minifying.

Test your web code in the live HTML workspace.

Related resources