CSS Validator
Validate CSS syntax and property values, and find unknown properties, invalid values and parse errors with line numbers.
Tool
Was this tool useful?
About this tool
About CSS Validator
Check stylesheets for mistakes that browsers silently ignore, like misspelled properties or wrong units.
How it works
Parsed with css-tree, which checks property names and values against the CSS specifications.
Example
colr: red reports “Unknown property colr”, and width: 10 pz reports an invalid value.
How to use this tool
- Paste your CSS.
- Click Validate.
- Fix each error and warning listed with its line number.
Frequently asked questions
Is my code uploaded?
No. Everything runs in your browser, so your code and data stay on your device.
Why is a new CSS feature flagged?
Very new properties may not be in the validator’s data yet. Check browser support on MDN.
Does the CSS Validator send my data to a server?
No. The CSS Validator runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.