Document language audit

HTML Lang Checker

Confirm that browsers and assistive technology receive a document language.

✓ Free to use ✓ No account required ✓ Up to 20 redirect hops
1

Inspect the HTML lang attribute

The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.

2

Interpret the result

The result helps compare the primary document language with the localized audience and alternate-language declarations.

3

Catch common problems

A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency.

How to interpret the HTML lang attribute

The result helps compare the primary document language with the localized audience and alternate-language declarations. The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.

What the tool evaluates

The check displays the declared document language and the number and codes of any hreflang alternates found on the same page. The result helps compare the primary document language with the localized audience and alternate-language declarations.

  • The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.
  • A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency.
  • Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets.

Common problems and next steps

A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency. Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets. The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.

Frequently asked questions

What does the the HTML lang attribute check cover?

The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.

How should I use the result?

The result helps compare the primary document language with the localized audience and alternate-language declarations. Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets.

What are the limits of this tool?

The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.

Related URL tools and guides