CSS Validator
Check CSS for unbalanced braces and common syntax mistakes before you publish.
- Free
- No sign-up
- Runs in your browser
Checks syntax, property names and values against the CSS specifications. Custom properties (--x) and var() values are skipped.
Your result will appear here.
What does CSS Validator do?
CSS Validator checks your stylesheet before you publish: syntax errors, braces that are never closed, unknown property names (colr) and values that aren’t valid for a property (display: flexx), each with its line and column.
What you can use
CSS code: a snippet or a whole stylesheet.
How to use CSS Validator
- Step 1
Paste your CSS.
- Step 2
Run the check.
- Step 3
Fix the reported lines and check again.
Good to know
- One missing } can silently break every rule after it, so fix the first error first.
- Custom properties (--brand) and values using var() can’t be checked without the variables, so they are skipped.
Your privacy
Everything happens in this browser tab: what you paste is converted by JavaScript on your device and never sent to our server. Closing the tab clears it. Even so, don’t paste live passwords, API keys or customer records into any website.
Related tools
All Popular ToolsFrequently asked questions
Is CSS Validator free?
Yes. CSS Validator is completely free, with no sign-up, no watermark and no daily limit.
Is the data I paste sent to a server?
No. Conversion runs in JavaScript inside this browser tab and nothing you paste is sent or stored. Even so, avoid pasting live passwords, API keys or private customer data into any website.
Why do I get an error?
Almost always the input isn’t quite valid: a missing comma or quote in JSON, an unclosed tag in XML, or a tab in YAML. The error message shows where parsing stopped — fix that spot, or press “Load example” to compare with input that works.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, tablets and computers — nothing to install.