DevToolBox
CSS Tools

CSS Minifier

Minify CSS to reduce stylesheet size before shipping or embedding.

Processing and previews run locally in your browser. CSS is not uploaded to a server, and live previews are isolated to the preview element.

Load sample
0 chars · 1 lines
0 chars · 1 lines

How to use

  1. 1Paste CSS into the input editor.
  2. 2Choose whether to preserve important comments, then click Minify CSS.
  3. 3Review the size reduction and copy or download the result.

Notes

  • Minification removes unnecessary whitespace through AST generation.
  • Important comments starting with ! can optionally be preserved.

Behavior details

  • Size savings use UTF-8 byte lengths.
  • Invalid CSS is rejected and never minified silently.

Frequently asked questions

What is the CSS Minifier?

The CSS Minifier is a free DevToolBox utility that processes data locally in your browser.

Are my inputs stored?

No. This tool processes data in your browser and does not upload your input to a DevToolBox server.

Do I need an account?

No account is required to use this tool.

Will minification change how my CSS behaves?

The minifier removes whitespace and optional comments through AST generation. It does not intentionally rewrite selectors or values in a behavior-changing way.

Related CSS tools

View category