A CSS validator checks your stylesheets for syntax errors, unbalanced braces, and structural issues using the browser's native CSSOM API — the same parser that renders your pages. Paste CSS below to get an instant VALID/INVALID verdict with error details, rule counts, and syntax highlighting.

CSS Syntax Reference

Basic rule structure:

selector {
  property: value;
  property: value;
}

Common @rules:

  • @media — responsive breakpoints
  • @keyframes — animations
  • @import — import stylesheets
  • @font-face — custom fonts
  • @supports — feature queries