Six Languages Need Thirty-Six Hreflang Tags, Not Six
Published 12/1/2026 · 3 min read · Developer tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 2 sources
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.
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.
| Languages | Tags per page | Tags in the set |
|---|---|---|
| 2 | 2 | 4 |
| 6 | 6 | 36 |
| 10 | 10 | 100 |
| 20 | 20 | 400 |
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 →Related tools
Sources
Spotted a mistake in this article?