Skip to content

CSS validator with line-by-line detection

Paste a stylesheet and check whether each declaration is valid for the browser. The validator highlights the line, property and value causing the problem.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · CSS Validator

Runs in your browser · 100% local

Se comprueba la sintaxis y si el navegador reconoce cada propiedad y valor con CSS.supports().

CSS válido2 bloque(s) · 6 declaración(es)

No se han detectado errores. Las propiedades experimentales pueden aparecer como no válidas si el navegador aún no las admite.

Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Paste the full CSS or the snippet you want to check.

02

Read the list of problems, organised by line.

03

Correct any misspelt properties and values that the browser does not support; then validate again.

Examples

Examples

Incorrectly written property

‘colour: red’ is flagged as invalid because the correct property in CSS is ‘color’.

Key not turned

If a ‘}’ is missing, the validator indicates how many closing curly brackets are missing at the end of the file.

Reference guide

What you need to know

Validation combines a structural analysis of keys and declarations with CSS.supports(), the same API that the browser uses to determine whether it supports a property and a value. This is why the result depends on the browser you use to open the page: an experimental property may appear as invalid if that version of the browser does not yet support it.

The validator does not replace a style linter, nor does it check for accessibility, specificity or cross-browser compatibility. For that, you need tools such as Stylelint, Autoprefixer or the data from Can I Use.

Frequently asked questions

Frequently Asked Questions

This may be experimental, require a prefix, or not be supported by your browser. Please check compatibility before changing it.

Related tools

Other tools that can help with similar tasks.

More at Web development→
Online CSS validator with errors per line · ByTooly