Hreflang Tag Generator

Hreflang tags tell Google which language or regional version of a page to show each searcher. Add every version of the page, then place the same set of tags on all of them.

Runs entirely in your browser. Nothing you type is sent anywhere.

Result
<link rel="alternate" hreflang="en" href="https://www.example.com/" />
<link rel="alternate" hreflang="fr-FR" href="https://www.example.com/fr/" />
<link rel="alternate" hreflang="ar-MA" href="https://www.example.com/ar/" />

Frequently asked questions

Does every version need the same tags?
Yes. Each version must list all versions, including itself. Google ignores hreflang links that are not returned by the other page.
What is x-default?
The page to show when no language matches, often a language picker or your main English page.

Go further with GlobalSEO

Keyword research, rank tracking, site audits, backlinks, AI visibility and Search Console insights in one place.

Start free