Hreflang Tag Generator

Create reciprocal hreflang tags (HTML or XML sitemap format) with code validation and x-default.

Runs entirely in your browser — nothing you type is sent to our server.

Add every language/region version of the same page. All versions must carry the same set of tags.

Codes use ISO 639-1 language (e.g. en, hi, ta) with an optional ISO 3166-1 region (en-IN, en-GB). A region alone (IN) is invalid. Each page should also include a tag pointing to itself.