CSS Formatter and Minifier
Pretty-print or minify CSS in one panel—switch Format and Minify anytime.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Pretty-print or minify CSS in one panel—switch Format and Minify anytime.
Minify HTML with a dedicated compression page.
Compress JavaScript—strip comments and whitespace with byte savings shown.
Format or minify HTML markup on your device.
Pretty-print or minify JavaScript in one panel—switch modes on the same input.
Beautify JavaScript with readable indentation—formatting only, no minify.
Format, minify, and validate JSON with optional key sorting.
Compare two JSON documents and list structural differences.
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.
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 stays on your device and is not uploaded.
FAQ
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 works on your device.
Page last reviewed: