How to Use the Hreflang Generator
A free tool to create perfect international SEO tags so Google serves the right language to the right user.
Step-by-Step Guide
- Set the x-default: Enter the URL of your default page. This is where users are sent if their language doesn't have a dedicated page (often your main English page).
- Add Language Variations: Click "Add Version" for every translated version of the page. Select the language, optionally select a specific country region, and paste the URL.
- Copy the Code: Click the "Copy HTML" button to copy the entire block of code to your clipboard.
-
Implement Everywhere: Hreflang tags must be reciprocal. You must paste this exact block into the HTML
<head>of every URL included in the list.
What are Hreflang tags?
Hreflang tags are HTML attributes that tell search engines the language and regional targeting of a specific webpage. If you have an English page and a Spanish page, hreflang tags ensure Google shows the Spanish page to users searching in Spain, and the English page to users in the US.
Common Mistakes
Missing return links: If page A links to page B, page B MUST link back to page A. If not, the tags are ignored.
Wrong Region Codes: Region codes must follow ISO 3166-1 Alpha 2 (e.g., 'GB' for United Kingdom, not 'UK'). This tool uses the correct ISO codes automatically.