Skip to main content

NextGen SEO Services

Home/Free Tools/hreflang Generator
Free tool

Free hreflang Tag Generator

Build hreflang tags for your English and Arabic pages and catch the most common mistakes before they cost you traffic. It runs in your browser and nothing is saved.

The page shown to visitors whose language is not listed, often the English version or a language chooser.

How to use the generator

1

Enter a language code and the full address of each version of the same page, for example en and ar.

2

Add an x-default address if you have one, then read the checks under the form.

3

Copy the tags and paste the same full set into the head of every version, including the page itself.

Rules that make hreflang work

Every version must list all versions, including itself, and each version must link back to the others. If page A points to page B but B does not point back, the tags may be ignored. Use full absolute addresses, use a hyphen in codes such as ar-AE, and write the language in lower case and the region in upper case.

Use region codes only when the content really differs for that country. Several near-identical copies of a page for different countries add little value and can look like doorway pages, so a single Arabic and a single English version is often the right start. Our hreflang guide for Arabic and English goes deeper, and our Arabic SEO service and technical SEO audits cover the full setup, including sitemaps and checks in Search Console.

Questions about hreflang

It tells search engines which language or regional version of a page to show to which users. It is a signal and not a command, so a good page structure still matters.
It is optional but recommended. It names the fallback page for visitors whose language does not match any version you list.
Use ar for one Arabic version that serves all Arabic speakers. Use ar-AE, ar-SA and similar only when you publish separate content for those countries.
The most common place is the head of each page. You can also place them in your XML sitemap or in HTTP headers. Choose one method and keep it consistent.

Running an English and Arabic site?

We set up Arabic SEO, hreflang and indexing so each audience finds the right page.

See Arabic SEO

See all free tools