Free Hreflang Schema & Tag Generator

Create accurate language and regional targeting tags for free to ensure search engines display the correct localized page version.
1. Select Output Target

2. Configure Language & Regional URLs

Add all alternate versions including default and self-referential links.

Validation & Formatting Options

Copy Code
Download
Reset
Validated Standard

Live SEO Check & Audit

Pro Tip: Reciprocal Links

Hreflang tags must be reciprocal. Every page linking to an alternate version must have that alternate version link back to it, otherwise search engines may ignore them.

How to Use the Hreflang Tag Generator

Build reciprocal hreflang tags for every language and region version of a page.

1. Enter Your Details

Fill in the fields with your page or site information.

2. Review the Preview

Check the live preview to see exactly how it will appear.

3. Copy or Download

Copy the generated output or download it for your CMS.

Understanding Hreflang Tag Implementation

Everything you need to know to avoid duplicate content penalties and rank globally.

Correct ISO Codes

Language codes must be ISO 639-1 (e.g. es) and region codes must be ISO 3166-1 Alpha-2 (e.g. MX).

Self-Referential Links

Each page must include a tag pointing to itself alongside its alternate localized versions.

The x-default Tag

Use x-default to specify the fallback URL for unmatched visitors or global landing pages.

Frequently Asked Questions

Hreflang is an HTML attribute that tells search engines which language and, optionally, which region a page is intended for. It helps search engines serve the correct language or regional version of a page to searchers.
Use an ISO 639-1 language code (e.g. "en", "fr", "es"), optionally followed by an ISO 3166-1 Alpha 2 region code (e.g. "en-US", "en-GB", "fr-CA").
x-default marks the fallback page to show visitors whose language or region doesn't match any of your other hreflang entries - commonly a language selector page or your default locale.
Yes. Every page in a set should reference all other language/region variants, including itself. If page A links to page B but B doesn't link back to A, search engines may ignore the annotations.
Paste the generated tags into the section of each corresponding page - every page in the set should include the full list of alternates.
Yes. The tool is completely free and does not require sign-up.

Still stuck? Contact us.

Explore More Tools

Discover more free tools to help you build, test, and optimize your site.