CSS Formatter

Format or minify CSS, with strings, url()s and custom properties kept exactly as written.

261 / 500,000 characters

Formatted CSS

/* Pond styles */
:root {
  --water: #3a6ea5;
  --pad: 8px  16px;
}
.card, .card--wide {
  background: var(--water);
  padding: var(--pad);
  margin: 0px;
}
@media screen and (min-width: 600px) {
  .card {
    padding: 1rem;
  }
  .card:hover {
    background: #aabbcc;
  }
}

261 bytes → 275 bytes (5% larger)

Every block is closed and every declaration ends in a semicolon.

Strings, url()s and custom property values are never rewritten. Minifying also shortens #aabbcc to #abc and 0px to 0, except inside calc() and friends, where the unit is the type.

More in the yard