Minify
.a > .b , .c { color : red ; margin: 0 auto; } → .a>.b,.c{color:red;margin:0 auto}
Minify CSS to make it smaller, or beautify minified CSS to make it readable.
Runs in your browser — nothing you enter is sent to a server.
Verified pick · Referral link
Affordable web hosting with free SSL and an easy control panel. ToolsServer itself is hosted on Hostinger.
If you sign up through this link, ToolsServer may receive a reward at no extra cost to you. Offer and terms are set by Hostinger and may change.
Minify removes comments and every space the browser doesn't need, and shows how many bytes you save. It's deliberately safe: strings, url() values and license comments (/*! … */) are kept, spaces that change meaning — like the one in div :first-child or inside calc() — stay, and values are never rewritten.
Beautify does the opposite: it formats minified CSS with one declaration per line and indented blocks, so you can read it.
saved = (1 − minified bytes ÷ original bytes) × 100%
.a > .b , .c { color : red ; margin: 0 auto; } → .a>.b,.c{color:red;margin:0 auto}
width: calc(100% - 2 * 10px); keeps its spaces — without them, calc() stops working.
Typically 15–30% before compression, depending on comments and formatting. Your server's gzip or Brotli compression saves much more on top.
Those tricks save a few bytes but can break edge cases. Build tools like Lightning CSS or cssnano do deeper optimization as part of a build.
No — JavaScript needs a full parser to minify safely. Use your build tool for that.
Format, validate and minify JSON, with the exact line and column of any error.
Developer Tools
Convert colors between HEX, RGB, HSL, HSV and CMYK, and check their contrast against white and black.
Converters
Escape text for HTML (< & ") or decode HTML entities back to characters.
Developer Tools
Build color palettes from a base color with color-wheel harmonies, with HEX, RGB and HSL values.
Generators
Beautify messy HTML with indentation, or minify it — keeping pre, script and style content intact.
Developer Tools
Design linear, radial and conic CSS gradients with a live preview and copy the CSS.
Design Tools