Hreflang Tag Generator
Generate hreflang link tags for multilingual or multiregional pages, with validation of language region codes and an optional x-default.
Runs on your device
Result
Results appear here after you select “Generate”.
What it does
If you have the same page in English and Urdu, or for the UK and the US, hreflang tells search engines which version to show to whom. Every version must list all the others, including itself.
How to use it
- Enter one "code URL" pair per line, for example "en-GB https://example.com/uk/".
- Add an optional x-default URL.
- Paste the tags into the head of every listed page.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Bilingual English/Urdu sites.
- Regional pricing pages.
- International stores.
Questions
Which codes are valid?
An ISO 639-1 language code, optionally followed by an ISO 3166-1 region: en, ur, en-PK, fr-CA. "en-UK" is wrong; the UK code is GB.
What is x-default?
The page for users whose language or region you have not listed, often a language selector.
More seo tools
See all 10- .htaccess Redirect Generator Generate Apache .htaccess rules for 301 or 302 page redirects, forcing HTTPS and adding or removing www, for cPanel and Hostinger hosting.
- Meta Tag & Open Graph Generator Generate title, meta description, canonical, Open Graph and Twitter Card tags for a page, with length warnings based on how search results display.
- URL Slug Generator Turn titles into clean, lowercase URL slugs: accents removed, symbols stripped, optional stop word removal and a maximum length that never cuts a word in half.
- Robots.txt Generator Build a valid robots.txt with disallowed paths, a sitemap reference, an optional crawl delay and optional rules blocking known AI training crawlers.
- XML Sitemap Generator Create a valid sitemap.xml from a list of URLs. Duplicates are removed, URLs are XML-escaped and entries from other domains are flagged.
- Google SERP Snippet Preview Preview how a title and meta description may be truncated in Google desktop results, using an approximate pixel width model rather than plain character counts.
People also use
Browse all 200 tools- Permutation & Combination Calculator Calculate nPr and nCr (combinations) exactly for large n using BigInt, plus factorials, with the formulas and substituted values shown. Student & maths
- Copy and Paste Symbols Copy special characters with one click: arrows, check marks, stars, currency, maths, Greek letters, bullets and more. Search by name. Quick utilities
- Currency Converter (ECB Rates) Convert between 30 major currencies including USD, EUR, GBP, CAD, AUD, INR and JPY using the European Central Bank’s daily reference rates. Personal finance
- Word & Character Counter Count words, characters with and without spaces, sentences, paragraphs and lines, with reading and speaking time estimates. Works with Urdu and emoji. Text & writing