Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What programs can I use to validate HTML/XML markup?

Basically, I want a local, command-line based, version of W3C HTML validation service (like lint) that I can use for detecting errors.


I would also accept a solution that uses the W3C web service from the command line.

Related Questions:


share|improve this question

The W3 validator is open source (written in Python I believe) so you can download and run it locally. I can't for the life of me find the download link on w3.org though.

share|improve this answer
I think this is it: dvcs.w3.org/hg/markup-validator – robertc Aug 19 '10 at 11:46
validator.w3.org/source/#getting – cmcginty Aug 20 '10 at 23:55
The W3C Markup Validator is a Perl wrapper around a C validation engine. – Quentin Aug 21 '10 at 13:20

HTML Tidy, developed by Dave Raggett of W3C, can validate & automatically fix errors. It can work from the command-line

share|improve this answer
I like tidy, is it as comprehensive as the W3C tool? – cmcginty Aug 21 '10 at 1:51

Total Validator seems to do what you're looking for

share|improve this answer

The HTML5 validator source code is available through SVN, has dependencies on Java.

share|improve this answer
What do you mean by "the"? That's not an official program, is it? – DisgruntledGoat Aug 19 '10 at 14:07
@DisgruntledGoat It's the only one linked to from the WHATWG website: validator.whatwg.org – robertc Aug 19 '10 at 14:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.