<link rel="alternate" hreflang="en" href="https://example.com/" /> <link rel="alternate" hreflang="es" href="https://example.com/es/" /> <link rel="alternate" hreflang="fr" href="https://example.com/fr/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
How to use
Fill in language and URL pairs
Each row takes a code on the left, like en, es-MX, or x-default, and the full page URL on the right. Edit the four sample rows to match your own site first.
Add or remove locales
Press + Add language for each extra market and fill in the new row. The trash icon deletes a row, and any row missing a code or a URL is left out of the output.
Copy the alternate link tags
The HTML pane shows one link rel=alternate line per row. Copy the block into the head of every language version, keeping the full set identical on each page.
Why Hreflang Tags Generator
- Build hreflang annotations for multi-language sites.
- Include x-default for the fallback locale.
- Output is ready to drop into your <head>.