Hreflang Tag Generator

Add your language/region codes and URLs, then generate a complete set of <code>rel="alternate"</code> hreflang tags ready to paste into your &lt;head&gt;.

Runs entirely in your browser. Nothing is uploaded.

How it works

STEP 1

Add rows

Enter a language/region code (e.g. en, en-US, fr, x-default) and its full URL for each variant of your page.

STEP 2

Generate tags

Click Generate to produce valid hreflang link tags with x-default automatically included if needed.

STEP 3

Copy & paste

Copy the output and paste it inside the <head> section of every page variant.