CSS Formatter and Minifier
Pretty-print or minify CSS in one panel—switch Format and Minify anytime.
- Browser-based
- No signup
Developer
Private: processed on your device
Dedicated CSS compression for production. Paste a stylesheet, copy the minified output, and review before-and-after byte counts. Comments and extra spaces are removed while rule order and selectors are preserved.
Whitespace and comment removal only—no color shortening, selector merging, or unused-rule removal. Use CSS Formatter and Minifier to pretty-print and minify in one tool.
Paste CSS into the input editor. Minified output updates as you type. Use the Format button to switch to readable indentation, then copy the compact stylesheet for production.
Example: `.header { color: #111; /* brand */ padding: 1rem; }` minifies to `.header{color:#111;padding:1rem}`—about 40% smaller for this snippet, with comments removed.
Opens the CSS Formatter in minify mode. Removes block comments and collapses whitespace around braces, colons, semicolons, and commas while preserving rule order and selectors.
Whitespace and comment removal only—no color shortening, selector merging, or unused-rule removal. Use CSS Formatter and Minifier to pretty-print and minify in one tool.
Your data is processed in your browser and is not uploaded to our server.
CSS Minifier focuses on compression only—it removes comments and whitespace and shows how many bytes you saved. The combined formatter also lets you pretty-print CSS in the same panel.
No. It compresses whitespace and strips comments. It does not shorten colors, remove unused selectors, or run advanced optimizations.
No. Minification runs entirely in your browser.
Pretty-print or minify CSS in one panel—switch Format and Minify anytime.
Minify HTML — same engine as HTML Formatter, opens in minify mode.
Compress JavaScript—strip comments and whitespace with byte savings shown.
Format or minify HTML markup in your browser.
Pretty-print or minify JavaScript in one panel—switch modes on the same input.
Beautify JavaScript with readable indentation—formatting only, no minify.
Page last reviewed: