Technical SEO

HTML Lang Attribute Checker

Identify the declared document language used by assistive software and browsers.

InfiniteRanks editorial teamUpdated 23 October 2026No account required

Run the html lang attribute checker

Public website check

This tool makes bounded requests to the public URL or domain you enter. It does not sign in or change the target website.

What html lang attribute checker helps you do

Identify the declared document language used by assistive software and browsers. A Spanish page should declare a suitable language such as es. Mixed-language quotations can use a local lang attribute while the document keeps its primary language.

Prepare a useful input

Example input: https://example.com/es/ Save the original input alongside the result so another person can reproduce the check and judge whether a proposed change addresses the same page or file.

Read the result before making changes

A language declaration does not establish regional search targeting or prove the body was translated correctly. Record the checked URL and observation time. Compare the evidence with the intended page behavior, then verify the affected page again after a change instead of assuming the issue is resolved.

Distinguish language declaration from translation quality

A French help page inherited from an English template may still declare lang="en". Correcting that attribute helps software identify the document language, but it does not translate leftover menu labels or establish a country-specific search strategy. Inspect a paragraph, the navigation and any validation messages after a language switch. A multilingual quotation can carry its own local language attribute without changing the whole page. Ask a fluent reviewer to check the visible copy, especially product terminology and legal instructions. Keep a translated-page checklist that includes both the root declaration and the text people actually read.

Verify the result and continue

View the final root element rather than a component source file. A layout can override a correctly configured page-level value. Test a language switch, a direct deep link and a fallback error page to see whether the declaration follows the actual language of each rendered document. Continue with the hreflang checker or explore the technical seo tool cluster.

How this tool works

Identify the declared document language used by assistive software and browsers. The server fetches the submitted public URL with bounded redirects and response sizes. The result reports observed HTML, headers or network evidence for this specific check.

What the result does and does not establish

A language declaration does not establish regional search targeting or prove the body was translated correctly.

Use this check as part of a repeatable website review. Record what you found, make a specific change and run the same check again.

Browse all toolsContent and technical review workflow

Reference standards

Be part of the conversation.

Explore a model response with your own provider key.