Local StudioDEVELOPER TOOLS

HTML Validator

Check HTML syntax and common structure problems, then jump to the source to fix them.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
HTML Validator showing a duplicate ID with links to the later and first occurrences.
The sample repeats one ID. Both source locations are available from the lint finding.

How to Validate HTML

  1. Open the HTML, review Security Check, then select Continue.
  2. Paste HTML, choose a UTF-8 HTML file, or select Open Sample.
  3. Select HTML Document or HTML Fragment, then choose Validate HTML.
  4. Review the separate syntax and lint findings. Use Go to Source or Go to First Occurrence, correct the source, and validate again.

Syntax Diagnostics and Structural Lint

  • See syntax errors separately from duplicate IDs and supported lint findings.
  • Jump to both source locations for a repeated ID.
  • Check documents and fragments without rendering the supplied markup.

Formats and Compatibility

InputPaste HTML or open a local UTF-8 .html, .htm or .txt file. Pick Document or Fragment.
OutputReview parser diagnostics and the separate lint findings. Open a source location to correct the original text and validate again.
BrowserA modern browser with local file support.
ScopeValidate one HTML document or general fragment up to 256 KiB of UTF-8. Results cover parser diagnostics and a small named lint rule set.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Use the browser-based tool to validate HTML without uploading files.

Select Open Sample to see the workflow with the included example.

Document and Fragment Modes

Document mode includes doctype, title and language checks. Fragment mode checks a general snippet with the syntax, ID and list rules.

Check the Listed Rules Before Deployment

The report names the parser and lint rule set. It covers supplied source text. Accessibility certification, server checks and full HTML conformance use separate checks.

Frequently Asked Questions

How do I validate HTML offline?

Use the Validate HTML download, extract the ZIP, and open HTMLValidator.html. The free Validate HTML tool includes a duplicate-ID sample.

Can I validate HTML in browser?

Yes. The local Validate HTML tool processes the source text on your device.

Can I validate HTML online?

Open the hosted workbench to use the same Validate HTML browser tool. The HTML is processed on your device.

Which lint rules are included?

The lint finds repeated or invalid IDs, selected invalid list children, and missing or extra document metadata in the applicable mode.

What does a clean report mean?

The parser and listed lint rules returned zero findings. The report names the rules it ran.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.