Skip to content
HTML → ReportDeveloper tools

HTML Validator

Check HTML as you type: unclosed tags, double ids, missing alt text and labels, old tags. Each problem has its line number.

Did this tool work for you?

Used HTML Validator? Share how it went to help others.

About this tool

About HTML Validator

HTML Validator reads your code and lists what is wrong with it, with the line number and a plain sentence for each problem. Paste a whole page or only a part, type, or open an HTML file. The list updates as you edit, and a click on a line number jumps to that line in the code. Problems are sorted into errors, warnings and tips, and each group can be hidden, so you can fix the serious ones first. The checks fall into four groups. Structure covers tags that are never closed, closing tags that match nothing, tags closed in the wrong order and an id that is used twice, together with the line of its first use. Accessibility covers pictures without alt text, form fields without a label, buttons without text, pages without a language and heading levels that are skipped, such as an h3 straight after an h1. Page covers what browsers and search engines need, for example the character set and the viewport setting for phones. Old code points out tags and attributes that should no longer be used. The tool sees whether you pasted a page or a fragment. A fragment is not blamed for a missing title or doctype. It also knows that HTML allows some closing tags to be left out, so a valid list without closing li tags is fine. Links to a part of the same page are checked too: if a link goes to a name that does not exist on the page, you are told. The whole report can be copied for a ticket or a message. Please note the limits. These are the most common mistakes and not every rule of the HTML standard, and the code is only read, never run, so what scripts add later is not seen. For a formal check against the full standard, use the validator of the W3C as well. Your code stays in your browser.

HTML Validator tool

When to check HTML

Find it before visitors do

A broken layout

Find the tag that was not closed.

ExamplePaste the page and look under Structure.

Email templates

Check the code of a newsletter.

ExamplePaste it before you send.

Learning HTML

See what you forgot.

ExamplePress Example to try it.

Before going live

Check the basics of a new page.

ExampleTitle, language and viewport.

Accessible pages

Find pictures without alt text.

ExampleHide the other groups.

Code review

Send the list to a colleague.

ExamplePress Copy list.

HTML checking tips

Work in a good order

Start at the top

One open tag can cause many messages below it.

Alt text for decoration

Leave it empty, but do not leave it out.

An id only once

Use a class for things that repeat.

See the result

View the page as a visitor.

Open HTML Viewer

Check colors too

Code cannot show if text is readable.

Open Contrast Checker

Writing tables?

Make an accessible one.

Open HTML Table Generator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed HTML Validator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 25 November 2026

Answers and guidanceFrequently Asked Questions
How do I check my HTML for errors?
Paste the code. Errors, warnings and tips appear below with line numbers.
Can I check a web address?
Not directly. Open the page, view its source, copy it and paste it here.
Is this the W3C validator?
No. It checks the most common problems in your browser. For a formal check, use the W3C service as well.
Why is a missing closing p tag not an error?
HTML allows it. A paragraph ends by itself when a block such as a div begins.
Do errors hurt my search ranking?
Small ones usually do not. A missing title, broken links or unreadable structure can.
Does it check CSS or JavaScript?
No, only the HTML around them.
Is my code uploaded?
No. It is read in your browser and never run.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.