hreflang Generator
Generate hreflang tags for multilingual sites — tells Google which version to show by language/region (pt-BR, en-US, x-default, etc.). Everything in your browser.
Mapeamento idioma → URL (formato: pt-BR https://exemplo.com/pt)
Send each language to the right page
Your site has a Portuguese and an English version, and Google keeps serving the wrong one: Brazilians landing on the English page, Americans on the Portuguese one. hreflang tags exist for exactly this, but writing them by hand is tedious and typo-prone. Here you list one pair per line, in the format pt-BR space URL, and get the block of link rel=alternate tags ready to copy into your head section.
The classic hreflang trap is reciprocity: every version of the page must list all the others and itself. If page A points to B but B does not point back, Google ignores the whole pair. Another one: the code must be a language (ISO 639-1) plus an optional region (ISO 3166-1). Using just br is a common and costly mistake: br means Breton, not Brazil; the right code is pt-BR. The tool accepts whatever you type and silently skips malformed lines, so check that the output has as many tags as your input has lines.
Paste the same block into the head of every version of the page, trimming nothing. Add an x-default line pointing to your fallback version, the one to show visitors who match none of the listed languages. Make sure every URL returns a 200: hreflang pointing at a redirect or a 404 gets dropped. On sites with thousands of pages, consider declaring hreflang in the sitemap instead of the head. Everything is generated in the browser; nothing is sent to a server.
Frequently asked questions
Do the tags need to be on every version of the page?
What is x-default for?
Can I use plain pt instead of pt-BR?
Read more on this
Related Tools
Sitemap XML Generator
Generate a sitemap.xml from a URL list with lastmod, changefreq and priority. Useful for static sites. Everything in your browser.
Title and Description Analyzer
Check whether your <title> (50-60 chars) and meta description (150-160 chars) are at the ideal length for Google. Shows snippet preview. Everything in your browser.
JSON-LD (Schema.org) Generator
Generate JSON-LD markup for Schema.org — Article, Product, FAQPage, BreadcrumbList, Organization, Person. Paste in <head> and improve your Google snippet. Everything in your browser.
Google SERP Snippet Preview
Preview how a title/description will look in Google search results.
Link Alternate Builder
Build the <link rel="alternate" hreflang> tag for language variants.
Canonical URL Generator
Generate the <link rel="canonical"> tag with the preferred URL. Helps avoid duplicate content and consolidate page authority on Google. Everything in your browser.