Skip to main content

International SEO

Hreflang for Arabic and English Websites: A Practical Setup Guide

By Intzar Hussain, founder of Nexora Digital · · 7 min read

If your website has Arabic and English versions of the same pages, hreflang tells search engines which version to show to which users. Without it, Google may show your English page to Arabic searchers in Riyadh, or your Arabic page to English speakers in London.

Hreflang is simple in principle but easy to get wrong. This guide covers the codes to use, how to structure the tags, and the mistakes we see most often on Arabic and English sites.

What hreflang does (and doesn't do)

Hreflang annotations link equivalent pages in different languages or for different regions. They help Google choose which version to show in search results. They do not make a page rank higher by themselves, and they do not replace good content in each language.

You can add hreflang in three ways: link tags in the page's HTML head, HTTP headers (useful for PDFs), or in your XML sitemap. Use one method consistently.

Language and region codes

The value is a language code in ISO 639-1 format, optionally followed by a region code in ISO 3166-1 Alpha 2 format. For Arabic and English sites, the common values are:

  • ar: Arabic for all regions.
  • ar-AE, ar-SA, ar-QA: Arabic for users in the UAE, Saudi Arabia or Qatar specifically.
  • en: English for all regions.
  • en-GB, en-US, en-AE: English for a specific country.
  • x-default: the fallback page for users who match none of your other versions.

A region code on its own is not valid: "ae" means nothing to Google, it must be "ar-AE" or "en-AE". Only add regional versions if the pages genuinely differ by country; otherwise "ar" and "en" are enough.

A simple example

Say your English service page is at /services/arabic-seo and its Arabic version is at /ar/arabic-seo. Both pages should carry the same set of hreflang annotations: one pointing to the English URL with hreflang="en", one pointing to the Arabic URL with hreflang="ar", and an x-default pointing to whichever version should be the fallback, often the English one.

Each page lists itself as well as the other versions. Every URL must be absolute (including https:// and the domain) and must be the canonical version of that page.

The mistakes we see most

  • Missing return links: if the English page points to the Arabic one, the Arabic page must point back. One-way annotations are ignored.
  • Pointing hreflang at redirected, noindexed or non-canonical URLs.
  • Using the wrong codes, such as "ar-UAE" or "en-UK" (the correct forms are ar-AE and en-GB).
  • Canonical tags on the Arabic pages pointing to the English pages, which tells Google the Arabic version is a duplicate.
  • Redirecting users automatically by IP address or browser language, which can stop search engines from crawling some versions. Offer a visible language switcher instead.
  • Translating the URL slug and page content but leaving the title tag and meta description in English.

Arabic pages also need the basics right

  • Set lang="ar" and dir="rtl" on the Arabic content so browsers and assistive technology render it correctly.
  • Translate titles, meta descriptions, headings, navigation and calls to action, not just body text.
  • Make sure Arabic fonts load quickly on mobile.
  • Link the language versions to each other with a visible link, not only with hreflang.

How to check your setup

View the page source of each version and confirm the hreflang tags are present, use absolute canonical URLs and point both ways. Crawling tools can check return links across a whole site. Then use the URL Inspection tool in Google Search Console on each version to confirm Google has indexed it and sees the canonical you expect.

← Back to all articles

FAQ

Frequently asked questions

Do I need hreflang if my Arabic and English pages have different URLs?

Yes. Different URLs are exactly the case hreflang is for. It tells Google the pages are equivalents in different languages, so it can show the right one to each user.

Should I use ar or ar-AE?

Use "ar" if one Arabic version serves all Arabic speakers. Use country codes such as ar-AE or ar-SA only if you have different Arabic pages for different countries.

What should x-default point to?

The page you want users to see when none of your language versions matches them. On many Arabic and English sites, that is the English page or a language selector page.

Taking Your Site International?

Send us your site and target countries and we'll review your language and hreflang setup. The first consultation is free.