robots txt Generator
Build a valid robots.txt with the right allow/disallow rules, crawl-delay and sitemap line — with warnings for the mistakes that accidentally block your whole site from Google.
Generate correct hreflang tags for multilingual and multi-region sites — as HTML link tags or an XML sitemap block — with validation that catches the mistakes Google flags.
Generate hreflang without making hreflang mistakes. Reciprocity and self-references are built in, ISO codes are checked live, and you get one clean block to paste on every page. 100% in your browser.
Add your language versions to generate tags.
processed in your browser · never uploaded
Enter the URL of each translated page and pick its language, and region if it targets one (e.g. en, en-GB, es, es-MX).
Add an x-default entry for your language selector or fallback page, so users and search engines have a home when no version matches.
Take the HTML tags for your , or the XML block for your sitemap. Put the same set on every language version.
| Input | Output | Typical saving | Best for |
|---|---|---|---|
| page URLs + codes | HTML link tags | Adding hreflang to the of each page | |
| page URLs + codes | XML sitemap block | Managing hreflang centrally in your sitemap |
We ran the same files through the popular alternatives first. These are the gaps we found, and what this tool does instead.
Every entry is validated against real ISO language and region codes as you type, so you don't ship tags that quietly fail.
test: enter an invalid code like "en-UK" and watch the flaghreflang must be reciprocal — every version must link to every other. This builds the complete, symmetric set for you.
test: add three versions and check each references the othersChoose HTML tags for the page head, or an XML block for your sitemap — whichever your site uses.
test: switch between the HTML and XML tabsAn hreflang tag tells search engines which language or regional version of a page to show which users — so a French speaker sees your fr page, and a shopper in Mexico sees es-MX rather than es-ES. Getting it right keeps the correct version in search results and stops your own translations competing as duplicate content. Getting it wrong is easy, and Google’s response to a mistake is simply to ignore the tag — with no warning.
That silent failure is what this tool is built to prevent. It validates every entry as you build it, catching the errors that actually break hreflang in the wild: a missing self-reference (every page must point to itself), missing return tags (if page A points to B, B must point back to A, or Google discards both), wrong codes (people write “jp” for Japanese when the correct code is “ja”, or use “uk” thinking United Kingdom when it actually means Ukrainian), and relative URLs where hreflang requires absolute https:// ones.
You add each language version with its language and optional region code — following the ISO 639-1 language and ISO 3166-1 country standards — set an x-default for users whose language matches none of your versions, and export. Choose HTML <link> tags for each page’s head, or an XML block for your sitemap, depending on how your site is set up — just don’t use both methods for the same URLs. Everything runs in your browser; there’s nothing to upload and no signup.
Building out your technical SEO? The llms.txt Generator creates the AI-crawler equivalent for your site.
It tells search engines which version of a page to show users in different languages or regions — so a Spanish speaker in Mexico gets your es-MX page, not the English one. It's the core of international SEO.
Language alone (e.g. es) is fine when the content suits all speakers of that language. Add a region (e.g. es-MX) only when you have genuinely different content for that country. Don't invent regions you don't have pages for.
It's the fallback for users whose language or region doesn't match any of your versions — usually your language-selector page or your main international page. It's optional but recommended.
Either, not both for the same URLs. HTML tags go in each page's ; the XML version goes in your sitemap. Pick whichever is easier to maintain, and keep the full set on every version.
Almost always a missing return tag (the versions must all reference each other), a wrong or invented code, or relative URLs — hreflang needs absolute https:// URLs. This tool checks for all three before you export.
Build a valid robots.txt with the right allow/disallow rules, crawl-delay and sitemap line — with warnings for the mistakes that accidentally block your whole site from Google.
Build a valid XML sitemap by discovering your pages automatically or pasting a URL list — with lastmod, priority, and automatic splitting for sites over 50,000 URLs.