Home / Web & SEO / Hreflang Tag Generator

Hreflang Tag Generator

Make hreflang tags for language and country versions of a page as HTML, sitemap entries or an HTTP header.

Free, no uploads, no sign-up. Runs 100% in your browser.

How Hreflang Tag Generator works

Generated in your browser from what you type or drop. Nothing is fetched from or sent to your site. Codes are checked and a missing x-default is flagged.

Input: Text. Output: HTML, XML.

How to use Hreflang Tag Generator

  1. Add each version and its code.
  2. Pick the output.
  3. Copy it to every version.

Tips

  • Nothing is fetched from your site, so these tools also work for staging sites and pages behind a login.
  • Test changes on a staging copy of your site first.

Hreflang Tag Generator FAQ

Are my files uploaded?
No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
Is it free? Are there limits or watermarks?
Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
Does it work offline?
Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.

Related tools

OpenFile runs in your browser. Turn on JavaScript to use the tools.