Easily generate the complex HTML `<link>` tags needed to tell Google about the different language and regional versions of your pages.
Client-side · Private · Instant
Add all language/regional variations of this specific page.
Add URLs to generate hreflang tags.
Definition
Hreflang tags are HTML link attributes (`rel="alternate" hreflang="x"`) that tell search engines like Google which language you are using on a specific page. This allows the search engine to serve that result to users searching in that specific language.
Use Cases
If your website targets audiences in multiple countries or languages, hreflang tags are mandatory for good International SEO.
The Mechanics
Creating these tags by hand is prone to errors because they require specific ISO codes and strict bidirectional linking.
Language CodeMust be in ISO 639-1 format (e.g., 'en', 'es', 'fr'). This is required.
Region CodeMust be in ISO 3166-1 Alpha 2 format (e.g., 'US', 'GB', 'MX'). This is optional.
x-defaultA special tag for users whose language does not match any of your specific language tags.
Capabilities
No need to memorize ISO codes. Select from our dropdown of standard languages and regions.
Automatically generates the mandatory self-referencing tag for the current page.
Easily designate a fallback URL using the x-default attribute.
Instantly copy the perfectly formatted HTML code to paste into your `<head>`.
Step-by-Step
Type in the absolute URL of the page you are tagging (e.g., https://example.com/fr/about).
Choose the language of that specific page (e.g., French).
If the page is for a specific country (e.g., Canada), select it. Otherwise, leave it blank to target all French speakers.
Click 'Add Another URL' to include the English or Spanish versions of the same page.
Copy the generated code and paste it into the `<head>` section of EVERY URL listed.
FAQ
The generated `<link>` tags must be placed inside the `<head>` section of your HTML document. Alternatively, they can be implemented in the HTTP headers or within an XML Sitemap, but the `<head>` method is the most common.
Hreflang tags are just one part of international SEO. Run a free audit to ensure your entire site is optimized for Google.