hreflang Tag Generator
Alternate-language link tags, HTTP header and sitemap entries – with code check.
Runs entirely in your browser. Nothing is sent anywhere.
How it works
- 1Paste or type your text.
- 2Choose the options you need.
- 3Copy or download the result.
About this tool
hreflang Tag Generator: Alternate-language link tags, HTTP header and sitemap entries – with code check. Paste your text and the result appears immediately, ready to copy or download. Everything happens locally in your browser — nothing you paste is uploaded or stored.
Example
Input
en https://example.com/en/ de https://example.com/de/ de-AT https://example.com/at/ pt-BR https://example.com/br/ x-default https://example.com/
Output
<link rel="alternate" hreflang="en" href="https://example.com/en/" /> <link rel="alternate" hreflang="de" href="https://example.com/de/" /> <link rel="alternate" hreflang="de-AT" href="https://example.com/at/" /> <link rel="alternate" hreflang="pt-BR" href="https://example.com/br/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
How do I use the hreflang Tag Generator?
Paste or type your text. Choose the options you need. Copy or download the result.
Is the hreflang Tag Generator free?
Yes. It is completely free with no sign-up, no usage limits and no watermark.
Is my data sent to a server?
No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.