Code · Made a little simpler

CSS Validator

Validate a stylesheet or standalone CSS declarations locally. Jump to syntax errors and known value mismatches by line and column, then download a JSON report.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Validator: how to use it

  1. Paste CSS or open a local UTF-8 file. Choose Stylesheet for selector rules or Declaration list for property and value pairs.
  2. Validate the source with supported value grammar enabled. Select a reported line and column to jump to the CSS in the editor.
  3. Correct the relevant values and recheck. Download a JSON report if you need the findings outside the editor.

Limits and notes

Up to 200,000 UTF-16 code units, 96 nested blocks or functions and 200 detailed findings. The checker covers CSS structure and the installed selector and value grammars. It reports variable-dependent values and unavailable grammar as warnings. The browser never applies the supplied CSS or opens its referenced files.

How your privacy works →

CSS Validator: common questions

Does this accept nested CSS?

Yes. It reads supported nested rules and checks the declarations inside them. Target-browser support depends on the selectors and values the stylesheet uses.

Why does var() get a warning?

The final value depends on the custom property available at runtime. Use the warning to identify which declaration needs a check in the target page.

Can I check a style attribute?

Paste the attribute’s content and choose Declaration list. Paste full selector blocks in Stylesheet mode.

Tool guides