A worked example
en and zh-CN URLs generate two alternate links; add x-default for an explicitly chosen fallback.
Create reciprocal hreflang tag blocks for supplied language and page-URL pairs.
Work from supplied text and URLs. Example.com is a sample; replace it with your own real addresses. Nothing is fetched, uploaded or submitted.
<link rel="alternate" hreflang="en" href="https://example.com/" /> <link rel="alternate" hreflang="zh-CN" href="https://example.com/zh/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
Use ISO 639-1 languages, optionally with an ISO 3166-1 country. This tool does not support script tags or verify remote return links.
These tools do not submit to Google or predict rankings. robots.txt controls crawling, not access security; the preview does not reproduce every search display or snippet rewrite.
Each language code must be unique; every supplied page should include the same full set, including self-reference. x-default is optional.
en and zh-CN URLs generate two alternate links; add x-default for an explicitly chosen fallback.
Checks basic supported language/region codes, not remote reciprocal links. Install the tags on the actual pages and verify deployment separately.
No. Processing runs locally in your browser. The host still receives normal requests for website pages and assets.
Use the download controls for the current tool or print from your browser. Seating plans, flashcards and document drafts autosave in this browser; see the privacy page.
No sign-up, paid API or subscription is required. Both languages use the same tools. English always opens at the root address.
Paste robots.txt and test a URL path against a selected crawler token.
Open toolTurn a supplied list of same-origin page URLs into an escaped XML sitemap.
Open toolPreview an entered title, URL and description, with character counts and HTML metadata export.
Open tool