Hreflang Generator
Create hreflang tags and sitemap annotations for multilingual sites, with code validation and return-link checks.
Hreflang Generator
Put this same block in the <head> of every listed page
<!-- Add rows with a language and a full URL -->Check return links on the live pages (optional)
hreflang only works when every version links to every other version — and to itself. OZVILO's server can download each URL above (up to 10) and check which annotations each page is missing.
hreflang helps search engines show the right language or regional URL to searchers. It doesn't redirect visitors and doesn't guarantee rankings in any country.
Pasted text and HTML are processed in your browser. Only when you use a URL mode does OZVILO's server download the public pages you enter (without cookies or logins); URLs and results aren't stored.
How to use the Hreflang Generator
- 1Add one row per language or regional version: language code, optional region and full URL.
- 2Add an x-default row for visitors whose language doesn't match.
- 3Fix any code or URL errors.
- 4Copy the same tag block into every listed page, or use the sitemap version; optionally check the live pages.
Examples
UK English
- Input
- Language en, region UK
- Result
- Error: the United Kingdom's code is GB (en-GB)
Cluster
- Input
- en, en-GB, ur-PK and x-default
- Result
- 4 link tags to place on all three pages
Hreflang Generator features
- Language (ISO 639-1, optional script) and region (ISO 3166-1) validation with helpful hints
- x-default support and detection of duplicate codes and URLs
- Output as HTML link tags, an XML sitemap with xhtml:link, or a preview table
- Optional live check: fetches each page and lists missing return links
- Copy and download every output
Frequently asked questions
What are return links?
Every page in a language set must link to all the other versions and to itself. If page A points to B but B doesn't point back, search engines may ignore the annotation. Place the same block on every listed page.
Does hreflang redirect users or boost rankings?
No. It helps search engines show the right language or regional URL in results. It doesn't redirect visitors and doesn't guarantee rankings in any country.
Should I use HTML tags or the sitemap?
Either works, and they have the same effect. Tags are simpler for small sites; sitemap annotations are easier to maintain for many pages. Don't maintain conflicting versions of both.
Related tools
- Available
XML Sitemap Generator
Create valid XML sitemaps from a URL list, a .txt file or a safe crawl of your site, split at protocol limits.
SEO ToolsOpen tool - Available
Canonical URL Generator
Normalize a URL and generate its canonical link tag and HTTP header — you choose every change.
SEO ToolsOpen tool - Available
Meta Tag Generator
Generate title, description, robots, Open Graph and Twitter card tags with a live search preview.
SEO ToolsOpen tool - Available
On-Page SEO Checker
Audit a page's title, meta tags, headings, images, links, canonical, social tags and structured data — from a URL or pasted HTML.
SEO ToolsOpen tool