Home / Developer / CSS Minifier & Formatter
CSS Minifier & Formatter
Minify CSS to save bytes or beautify it with one declaration per line, keeping strings and calc() intact.
Free, no uploads, no sign-up. Runs 100% in your browser.
How CSS Minifier & Formatter works
Your code is processed in this tab with plain TypeScript. Nothing is uploaded. A small tokenizer walks the stylesheet so strings and comments are never changed by mistake. It removes comments (except /*! licence */ ones), whitespace and the last semicolon in each rule, and keeps the spaces calc() and media queries need.
Input: CSS, Text. Output: CSS.
How to use CSS Minifier & Formatter
- Paste CSS or open a file.
- Pick Minify or Beautify.
- Check the size saved.
- Copy or download the result.
Tips
- Everything is computed locally. Safe for tokens, keys and private data.
- Use Ctrl/⌘ + K to jump between developer tools quickly.
CSS Minifier & Formatter FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free. There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- HTML Minifier & Formatter: Minify HTML by removing comments and extra whitespace, or beautify it with clean indentation.
- PX to REM Converter: Convert px to rem and back with any root font size, a table of common sizes, and whole stylesheet conversion.
- CSS Studio: Box shadows, glassmorphism and neumorphism generators.
- JSON Formatter: Prettify, validate, minify and explore JSON as a tree.