Which hreflang tags do these pages need?
Enter the address of each language version, or paste them from a spreadsheet. You get the tags for every page's head, the same set as XML sitemap entries and as HTTP headers, checked with the hreflang checker's rules. Greek and English are ready to fill in.
One row per page, one column per language. Write the code at the top of each column, such as el, en or en-GB, and the full address of each version below it.
Paste rows instead
Two layouts work. A table copied from a spreadsheet, with the codes in the first row and one page per row (a first column with page names is skipped). Or one code and one address per line, with an empty line between pages.
What it writes
- The tags for each page's head. One
<link rel="alternate" hreflang>line for every version, the page itself included, and the same lines on every page of the set, as Google's guide to localized versions asks. - The same set as XML sitemap entries. A
<url>entry for every address, each with an<xhtml:link>for every version, under the xhtml namespace in Google's guide. Addresses are percent-encoded and&is escaped, as the sitemaps protocol asks. - The same set as HTTP Link headers. For PDFs and other files that have no head: one Link header per set, sent with every version.
- Checks, with the hreflang checker's own rules. Each code is a two-letter ISO 639-1 language, with an optional ISO 3166-1 alpha-2 region (el, el-GR, en-GB). It catches en-UK, gr for Greek, a country on its own and underscores, and offers the fix. Every address has to be full, no code may appear twice, no address may sit in two sets, and an x-default is recommended.
- The return links, read back. The finished tags are read with the hreflang checker's code, page by page, to confirm that every page lists itself and that every other version links back to it. Google ignores the tags of two pages that do not both point to each other.
What it does not do
It does not open your pages. It cannot tell whether an address answers, redirects, is set to noindex or names another page as canonical. Once the tags are live, check one page of each set with the hreflang checker.
It does not read your text, so it cannot tell whether a page marked el is really written in Greek.
It does not choose the method for you. Google's guide says the three methods are equivalent from Google's point of view. Pick the one that suits the site, and keep the sets complete wherever you use them.
Questions
Which page should be the x-default?
x-default names the page for visitors whose language matches none of your versions, and Google recommends one. It can be a page where visitors pick a language, or one of the versions themselves: Google's guide says the fallback can be one of the specific pages. On a Greek and English site, many choose the English page.
el or el-GR?
el is Greek for everyone, wherever they are. Add a region only when you have different pages for the same language in different countries, such as el-GR for Greece and el-CY for Cyprus. Never gr: GR is the country, and a country on its own is not a valid code.
Do I need hreflang in the sitemap and in the pages?
No. Google treats the three methods as equivalent, so one complete set is enough. The head tags are easy on a small site; the sitemap keeps a large site's sets in one file.
Why are my Greek addresses full of %CE and %CF?
That is how Greek letters travel in an address. Google's URL guide recommends percent-encoding characters outside ASCII, and the sitemaps protocol shows the same encoding. Browsers show the Greek letters again, and both forms lead to the same page.