About CSS minification

CSS minification reduces file size by removing comments, unnecessary whitespace, and optimizing values, which speeds up page loading and saves bandwidth.

The tool performs safe transforms: removes comments, compresses whitespace, optimizes colors, and simplifies values. The styling logic remains unchanged.

For large projects, use cssnano or lightningcss in your build. This tool is handy for quick optimization of individual files or checking minification results.

How to use

  • 1

    Paste code

    Copy your CSS into the top field or write styles manually.

  • 2

    Pick options

    Keep checkboxes for comments, whitespace compression, and color optimization.

  • 3

    Minify

    Click Minify — result will appear below.

  • 4

    Save

    Copy the result or download `.min.css`.

FAQ