CSS Minifier / Beautifier works in both directions. Minify strips comments, line breaks and unnecessary spaces to produce the smallest equivalent stylesheet. Beautify does the reverse, expanding compressed CSS into one declaration per line with indentation so it can be read and edited.
The original and output sizes are shown so you can see the saving. The tool works on the text of your CSS; it does not merge duplicate rules, remove unused selectors or rewrite values.
Advertisement
How to use CSS Minifier
1
Paste CSS
Add the stylesheet to the input.
2
Choose Minify or Beautify
Switch modes at the top.
3
Copy the output
Check the size and copy.
Use Cases
- Shrinking a stylesheet for a site without a build step
- Reading a minified file from someone else's site
- Tidying CSS before pasting into a CMS
Frequently Asked Questions
No. Only whitespace and comments are removed.
Typically 15 to 30 percent, more if the file is heavily commented.
No. That requires analysing your HTML, which tools such as PurgeCSS do at build time.
Yes, CSS Minifier is 100% free with no usage limits, no watermarks, and no hidden charges. The platform is supported by non-intrusive advertising so all tools stay free for everyone.
Yes. CSS Minifier runs entirely in your browser using client-side JavaScript. Your files and data never leave your device and are never transmitted to our servers.