HTML Lang Attribute Checker
Last updated:
Check the lang attribute on any page in seconds. We read the html element, check the language-tag syntax and report declared text direction. It does not verify the full BCP 47 registry or identify the actual language of the content.
Enter a URL to check its lang attribute:
We fix this
Found issues? That’s exactly what our SEO audit fixes.
Our SEO Audit + Essentials package ($555, one-time) finds and fixes exactly these kinds of problems, with a prioritized plan in plain English.
Looks clean here. How is the rest of your SEO?
One passing check doesn’t make a ranking strategy. We audit the full picture: content, technical SEO, internal links, and search intent.
More options Send us this result or get a copy by email
How the Checker Works
- Safe fetch, the host is validated before our server requests the page.
- Read the html tag, the lang, xml:lang, and dir attributes are extracted.
- Validate, the language tag is checked against BCP 47 syntax.
- Report, you get the values, the primary language, and any issues.
Why It Matters
- Accessibility, screen readers pick the right voice and pronunciation.
- Correct rendering, browsers apply language-specific typography and hyphenation.
- Translation, tools detect the source language accurately.
- Language declarations, lang supports assistive technology. Google determines page language from content rather than relying on this attribute.
Language signals are one small piece of technical and international SEO, and getting the whole stack right is the kind of work our SEO services handle end to end.
Common lang Attribute Values Reference
The lang value follows BCP 47: a primary language subtag on its own, or a language-REGION pair when you need to specify a regional variant. The table below lists values you will see most often, including a right-to-left example.
| Value | Language / region | Note |
|---|---|---|
| en | English (no region) | Generic English; fine when no regional variant is needed. |
| en-US | English, United States | US spelling, date, and number conventions. |
| en-GB | English, United Kingdom | UK spelling and conventions. |
| es | Spanish (no region) | Generic Spanish. |
| es-ES | Spanish, Spain | European (Castilian) Spanish. |
| fr | French (no region) | Generic French. |
| fr-CA | French, Canada | Canadian French. |
| de | German | Generic German. |
| pt-BR | Portuguese, Brazil | Brazilian Portuguese (pt-PT for Portugal). |
| zh-Hans | Chinese, Simplified script | Script subtag; zh-Hant for Traditional. |
| ar | Arabic (RTL) | Right-to-left; also set dir="rtl" on the html element. |
Format reminder: use the language subtag alone (en) or language-REGION (en-US), following BCP 47. Lowercase the language, title-case any script (Hans), and uppercase the region (US).
Next steps
HTML Lang Attribute Checker related tools and articles
Continue with the closest follow-up checks and guides based on this tool's topic, crawl intent, and optimization workflow.
HTML Lang Attribute Checker: FAQ
What exactly does the checker inspect?
What does a valid result mean?
Why can a syntactically valid lang value still be wrong?
How are lang and xml:lang handled?
Does the checker validate right-to-left direction?
Why might the checker miss a lang attribute I can see in the browser?
What should I change when lang is missing?
What data leaves my browser during a check?
Free Website Audit
Not sure what to fix first on your own website? We'll review it and tell you, in plain English, within 48 hours. Free and non-obligatory.
Want an Accessible, Search-Ready Site?
We build websites that meet accessibility standards and rank well, with correct language signals baked in.