Hreflang tag generator and checker for Arabic and English sites
If your site has an Arabic page and an English page for the same thing, hreflang tells Google they are versions of each other. List your pages once and get the tags for your HTML, your HTTP headers or your sitemap, or paste tags you already have to check them.
1. List every version of one page
Check tags I already have
2. Copy the tags
Use one method, not all three. The same full set goes on every version of the page, including itself.
3. Checks
| Version | Page opening tag |
|---|
Nothing you type leaves your browser. Your list is kept on this device only, so you can come back to it.
Three rules Google asks you to follow
1. A valid code
A language code (ar, en), optionally followed by a country (ar-AE, en-GB). A country on its own is not valid: ae is not the UAE.
2. Full web addresses
Every address needs the https:// start and the domain. A path like /ar/ on its own is ignored or misread.
3. Every version lists every version
The Arabic page lists the English page, the English page lists the Arabic page, and each lists itself. If one side is missing, Google may ignore the tags.
Which code should an Arabic page use?
Use ar when one Arabic page serves every Arabic reader. Use ar-AE when the page is written for the UAE (UAE phone numbers, emirates, AED prices) and you have, or plan, other country versions such as ar-SA. The same applies to English: en for one English page, en-AE for a UAE page next to an en-US or en-GB one. When in doubt, the shorter code is safer, because you can add countries later. That choice is our advice; Google only defines what the codes are allowed to look like.
Getting the tags right does not guarantee more traffic. It helps Google show the right language version to each searcher. Whether you need an Arabic version at all is a separate question, covered in the Arabic vs English SEO guide.
Method and sources
The rules come from Google's page Tell Google about localized versions of your page (page updated 2026-09-21, checked 2026-10-29): the three equivalent methods; language codes from ISO 639-1 with an optional ISO 3166-1 alpha-2 country; a country code alone is invalid; es-419-style codes and the reserved EU, UN and UK are not supported or have no effect; fully qualified addresses; return links; the HTTP Link header syntax; the sitemap xhtml:link syntax; and x-default as the fallback. The same set is written to every version.
Warnings that Google does not state (the canonical reminder, trailing-slash consistency, the language-code advice above) are marked as our advice in the checks. The tool does not visit your website, so it cannot confirm that the pages exist, return a 200 status or point their canonical tag to themselves: test those with your own browser or Search Console's URL Inspection.
The page opening tag column shows the lang and dir attributes that suit each version for browsers and screen readers. Google says it works out a page's language from its visible text, not from the lang attribute, so the attribute does not replace hreflang (Google's managing multi-regional and multilingual sites page, updated 2025-12-10, checked 2026-10-29).
Hreflang questions
It tells Google that several pages are the same content in different languages or for different countries, so it can show the right one to each searcher. It does not translate anything and does not by itself raise rankings.
No. Hreflang is for sites that have more than one language or country version of the same page. A single-language site does not need it.
Use ar when one Arabic page serves all Arabic readers. Use ar-AE when the page is written for the UAE and you may add pages for other countries. Both are valid codes; the choice depends on how many versions you plan to run.
If page A points to page B, page B must point back to A. Without the return link Google may ignore the tags, because otherwise anyone could claim your pages as versions of theirs. Each page must also list itself.
Google treats all three the same, so pick the one that is easiest to keep correct. HTML tags suit most websites, a sitemap suits large sites where editing every page head is hard, and HTTP headers suit files like PDFs. Use one method, not all three.
It is the version Google can show when a visitor's language matches none of your versions. It is designed for a language-selector or fallback page, and it is optional.
Only in your own browser, so you can come back to it. Nothing is sent to Media87.
Arabic and English pages that
Google shows to the right people.
Media87 SEO starts from $500 a month for English, Arabic or bilingual websites. Preview how each version will look in results with the snippet preview, which supports right-to-left Arabic.
See SEO services in Dubai