Saltar al contenido

Language URL Variants

HTML <head> Tags

<link rel="alternate" hreflang="hr" href="https://efortis.hr/seo-alati" />
<link rel="alternate" hreflang="en" href="https://efortis.hr/en/seo-tools" />
<link rel="alternate" hreflang="de" href="https://efortis.hr/de/seo-tools" />
<link rel="alternate" hreflang="x-default" href="https://efortis.hr/seo-alati" />

XML Sitemap (<xhtml:link>)

<url>
  <loc>https://efortis.hr/seo-alati</loc>
    <xhtml:link rel="alternate" hreflang="hr" href="https://efortis.hr/seo-alati" />
    <xhtml:link rel="alternate" hreflang="en" href="https://efortis.hr/en/seo-tools" />
    <xhtml:link rel="alternate" hreflang="de" href="https://efortis.hr/de/seo-tools" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://efortis.hr/seo-alati" />
</url>

¿Quieres automatizar todo tu flujo de SEO y visibilidad en IA?

EFORTIS AI reúne Google Search Console, optimización WDF*IDF, redacción IA, seguimiento GEO y publicación directa en WordPress.

How to Generate Valid Hreflang Tags

Add your language URL variants and copy ready-to-use HTML or XML sitemap code.

  • Always include an x-default tag as a fallback for unmatched languages.
  • Every language variant should include return links to all other variants and itself.

1. Add Language Codes & URLs

Enter all language variants (e.g., en, hr, de) plus your x-default fallback URL.

ISO 639-1 + x-default

2. Copy HTML or XML Sitemap Output

Choose between <link rel='alternate'> tags for <head> or <xhtml:link> for sitemap.xml.

HTML & XML formats

Why Hreflang Matters for International SEO

The most frequent international SEO error is missing return links or forgetting the x-default fallback.

This tool outputs both HTML <head> link tags and XML sitemap <xhtml:link> blocks.

Right Language for Every Market

Users see the localized version of your page in their country's search results.

No Cross-Language Cannibalization

Helps Google distinguish regional variants cleanly.

FAQ

¿Qué formato de idioma usar?+

ISO 639-1 (es, en, hr) o idioma-región (es-MX, en-GB).

¿Para qué sirve x-default?+

Como URL alternativa para idiomas sin coincidencia.

¿HTML o XML Sitemap?+

Cualquiera de los dos, siempre que sea bidireccional.

¿Qué es self-referencing hreflang?+

Cada versión debe enlazarse también a sí misma.

Explora más herramientas SEO gratuitas

Auditoría Live
Escáner Live de Preparación IA y SEO On-Page
Introduce cualquier URL y comprueba al instante /llms.txt, acceso de bots IA en robots.txt, Title, Meta, H1, alt y JSON-LD.
SEO On-Page
Simulador SERP de Google
Previsualiza cómo se verán tu Title y Meta Description en Google (escritorio y móvil) con medición exacta en píxeles.
GEO y SEO IA
Generador de llms.txt y Rastreadores IA
Genera un archivo /llms.txt estándar y reglas robots.txt para ChatGPT, Claude y Perplexity.
SEO Técnico
Generador de robots.txt y Validador de Bots IA
Crea un robots.txt limpio para WordPress, SaaS o ecommerce y comprueba en vivo si una ruta está permitida para Googlebot o bots IA.
Datos Estructurados
Generador de Schema Markup JSON-LD
Genera código JSON-LD válido para Article, FAQPage, LocalBusiness y Organization.
Contenido y On-Page
Analizador de Contenido y Densidad de Palabras Clave
Pega texto o HTML para obtener recuento de palabras, tiempo de lectura, legibilidad LIX, H1–H3, auditoría alt y frases clave.
Analítica y SEO Técnico
Constructor de URLs UTM y Canonical
Crea enlaces de campaña UTM limpios y elimina parámetros de seguimiento para obtener una etiqueta rel=canonical perfecta.
Social y CTR
Vista Previa Open Graph y Redes Sociales
Comprueba cómo se verá tu enlace en LinkedIn, X y Facebook y genera las metaetiquetas og:* y twitter:*.
SEO Técnico
Analizador y Auditoría de Sitemap XML
Introduce un dominio o URL de sitemap.xml y detecta duplicados, enlaces http://, bloqueos en robots.txt y códigos HTTP.
Schema y CRO
Generador de FAQ Schema + Acordeón Visual
Crea preguntas y respuestas y descarga con un clic el esquema JSON-LD FAQPage y un acordeón HTML/CSS sin JavaScript.