Skip to content
OneKitly

Six Languages Need Thirty-Six Hreflang Tags, Not Six

Published 12/1/2026 · 3 min read · Developer tools

Daniel Okonkwo

Daniel Okonkwo — Front-end developer and tech writer at OneKitly

Web performance · File formats

Checked against 2 sources

View profile →
In short

An hreflang set is a mutual declaration: each page says which pages are its equivalents in other languages, and every page in the set must carry the complete list — including a tag pointing at itself. Six languages therefore means six tags on each of six pages, thirty-six in total, and adding a seventh language means editing all seven pages rather than adding one. Miss the self-reference on one page and search engines treat that page's declaration as incomplete, which usually means ignoring the whole cluster rather than part of it.

Advertisement

Every page in the set lists every language including itself, so a set of n pages carries n² tags. The self-reference is the one most often missing.

x-default is a fallback, not a language

It names the page to serve when none of the declared languages matches the visitor — a language selector, or the version you would rather show a reader from a country you do not target. It is an extra entry on every page rather than a replacement for one, so six languages plus x-default is seven tags per page and forty-two in the set. Pointing x-default at a page that is also declared as a language is normal and correct; leaving it out entirely is also allowed and simply removes the fallback.

The language code is not the country code

A bare code such as fr means the language everywhere; fr-ca means French as served to Canada. Using a country code alone is invalid — there is no hreflang="ca" — and using a country when the content is not actually different splits a page's signals for no gain. The rule of thumb is to add a region only when there is a genuine difference the reader would notice: prices in another currency, different stock, different legal text.

Tags per page
Tags to maintain as the set grows
LanguagesTags per pageTags in the set
224
6636
1010100
2020400
Hreflang Tag GeneratorGenerate rel=alternate hreflang link tags for multilingual sites, with presets and URL auto-fill.Try the tool →
Advertisement

Frequently asked questions

Where should the tags live?
In the head of each page, in the HTTP headers, or in the XML sitemap — any one of the three, and never a partial mixture of them. The sitemap version is the least work for a large site, because one file declares every cluster and nothing has to be injected into templates; the head version is the easiest to inspect, because the tags are visible in the page a reader receives. Whichever is chosen, the same set must be complete in it.
Do hreflang tags improve ranking?
They change which version is shown, not how highly the set ranks. A correctly declared cluster means a reader in Portugal is offered the Portuguese page rather than the English one that happened to rank, and it stops the versions competing with each other as near-duplicates. The gain is in the click-through and in not splitting signals, and it is invisible in a ranking report that looks at one language at a time.

Articles you may find interesting

All guides →
How-toHow to Write a robots.txt: Directives, Matching, and What It Cannot HideFour directives, two wildcards, one file at the host root. It is a crawl instruction and nothing more — it does not remove a page from search results, it does not restrict access, and it publishes every path you list in it.GuideHTTP Status Codes Explained: The Ones That Actually Get Confused301 against 308, 302 against 307, 401 against 403, 404 against 410 — plus what Retry-After on a 429 or a 503 actually promises. The pairs where picking the wrong code changes behaviour, not just wording.How-toHow to Write a Cron Expression: Five Fields and the OR Rule Nobody MentionsMinute, hour, day of month, month, day of week. The traps are that a step is a stride through a range and not an interval, and that the two day fields are combined with OR — so 0 0 1 * 1 fires on the 1st and on every Monday.ExplainerHow Unix File Permissions Work: Reading 755 Without GuessingRead is 4, write is 2, execute is 1, and each of the three digits describes a different party. The part most explanations get wrong is what the execute bit does on a directory — it grants traversal, not the right to run anything.GuideTitle Tags, Meta Descriptions, and What Search Engines Do With ThemWhat Google's own documentation says about rewriting title links and about the meta description, rather than what SEO folklore says. Then the measurable part: titles are truncated by pixel width, so two titles of exactly sixty characters can render 204.55 pixels apart and only one of them survives.GuideWhat Makes a URL Slug Good: Stability, Readability and the Conflict Between ThemA slug has two jobs that pull against each other: it is a permanent identifier and it is a piece of readable text. Length, hyphens, stop words, dates, non-ASCII characters and the identifier-plus-slug pattern that gets both properties — with the real numbers from a site that localises 1,736 tool slugs into six languages.

Related tools

Sources

Spotted a mistake in this article?