CSS Minifier
Compress CSS by removing comments and whitespace—see bytes saved.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Compress CSS by removing comments and whitespace—see bytes saved.
Format or minify HTML markup on your device.
Pretty-print or minify JavaScript in one panel—switch modes on the same input.
Minify HTML with a dedicated compression page.
Compress JavaScript—strip comments and whitespace with byte savings shown.
Format, minify, and validate JSON with optional key sorting.
Compare two JSON documents and list structural differences.
Format, minify, and validate XML with readable indentation.
Paste CSS and toggle between Format and Minify without leaving the page. Format expands rules with 2-space, 4-space, or tab indentation. Minify strips comments and whitespace for a smaller stylesheet. Ideal when you need both operations during development.
Paste your stylesheet into the CSS input area. Click Format to pretty-print with readable indentation, or Minify to compress for production. Choose indent style when formatting. Copy the result from the output panel—switch modes anytime without leaving the page.
Example: minified `.btn{color:red;padding:1rem}` becomes a multi-line formatted block with one property per line. Switch back to Minify to shrink a formatted file before deployment.
Paste CSS and switch between Format and Minify in one panel. Format expands rules with your chosen indentation (2 spaces, 4 spaces, or tabs). Minify strips comments and collapses whitespace. Both modes run on your device using js-beautify for formatting and a safe whitespace pass for minification.
Minify removes comments and whitespace only—not selector merging or value optimization. For a compression-focused page with byte stats, use CSS Minifier.
Your data stays on your device and is not uploaded.
FAQ
This tool switches between Format and Minify in one interface. CSS Minifier is a dedicated compression page with byte-size stats when you only need to shrink a stylesheet.
Yes. Paste minified CSS, choose Format, pick an indent style, and copy the expanded output.
No. Everything stays on your device.
Page last reviewed: