An hreflang tag generator writes the tags that tell Google which language and country each version of a page targets. On a site with Arabic and English pages, hreflang helps Google show the Arabic page to Arabic searchers and the English page to English searchers, instead of letting the two versions compete. It does not merge ranking signals and it does not fix duplicate content on its own.
Choosing codes
| Code | Targets | When to use it |
|---|---|---|
| ar | Arabic speakers in any country | One Arabic version for the whole region |
| ar-SA | Arabic speakers in Saudi Arabia | A version with Saudi prices, delivery or content |
| ar-JO | Arabic speakers in Jordan | A version made for the Jordanian market |
| en | English speakers in any country | One English version |
| x-default | Everyone else | Main page or language chooser |
The language code comes first and the country code second. "sa-AR" is wrong, "ar-SA" is right. Use regional codes only if the content really differs between countries.
Most problems we see on Arabic and English sites come from missing return tags, hreflang pointing to redirected URLs, and canonical tags that point all versions to the English page. Our guide to hreflang for Arabic and English sites covers these, and canonical issues explains the canonical side. A real example of a bilingual setup is our Qatar waste management company case study.