Hreflang Tag Generator
List your language pages with a code and a full URL, and get the hreflang tags as HTML, as XML sitemap entries or as an HTTP Link header. The page checks the codes and adds x-default.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Hreflang Tag Generator online
- List the pages. Code, comma, full URL, one per line.
- Pick the output form. HTML, sitemap or header.
- Set x-default. Choose which page it points at.
- Copy the tags. Add them to every version.
Why use this free Hreflang Tag Generator
- Three output forms
- x-default support
- Code clean-up and check
- Repeated code warning
- Full URL check
- Runs in your browser
What hreflang does
When one page exists in several languages or for several regions, hreflang tells search engines which version is meant for which audience. Each page lists all its versions, including itself, by language code and full address. It is a hint to the search engine, which may still choose another version.
Codes
A code is a language such as en or fr, optionally followed by a region such as GB or a script such as Hant. The page changes en_gb to en-GB and checks the shape. It checks the form only and does not know which languages or regions you serve. The code x-default marks the page to show when no language fits.
Three output forms
The HTML form is a set of link tags for the head of each page. The sitemap form writes each page as a url entry with the full set of alternate links, so it suits large sites. The header form writes one Link header, which also works for files that are not HTML, such as PDFs.
Rules that cause trouble
Every page must list the full set, and each page must list itself. The links must agree in both directions, or the search engine may ignore them. Use full URLs that match the address of the page, including the same trailing slash. The page warns about repeated codes and malformed addresses.
Limits
This page cannot check your live site. It writes the tags from the lines you give it, in your browser, and does not fetch any page. Check the result in your search tools after you publish.
Using the tool
As you type in the Hreflang Tag Generator, the result appears at once. Open a text file into the box, or drop one on it.
Hreflang Tag Generator: frequently asked questions
Do I need x-default?
Can I mix language-only and language-region codes?
Should the tags go on every page?
Is hreflang a ranking factor?
Which output should I choose?
Is the text I paste into the Hreflang Tag Generator uploaded?
Is there a way to reuse the Hreflang Tag Generator result?
Related searches for Hreflang Tag Generator
- Hreflang Tag Generator online
- free Hreflang Tag Generator
- Hreflang Tag Generator online free
- Hreflang Tag Generator for mobile
- Hreflang Tag Generator without sign up
- Hreflang Tag Generator – Business & Marketing
Hreflang Tag Generator is a free online tool on MAITBOX, in the Business & Marketing group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.