Compress a stylesheet in your browser: comments, surplus whitespace, duplicate semicolons and empty rules go, colours and numbers get shortened. Nothing is uploaded.
Paste a stylesheet and this tool compresses it: comments, repeated whitespace, duplicate semicolons, empty rules and the last semicolon of every block are removed, colours such as #FFFFFF become #fff, and numbers such as 0.50 become .5. It works context-aware — a value inside url(...) or a CSS custom property declared as --name is left alone, and a hex value in a selector (an ID) is never shortened, because that would change which element is styled. Strings, calc() expressions and media features keep the whitespace they need. The result appears while you type, with byte counts before and after, the number of removed comments and empty rules, and copy plus download. Unclosed braces, unterminated comments and stray closing braces are reported instead of silently swallowed. Everything runs in your browser, so the CSS never leaves your device.
Free online utility tools. No signup. No tracking.
Impressum · Sitemap · Some links contain affiliate advertising
Nutzung auf eigene Gefahr. Diese Tools werden kostenlos und ohne Gewährleistung für Richtigkeit, Vollständigkeit, Verfügbarkeit oder Eignung für einen bestimmten Zweck bereitgestellt; Ergebnisse sind keine professionelle Beratung. Die gesetzliche Haftung — insbesondere für Vorsatz, grobe Fahrlässigkeit sowie für Verletzungen von Leben, Körper oder Gesundheit — bleibt unberührt.
Use at your own risk. These tools are provided free of charge without any warranty of accuracy, completeness, availability or fitness for a particular purpose; results are not professional advice. Statutory liability — in particular for intent, gross negligence and injury to life, body or health — remains unaffected.
Uso bajo su propio riesgo. Estas herramientas se ofrecen de forma gratuita y sin garantía de exactitud, integridad, disponibilidad o idoneidad para un fin determinado; los resultados no constituyen asesoramiento profesional. La responsabilidad legal — en particular por dolo, negligencia grave y daños a la vida, el cuerpo o la salud — no se ve afectada.
Utilisation à vos propres risques. Ces outils sont fournis gratuitement, sans garantie d’exactitude, d’exhaustivité, de disponibilité ou d’adaptation à un usage particulier ; les résultats ne constituent pas un conseil professionnel. La responsabilité légale — notamment en cas de dol, de négligence grave et d’atteinte à la vie, au corps ou à la santé — reste inchangée.