Skip to content

HTML lang checker

Verify that a page declares the correct HTML lang attribute so browsers, screen readers, and search engines understand the page language.

Check declared page language
100% Free HTML lang checker Tool

About the Free HTML lang checker Tool

Inspect the HTML lang attribute of a page URL. Confirm the declared language matches the page content.

What is the HTML lang checker?

The HTML lang checker is a server-side tool that inspects the language declaration of a page you give it. You enter a URL, submit the form, and the site fetches the page and reports the value of the lang attribute found on its html element, together with the HTTP status and the final URL that was actually requested.

Every properly built HTML page should declare its language using the lang attribute on the root html tag, such as lang="en" for English or lang="es" for Spanish. That single attribute tells screen readers, translation tools, spell checkers, and search engines what language the content is written in. The checker gives you a quick way to confirm the declaration is present and to see exactly what value is being served for any page on your site.

This is a passive inspection rather than a fix. The tool reads what the page currently serves, reports it, and leaves the decision to you. That is still genuinely useful, because language declarations are easy to break silently in a redesign, a template change, or a migration, and you will not notice the damage unless you check.

What the HTML lang checker does

Submit a URL and the tool requests the page, follows any redirects, and records the HTTP status code and the effective URL of the final response. It then looks at the html element of the page source and reads the lang attribute from it. The result shows you the declared language value, or clearly reports that the attribute is missing if the page does not set one.

The output covers three pieces of information at once. The status code tells you whether the request succeeded or hit an error, the effective URL reveals where redirects actually landed, and the lang value tells you what language the page declares. Together these give you a complete picture of how the page presents its language to the outside world, so you are not interpreting a single number in a vacuum.

Because the request runs server-side, the check works on any public page regardless of how the page was built. You do not have to open the source code and hunt for the attribute yourself; entering the URL is enough, and the answer comes back in a clean result field along with the supporting details. That makes it practical to run across many pages in a short session.

How to use the HTML lang checker

Using the tool takes a moment and requires only the address of the page you want to inspect.

  1. Copy the full URL of the page you want to check, including the protocol, such as https://example.com/about, and make sure it points to the exact page whose language you are verifying.
  2. Paste the address into the URL field on the form, replacing any previous value so the check targets the page you intend.
  3. Submit the form with the Check button and wait for the server to fetch the page, follow any redirects, and inspect the html element.
  4. Read the result: note the HTTP status code, confirm the final URL is the page you intended, and look for the lang attribute value or the Missing notice in the result.
  5. If the lang field shows Missing, revisit the template that outputs the page, add a language declaration to the html element, and run the check again to confirm the fix.

How to get better results

  • Check the final URL alongside the lang value, since a redirect may land on a language version you did not expect and give you a misleading result.
  • Test your homepage and one deep page from each language section of your site so the checks cover more than a single template.
  • Look for the language code to match the actual written language of the content; declaring en on a Spanish page confuses translation and accessibility tools.
  • Verify pages served from different domains or subdomains too, because a redirect or a separate host can silently drop the lang attribute even when the main template sets it.
  • Recheck the page after any template or caching change that could alter the html element, such as introducing a new layout framework, switching themes, or moving to a new CMS that rewrites the page head.
  • Run the check on your staging environment before publishing changes so a bad language declaration never reaches the live site, and keep a few representative URLs saved to spot-check after deploys.
  • When you serve translated content, verify each language variation is reachable directly and declares its own matching language code, so automated detection tools are not guessing from the URL alone.

Why the HTML lang checker matters

Language declaration is one of the most overlooked details in on-page markup, yet it has a direct effect on how the page is understood. A missing or wrong lang attribute leaves screen readers guessing at pronunciation, translation services unable to identify the source language, and search engines less sure which region and language the content should rank for. Fixing it costs almost nothing, while ignoring it quietly weakens accessibility and international relevance.

The checker also saves you from inspecting raw source on every page. On a large site with dozens of templates and country variations, verifying language declarations by hand is slow and easy to miss. A single URL submission returns the status, the final destination, and the declared language together, so you can audit a batch of pages quickly and fix the templates that are serving no language at all.

For sites that operate in more than one country, the stakes are higher still. The lang attribute is a signal a search engine uses to understand which audience a page is meant for, and it works alongside region targeting and hreflang annotations. Confirming the declaration on each language version protects the international structure you have already built.

The cost of missing this check is also easiest to underestimate during a migration. Templates move between systems, themes get swapped, and minifiers sometimes strip attributes they consider non-essential. A declaration that survived for years can vanish in an afternoon of refactoring, and the only way to notice is to actually look at the served page, which is exactly what this check does.

That inspect-the-served-page habit pays off beyond language declarations too. When you get into the rhythm of confirming what a URL actually returns, you catch dropped attributes, redirect oddities, and template regressions while they are still small. Checking the lang attribute is a low-stakes, high-signal version of that habit, and the confidence it builds carries over to the rest of your on-page QA.

When to use the HTML lang checker

  • When you are about to launch a new template or redesign and want to confirm the html element still declares the correct language.
  • When a site grows into multiple countries and you are verifying that each language version carries its own matching lang attribute.
  • When you audit accessibility issues and want a fast signal for pages that fail to tell assistive technology what language they use.
  • When content is served through redirects or a CDN and you need to confirm the language declaration survives the extra hop to the final URL.

Related SEO Tools

Complete your SEO workflow with these related free tools:

  • SERP checker - Get the top search engine results for a keyword.
  • Indexed pages checker - Check if a domain is indexed by search engines.
  • Website status checker - Check the status and availability of a website. Verify a site is online and responding before sharing or monitoring it.
  • SSL checker - Check the SSL status and information of a domain. Review certificate validity, issuer, and expiry for a site.

Related SEO Guides

Learn more about this topic with our in-depth guides:

Frequently asked questions

What does a missing lang attribute actually affect?

A missing lang attribute leaves screen readers unsure how to pronounce words, makes translation and text-to-speech tools behave unpredictably, and gives search engines less confidence about the language and region the page targets. It also breaks spell checking and grammar tools that rely on the declaration to choose the right dictionary.

What kind of value should the lang attribute hold?

A valid language code such as en, es, fr, or de, optionally extended with a region like en-US or en-GB. The correct value is the code that matches the language the content is actually written in, with the region suffix only when the content is genuinely specific to one region, such as en-US spelling and conventions.

Why does the tool report an effective or final URL?

Because many pages sit behind redirects, such as a shortened address, an HTTP to HTTPS hop, or a regional redirect. The final URL shows where the response actually ended up, which matters because the language declaration of the redirect target, not the typed address, is what the result reflects.

Can the checker read a lang attribute set on a page that loads content dynamically?

The check examines the html element in the served page source. If a page relies on scripts to inject language settings after the initial response, the static lang attribute on the html tag is still what most tools and accessibility software read first, so that attribute is the reliable place to declare the page language.

Does the tool check other language-related markup such as hreflang?

It focuses on the lang attribute of the html element. Hreflang annotations on link elements are a separate signal and are not part of this check, so they are verified with a dedicated hreflang checker instead. The two are complementary: lang says what language the page is in, while hreflang tells search engines which URLs serve as alternates for that page.