CSS Minifier & Beautifier
Private by design — runs entirely in your browser
Minify or beautify CSS in your browser. Toova strips whitespace and comments to shrink your stylesheets for production, or pretty-prints minified CSS into something you can actually read while debugging.
Two modes, one workflow
Minify mode removes every comment, every redundant space, and every unnecessary newline. The output is functionally identical CSS but typically 20-40% smaller, which speeds up first paint and reduces transfer size. Beautify mode goes the other way — it takes minified CSS from a CDN, a framework bundle, or a third-party widget and expands it into readable form so you can audit selectors and properties.
Configurable formatting
Pick 2-space, 4-space, or tab indentation for beautified output. Choose whether to keep comments (useful for header banners and license strings) or strip them entirely. The minifier preserves CSS variables and selectors verbatim, so custom property names and animation keyframes survive the round trip. Vendor prefixes are kept untouched.
Local-only
Every minify and beautify operation runs in your browser. The CSS you paste — whether it is proprietary stylesheets from your design system or third-party code you are auditing — never leaves the page. The Network tab will stay empty during processing, and the page works offline after first load.
Frequently Asked Questions
- How much smaller is minified CSS?
- Typically 20-40% smaller than the original after gzip. The savings come from stripping comments, whitespace, and redundant zero values. Modern build pipelines do this automatically, but having a manual tool is useful for one-off snippets.
- Will minification break my CSS?
- No. The minifier preserves every rule, property, and value verbatim. It only removes whitespace and comments. CSS variables, animations, and vendor prefixes survive untouched.
- Can I beautify CSS from a CDN?
- Yes. Paste the minified CSS and Toova expands it into readable form with consistent indentation. Useful for auditing what a third-party widget actually does or debugging a framework's compiled output.
- Are comments preserved?
- It is a toggle. By default, minification strips comments to maximize savings. You can keep license headers and other important comments by enabling the preserve-comments option.
- Is my CSS sent anywhere?
- No. Processing runs entirely in your browser. Nothing is uploaded or logged.