Hreflang Tags Generator
Show Google which page is for which language
Hreflang tells Google which version of a page to show for each language and country. List every version and get the code. The tool flags any wrong codes before you copy.
Your page versions
Add one row for each language or country version of the page, including the one you're on.
Paste a list of URLs
One URL per line. You can add a code after each URL, like https://example.com/fr/ fr-CA, or paste two columns from a spreadsheet. Use x-default as the code to set the fallback page.
This is the page for anyone who doesn't match a version above. It's usually your main page or a language picker.
Checks
Your hreflang code
How to use it
Do this once for each set of pages that are translations or local versions of each other.
Add every version
Put in the full URL of each language or country version, including the page you're on. You can paste a list. The tool often reads the code from the URL, like /fr-ca/.
Set the language codes
The language comes first, then an optional country, so British English is en-GB. Type a code or a name like Spanish. Then set an x-default page for everyone else.
Copy one format
Use the HTML tags in the head of every version, the entries in your XML sitemap, or the Link header for PDFs. You only need one of them.
Hreflang questions
What does an hreflang tag do?+
What is x-default?+
Does every page need to list all the others?+
Which language and country codes can I use?+
Should I use HTML tags, the sitemap or HTTP headers?+
Do the URLs have to be full URLs?+
Running a site in more than one language?
Hreflang points Google to the right version. Each version still needs its own content and links to rank in its country. Our international SEO team can plan that with you.
Book a discovery call