CSS Minifier and Beautifier — Parse and Format Styles
Developer Tools
About This Tool
Minify or format CSS with a syntax-aware engine that preserves quoted content and calc expressions. Compare character counts and copy the result.
How to Use
- Paste CSS, up to 1,000,000 UTF-16 units.
- Choose Minify or Beautify.
- Review any parser error and test the output with your page.
- Copy the result.
Compact or readable CSS
Minify parses the stylesheet before removing unnecessary syntax and whitespace. Rule restructuring is disabled. Beautify checks the input with the parser and then applies indentation. Quoted content and required spacing in calc expressions are handled as CSS rather than by global text replacement.
Check the result in context
The counters use UTF-16 units, not transferred bytes. The input limit is 1,000,000 units. This tool does not render a page, check visual equivalence, add vendor prefixes or compile Sass. Keep an original copy and test the result with the HTML and browser where it will run. The parser loads from this site; shared services are covered by the privacy policy.
Frequently Asked Questions
Does it compile Sass or Less?
Are the size counters bytes?
Guides & Tutorials
In-depth guides for every tool. Learn how to process your data privately, for free, right in your browser.
Read more