Free HTML Validator Online

Validate HTML5 markup with the official W3C Nu checker. Paste code or enter a URL to see errors and warnings with line, column and highlighted source. Free.

  • Sends your HTML or URL to the W3C validator
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Validate HTML and Fix the Most Common Validator Errors →

About the HTML Validator tool

Browsers are forgiving: they silently repair unclosed tags, duplicate IDs and elements in the wrong place, so broken HTML often looks fine until it breaks a screen reader, a CSS selector, an email client or a search engine’s parser. An HTML validator catches those mistakes. This tool sends your markup to the official W3C Nu HTML Checker, the same validator behind validator.w3.org, and presents the results in a clear, filterable list.

You can validate in two ways. “Paste HTML” posts your code directly to the checker, which is ideal for snippets, templates and pages that are not online yet. “Validate URL” sends only the address, and the W3C server downloads and checks the live page itself. Each message shows its type (error, warning or info), the line and column where it occurs, the validator’s explanation and an extract of the surrounding source with the problem highlighted.

Filter the list to errors only when you want to focus on real problems, then download the full report as a text file to share with your team. Typical findings include improperly nested tags, missing alt attributes, obsolete elements like <center>, duplicate IDs and stray end tags.

How to use HTML Validator

  1. Choose “Paste HTML” to check code, or “Validate URL” to check a live page.
  2. Paste your markup (or click “Load sample”), or enter the page address.
  3. Press “Validate HTML”.
  4. Use the All / Errors / Warnings / Info filters to focus the list, and read the line numbers and highlighted extracts.
  5. Fix the issues in your source, validate again, and click “Download report” if you need a copy.

Features

Official W3C Nu checker

Results come from the W3C’s own HTML5 validator, the reference for standards conformance.

Code or URL input

Validate unpublished snippets by pasting, or live pages by address.

Line, column and highlighted extract

Pinpoints each problem in the source with the exact characters marked.

Filter by severity

Show everything or only errors, warnings or informational messages.

Downloadable report

Export all messages as a plain-text file.

When to use it

  • Check a hand-written landing page or email template before sending it live.
  • Find the unclosed <div> that breaks a page layout.
  • Clean up HTML generated by a CMS or page builder.
  • Teach students correct HTML5 structure with real validator feedback.
  • Confirm that a site meets a contract requirement for valid markup.

Frequently asked questions

Does invalid HTML affect SEO?

Google does not rank pages by validation, and most sites have some errors. But severe errors, such as a broken <head>, can stop search engines from reading titles, meta tags or structured data, so fixing them is worthwhile.

What is the difference between errors and warnings?

Errors break the HTML specification. Warnings point to things that are allowed but usually a mistake or unnecessary, such as a redundant type attribute on a script tag.

Is my pasted code private?

In “Paste HTML” mode the code is sent to validator.w3.org for checking, a service run by the World Wide Web Consortium. Avoid pasting confidential content or secrets.

Can it validate CSS too?

This tool checks HTML only. The Nu checker reports some CSS inside style attributes, but use the W3C CSS Validation Service for full stylesheets.

Why does URL validation fail for my site?

The W3C server must be able to fetch the page. Localhost, intranet sites, pages behind a login and sites that block bots cannot be checked by URL; paste the HTML instead.

Related tools