Hreflang Tag Generator

Tell search engines which language version to show each user.

Loading tool...

How to use Hreflang Tag Generator

  1. Enter one language and URL per line, such as: en, https://example.com/.
  2. Add an optional x-default URL.
  3. Copy the tags into the <head> of every language version.

About this tool

hreflang tags link equivalent pages in different languages or regions so search engines can serve the right one. Codes are an ISO 639-1 language such as en or fr, optionally followed by an ISO 3166-1 region such as en-GB. Every version must list all the others and itself, otherwise the annotations are ignored.

x-default marks the page to show when no language matches.

Frequently Asked Questions

Do all versions need the full set of tags?
Yes. Each page must include tags for every version, including itself.
Is hreflang a ranking factor?
No. It helps show the right page to the right audience.

Related tools