Inputs
If your canonical URLs always use (or avoid) trailing slashes, normalize them here before generating tags.
Required only if
x-default is enabled. Usually your global homepage or language selector.| Language / Region | URL | Notes | Actions |
|---|
Enter codes like
en, en-US, pt-BR, zh-HK. Region must be AA (ISO 3166-1 alpha-2) or 999 (UN M.49). Paste multiple lines in the first cell: en-US\thttps://example.com/us/.Add your language/region + URL rows, then generate tags.
Output
Tip: Place these tags in the
<head> of each page, with the set containing all alternates + self-referencing hreflang.
Preview
0 tags
0 invalid
| hreflang | href | notes |
|---|---|---|
| No entries yet. | ||
About hreflang
hreflang tags help search engines understand language and regional targeting for equivalent pages.
Each page should reference all alternates (including itself) using <link rel="alternate" hreflang="β¦" href="β¦">.
Code format (basic)
- Language only:
en,fr,de - Language + region:
en-US,pt-BR,zh-HK - Optional default:
x-default(global/selector URL)
Notes
- This tool performs format validation (shape/casing). It doesnβt verify whether a code is actually assigned.
- Use fully-qualified absolute URLs (https recommended).