CSS minimieren

Unnötige Codeformatierung entfernen; das Ergebnis bleibt Text, keine komprimierte Datei.

Eingabe: TextErgebnis: Text

Texteingabe

Optionen

Beispiele

Compact a flex layout for a copied style tag

Eingabe

.toolbar { display: flex; gap: 8px; align-items: center; }

Expected answer

.toolbar {display: flex;gap: 8px;align-items: center;}
Kommentare beibehalten
Off
Keep the attribution comment in a distributed theme

Eingabe

/* Theme fragment: CC0 */
:root { --accent: #005fcc; }
a { color: var(--accent); }

Expected answer

/*Theme fragment: CC0 */:root {--accent: #005fcc;}a {color: var(--accent);}
Kommentare beibehalten
On
Remove a development note from a hover rule

Eingabe

/* temporary debug border removed */
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px #ccc; }

Expected answer

 .card:hover {transform: translateY(-2px);box-shadow: 0 2px 4px #ccc;}
Kommentare beibehalten
Off
Compact an RGB color and a quoted font family

Eingabe

h1 { color: rgb(12, 34, 56); font-family: "Times New Roman", serif; }

Expected answer

h1 {color: rgb(12, 34, 56);font-family: "Times New Roman", serif;}
Kommentare beibehalten
Off
Reduce a reduced-motion override

Eingabe

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

Expected answer

@media (prefers-reduced-motion: reduce) {.spinner {animation: none;}}
Kommentare beibehalten
Off

Parameter

ParameterStandardwertEingabe und Auswahl
Kommentare beibehaltenfalseEin oder aus

Ähnliche Werkzeuge

Code-Bereinigung

Referenz zur Operation

Technische Originaldokumentation ansehen (English)