How do I use the hreflang tag generator?
- Write each version as language code | URL, one per line.
- Add the x-default URL (usually the English page).
- Generate and add the same tags to every version of the page.
hreflang tag generator: frequently asked questions
Should I use ar or ar-AE?
Use ar if one Arabic version serves all countries. Use ar-AE, ar-SA and so on only if the content differs by country.
Why does Google ignore my hreflang?
Usually because the tags are not reciprocal. Every version must list all the others, including itself.
What is hreflang?
A tag that tells search engines which language or regional version of a page to show each user.
Do I need hreflang for an Arabic and English site?
Yes. It helps Google show Arabic pages to Arabic searchers and English pages to English searchers.
What codes should a UAE site use?
Typically en and ar, or en-AE and ar-AE if you also have versions for other countries.
What is x-default?
The page to show when no language version matches, often your main English page or a language selector.
Do hreflang tags need to be reciprocal?
Yes. Each version must list all versions including itself, or Google may ignore them.
Where do hreflang tags go?
In the page head, in the XML sitemap or in HTTP headers. Use one method consistently.
Does hreflang replace translation?
No. Each version needs genuinely translated content and its own canonical URL.
How do I check hreflang is working?
Inspect the URLs in Google Search Console and watch which version ranks in each language.