CSS Minifier & Beautifier
Minify or beautify CSS. Remove comments, collapse whitespace, shorten values. Shows compression percentage saved.
About this tool
CSS performance matters — every kilobyte of CSS blocks rendering. Minification removes unnecessary characters without changing the visual output.
CSS Minifier removes: - Comments - Redundant whitespace and newlines - Optional semicolons and braces - Unnecessary units (0px → 0) - Shorthand expansion (margin: 0 0 0 0 → margin: 0)
CSS Beautifier reformats compressed or minified CSS with proper indentation, newlines after each declaration, and consistent spacing. Turn a single-line production CSS file back into readable source.
Shows the original and compressed sizes with a savings percentage. Supports standard CSS, including custom properties (CSS variables), media queries, @keyframes, @supports, and modern selectors.
Frequently Asked Questions
Is CSS minification lossless?
How much does CSS minification save?
Does it support CSS variables?
What about vendor prefixes?
Related Tools
HTML Formatter
Format, beautify, and minify HTML. Auto-indent nested elements and collapse attributes. 100% client-side.
JS Minifier
Minify or beautify JavaScript. Shorten variable names, remove whitespace, and show compression savings.
CSS Gradient
Generate linear, radial, and conic CSS gradients with a visual editor. Copy CSS code instantly.
Box Shadow Generator
Visually generate CSS box-shadow and border-radius. Multiple shadow layers, live preview, copy CSS instantly.