Free auditStart free
ExamplesExamples · International

Hreflang examples

Hreflang annotations from 10 real homepages including Apple, Microsoft, Wise and HubSpot, with annotation counts, x-default use and what to copy.

10
real examples
Nov 2, 2026
captured
4
templates
Scaplet Editorial Team
editor
In one line

Hreflang annotations tell Google which URL serves which language or region. We read the head of 10 real homepages: 480 annotations in all, from 7 on HubSpot to 137 on Apple. Seven include an x-default fallback and three don't. Eight list the URL we fetched among their alternates. Google says each version must list itself and every other version.

Across 10 captures

Counted from the captured files
9 of 10
Regional
8 of 10
Many locales
7 of 10
X default
3 of 10
No x default
Side by side

Apple vs HubSpot.

Two captures that solve the same job differently. Numbers come from the captures.
Apple
apple.com
<link rel="alternate" href="https://www.apple.com/" hreflang="en-US" />
<link rel="alternate" href="https://www.apple.com/ae-ar/" hreflang="ar-AE" />
<link rel="alternate" href="https://www.apple.com/ae/" hreflang="en-AE" />
<link rel="alternate" href="https://www.apple.com/am/" hreflang="en-AM" />
<link rel="alternate" href="https://www.apple.com/at/" hreflang="de-AT" />
<link rel="alternate" href="https://www.apple.com/au/" hreflang="en-AU" />
<link rel="alternate" href="https://www.apple.com/az/" hreflang="en-AZ" />
<link rel="alternate" href="https://www.apple.com/befr/" hreflang="fr-BE" />
  • 137 hreflang annotations in the head
  • No x-default fallback
  • 137 language-plus-region codes, for example en-US
HubSpot
hubspot.com
<link rel="alternate" href="https://www.hubspot.com" hreflang="x-default">
<link rel="alternate" href="https://www.hubspot.com" hreflang="en">
<link rel="alternate" href="https://www.hubspot.es" hreflang="es">
<link rel="alternate" href="https://www.hubspot.fr" hreflang="fr-FR">
<link rel="alternate" href="https://www.hubspot.de" hreflang="de-DE">
<link rel="alternate" href="https://www.hubspot.jp" hreflang="ja-JP">
<link rel="alternate" href="https://br.hubspot.com" hreflang="pt-BR">
  • 7 hreflang annotations in the head
  • Includes an x-default fallback
  • 4 language-plus-region codes, for example fr-FR
AppleHubSpot
Annotations1377
x-defaultNoYes
Lists itselfYesYes
Pattern library

4 patterns to copy.

Templates we wrote from what the examples have in common. Replace the placeholders in braces.
01

Language-only set with x-default

One page per language, regardless of country.

Our template
<link rel="alternate" hreflang="en" href="https://{your-domain}/{page}">
<link rel="alternate" hreflang="de" href="https://{your-domain}/de/{page}">
<link rel="alternate" hreflang="fr" href="https://{your-domain}/fr/{page}">
<link rel="alternate" hreflang="x-default" href="https://{your-domain}/{page}">
02

Language plus region

Several markets share a language but have different pages (prices, shipping, legal).

Our template
<link rel="alternate" hreflang="en-US" href="https://{your-domain}/us/{page}">
<link rel="alternate" hreflang="en-GB" href="https://{your-domain}/gb/{page}">
<link rel="alternate" hreflang="en-AU" href="https://{your-domain}/au/{page}">
03

Separate domains

A country-code domain per market. Alternates may be on different domains.

Our template
<link rel="alternate" hreflang="en" href="https://{your-domain}.com/{page}">
<link rel="alternate" hreflang="de-DE" href="https://{your-domain}.de/{page}">
<link rel="alternate" hreflang="fr-FR" href="https://{your-domain}.fr/{page}">
04

Sitemap alternates

Many locales, where listing them on every page head would bloat the HTML.

Our template
<url>
  <loc>https://{your-domain}/{page}</loc>
  <xhtml:link rel="alternate" hreflang="en" href="https://{your-domain}/{page}"/>
  <xhtml:link rel="alternate" hreflang="de" href="https://{your-domain}/de/{page}"/>
</url>
01Worth knowing

What 10 homepages declare

We fetched each page on 2 November 2026 from India and counted the hreflang link elements in the head. The URLs are US or global versions, such as apple.com, wise.com/us/ and microsoft.com/en-us/, and some sites vary markup by region.

x-default is common, not universal

Seven of 10 include it. Apple, Mozilla and Semrush don't.

Alternates sit in three URL shapes

Folders (Apple, Dropbox, Microsoft, Notion), subdomains (Semrush) and separate domains (HubSpot).

Two don't match the URL we fetched

Trello and Zoom list their English page at a different path than the one we requested, probably because of a redirect. Check that yours match exactly.

hreflang in the head, captured 2026-11-02
SiteAnnotationsx-defaultLists the fetched URLLanguage-plus-region codes
apple.com137NoYes137
dropbox.com24YesYes20
hubspot.com7YesYes4
microsoft.com100YesYes99
mozilla.org86NoYes19
notion.com24YesYes4
semrush.com14NoYes0
trello.com24YesNo6
wise.com46YesYes31
zoom.com18YesNo2
02Rules in Google's guide

What Google says

Google's localized versions guide gives three equivalent ways to declare versions: HTML link elements, HTTP headers and sitemaps. Each version must list itself as well as all other versions, and if two pages don't point to each other, the tags are ignored. Alternate URLs must be fully qualified, including http or https, and don't need to be on the same domain.
Rule

Return links

What it says
Each language version must list itself and every other version; without both pages pointing to each other, the tags are ignored
Rule

Codes

What it says
Only ISO 639-1 language codes and ISO 3166-1 Alpha 2 region codes are supported; you can't specify a country code by itself
Rule

x-default

What it says
A reserved value used when no other language or region matches the user's browser setting
Rule

URLs

What it says
Fully qualified, including http or https
Rule

HTML placement

What it says
The link tags must be inside a well-formed head

Google suggests a fallback page for unmatched languages, especially on language or country selectors or auto-redirecting home pages. That is the case x-default is for. Apple's, Mozilla's and Semrush's captures have none, which isn't an error but leaves unmatched visitors without a declared fallback.

03How it works

Check it on your own site

Count the annotations and confirm x-default is present. We ran both commands against HubSpot's homepage and got 7 annotations and the x-default link, matching the capture.
  1. 1

    Find your own URL in the list

    Search the output for the page you fetched. Its href should appear exactly as written.

  2. 2

    Open two alternates

    Fetch two other versions and confirm each lists the first. A missing return link means Google ignores both.

  3. 3

    Check the codes

    Language codes should be ISO 639-1, region codes ISO 3166-1 Alpha 2, and a region never appears alone.

Run against your own URL
# count hreflang annotations in the served HTML
curl -sL https://example.com/ | grep -io '<link[^>]*hreflang=[^>]*>' | wc -l

# x-default
curl -sL https://example.com/ | grep -io '<link[^>]*hreflang="x-default"[^>]*>'
Sources · 12

Every fact, linked and dated.

Official docs first, then every capture with the date we fetched it.
  • google.com
  • mozilla.org
  • apple.com
  • dropbox.com
  • hubspot.com
  • microsoft.com
  • notion.com
  • semrush.com
  1. 01Tell Google about localized versions of your page (Google Search Central)developers.google.com · checked 2026-11-01
  2. 02link element, hreflang attribute (MDN)developer.mozilla.org · checked 2026-11-01
  3. 03Apple hreflangapple.com · checked 2026-11-02
  4. 04Dropbox hreflangdropbox.com · checked 2026-11-02
  5. 05HubSpot hreflanghubspot.com · checked 2026-11-02
  6. 06Microsoft hreflangmicrosoft.com · checked 2026-11-02
  7. 07Mozilla hreflangmozilla.org · checked 2026-11-02
  8. 08Notion hreflangnotion.com · checked 2026-11-02
  9. 09Semrush hreflangsemrush.com · checked 2026-11-02
  10. 10Trello hreflangtrello.com · checked 2026-11-02
  11. 11Wise hreflangwise.com · checked 2026-11-02
  12. 12Zoom hreflangzoom.com · checked 2026-11-02
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Does each page need to list itself in hreflang?

Yes. Google's guide says each language version must list itself as well as all other language versions. Eight of our 10 captures list the URL we fetched; Trello and Zoom's lists use a different path for the English page.

02Is x-default required?

No. Google calls it a reserved value for when no other language or region matches, and suggests a fallback page, but 3 of our 10 captures (Apple, Mozilla, Semrush) don't include one.

03Can I use a country code alone in hreflang?

No. Google says you can't specify the country code by itself. Use a language code, optionally followed by a region code, such as en-GB.

04Where can I declare hreflang?

In the HTML head, in HTTP headers or in a sitemap. Google says the three methods are equivalent. All 10 captures here use link elements in the head.

Free · 2 minutes

Seen the examples? Now check your own site.

The free audit reads your robots.txt, title tags, meta descriptions, structured data and status codes, and lists what to fix.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly