Language tags builder
The language tags builder writes hreflang link tags for a site that has the same page in several languages or for several regions.
What Language tags builder does
The language tags builder writes hreflang link tags for a site that has the same page in several languages or for several regions. They help search engines show a Hindi reader the Hindi page and an English reader the English one.
Write one line per version as language code | address, for example hi-in | https://example.in/hi/. Codes are made lowercase and underscores turn into hyphens. Lines with a code or address that doesn't look right are skipped. Add a default address for everyone else and it becomes the x-default tag. Copy the set or download it as a file.
How to use Language tags builder
- List each language version
One line each: the language code, a straight bar, then the full address.
- Add the default address
This is where visitors go when no language matches, often your main home page.
- Copy the tags
Paste the same set into the head of every language version of the page.
Questions about Language tags builder
What is an hreflang tag?
It is a link tag that tells search engines which language or region a page is for, and where its other language versions are.
What language code should I use for Hindi in India?
Use hi-in for Hindi in India and en-in for English in India. A two-letter code such as hi on its own is also accepted.
Why are some of my lines missing?
A line is skipped if its code isn't in a valid language-region form or its address doesn't start with http:// or https://.