CSS Minifier
Shrink CSS source while keeping selectors, values, and important token separators intact.
- Free
- Works Offline
- No Uploads
How to Minify CSS
- Open the HTML, review Security Check, then select Continue.
- Paste CSS, open a UTF-8 .css file, or select Open Sample.
- Choose Remove Ordinary Comments or Keep All Comments, then select Minify CSS.
- Review both byte counts and the plain-text preview. Choose Copy CSS or Download CSS.
Conservative Source Compression
- Preserve selectors, custom properties, strings and URLs.
- Keep license notices and separators such as spacing inside calc.
- Reject malformed input with a source line and column when available.
Formats and Compatibility
| Input | Paste one stylesheet or open a local UTF-8 .css file. Select whether to remove ordinary comments. |
|---|---|
| Output | Review the exact original and minified UTF-8 sizes. Copy or download the full minified CSS. |
| Browser | A modern browser with local file support. |
| Scope | Minify one UTF-8 CSS stylesheet up to 256 KiB. The tool reduces verified source whitespace and ordinary comments. |
| Operating Systems |
Local Processing Without Uploads
Use this browser-based tool to minify CSS without uploading files.
Select Open Sample to see the workflow with the included example.
Stylesheet Syntax and Token Boundaries
The parser checks stylesheet syntax. The minifier preserves selectors, custom-property text, strings, URLs, and license comments.
Compare the CSS Byte Counts
Review the source-text preview and read exact byte savings before copying or downloading. The tool preserves rule order and leaves cross-rule optimization to other workflows.
Frequently Asked Questions
How do I minify CSS offline?
Use the Minify CSS download, extract the ZIP, and open CSSMinifier.html. The free Minify CSS tool includes a sample.
Can I minify CSS in browser?
Yes. The local Minify CSS tool processes the stylesheet on your device.
Can I minify CSS online?
Open the hosted Minify CSS browser tool. Processing takes place on your device.
What happens to license comments?
The tool retains marked license or attribution notices and any comments needed to separate tokens.
What happens if a stylesheet is malformed?
The workbench reports the source issue, keeps the original text in the editor, and makes the output available after a successful retry.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.