On this page
- What this XML sitemap generator does and when sitemaps help crawling
- How the Sitemaps.org 0.9 protocol and UTF-8 escaping work
- Priority and changefreq: how Google, Bing, and Yandex treat hints
- Last modified dates (<lastmod>) without crawl-trust penalties
- URL hygiene audit: what to include vs exclude from sitemap.xml
- Scaling past 50,000 URLs with sitemap index files and gzip
- Three worked implementations: static site, 200-post blog, and docs host
- Deploying, declaring in robots.txt, and auditing in Search Console
- Eight common XML sitemap mistakes and exact fixes
- Where this tool stops and technical scope disclaimer
- Sources and technical specifications
What this XML sitemap generator does and when sitemaps help crawling
This utility converts a newline-separated list of webpage addresses into a standards-compliant sitemap.xml document formatted to the Sitemaps.org 0.9 XML Schema. As it builds your file inside the browser tab, it deduplicates repeated URLs (keeping first occurrences), escapes reserved XML characters, validates whether every address uses https://, detects accidental mixed hostnames, measures exact uncompressed file size in kilobytes, and provides one-click copy and application/xml file download.
Search engines primarily discover webpages by following internal links from your homepage, hubs, and navigation menus. However, link discovery alone frequently leaves blind spots—especially on newly launched domains with very few external backlinks, large e-commerce catalogs with thousands of product URLs buried four or more clicks deep, editorial archives updated infrequently, and static websites containing orphan landing pages or campaign pages excluded from the main navigation bar. Submitting a clean XML sitemap gives Googlebot, Bingbot, and YandexBot an explicit canonical inventory so crawlers locate newly published and materially updated pages promptly without guessing your directory structure.
Think of an XML sitemap as an architectural blueprint rather than a shortcut around poor site structure. While a clean sitemap speeds up discovery and gives you rich coverage diagnostics inside Google Search Console, pages that remain completely unlinked internally still struggle to accumulate internal link authority and rank competitively. The strongest technical setup pairs a clear internal navigation hierarchy with an accurate, noise-free sitemap.xml that mirrors your canonical URL inventory.
All processing executes 100% locally in your browser without sending your site inventory to any server. If you press the optional Get AI insight button, only anonymous summary counts (URL total, duplicate count, chosen priority and frequency, whether lastmod is enabled, HTTPS status, mixed-host flag, and kilobyte size) leave the tab; your actual URLs and domain name remain completely private.
How the Sitemaps.org 0.9 protocol and UTF-8 escaping work
Published jointly by major search engines under the Sitemaps.org 0.9 standard and governed by W3C XML 1.0 syntax rules, every valid sitemap document shares a strict parent-child hierarchy. The document must use UTF-8 character encoding, begin with the XML declaration, declare the official http://www.sitemaps.org/schemas/sitemap/0.9 namespace on the root <urlset> element, and wrap each webpage inside its own <url> block.
<loc> is mandatory per entry; <lastmod> carries high recrawl utility when truthful, whereas <changefreq> and <priority> remain advisory hints.Because sitemaps are parsed by strict XML parsers before a crawler inspects any webpage, a single unescaped ampersand inside a query string (such as ?category=books&page=2 written raw instead of ?category=books&page=2) causes Google Search Console and Bing Webmaster Tools to fail the entire file with an XML syntax error. Under XML 1.0, five characters inside text elements must be entity-escaped whenever they appear inside a URL: ampersand (&), single quote ('), double quote ("), less-than (<), and greater-than (>).
International websites with accented characters, non-Latin scripts (such as Arabic, French accents, Swahili loanwords with diacritics, or Cyrillic slugs), or spaces in URL paths must follow strict URI encoding alongside UTF-8 file saving. Every URL inside <loc> must follow RFC 3986 URI escaping rules—converting UTF-8 characters into percent-encoded sequences (for example, encoding a space as %20) rather than pasting unencoded Unicode whitespace—while saving the actual sitemap.xml file in UTF-8 without a stray Windows-1252 conversion or leading Byte Order Mark (BOM) before the <?xml declaration.
| XML element or rule | Requirement | Valid syntax / range | Parser constraint |
|---|---|---|---|
<?xml version="1.0" encoding="UTF-8"?> | Mandatory header | First line of file with zero leading whitespace or UTF-8 BOM glitches | Must match actual UTF-8 byte encoding of the saved file. |
<urlset xmlns="..."> | Mandatory root tag | xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | Maximum 50,000 <url> entries and 50 MB uncompressed. |
<loc> | Mandatory child | Full absolute URI including scheme, host, and path (max 2,048 chars) | XML-escape &, ', ", <, >; percent-encode non-ASCII UTF-8 bytes. |
<lastmod> | Optional (High value) | W3C Datetime: YYYY-MM-DD or full ISO timestamp with TZ offset | Only update when substantive page content or metadata actually changes. |
<changefreq> | Optional hint | always, hourly, daily, weekly, monthly, yearly, never | Advisory only; ignored if out of enum set. |
<priority> | Optional hint | Decimal from 0.0 to 1.0 (defaults to 0.5 if omitted) | Relative within one host only; never influences external ranking competition. |
Priority and changefreq: how Google, Bing, and Yandex treat hints
Site owners often spend hours micro-tuning priority decimals and frequency tags believing they force faster indexing or higher rankings. Understanding how each search engine publicly documents these four fields keeps your effort focused on signals that actually move crawl efficiency:
| Sitemap tag | Google Search behavior | Microsoft Bing & Yandex behavior | Best practice for publishers |
|---|---|---|---|
<loc> | Required URL discovery and canonical hint signal. | Required primary URL discovery signal. | List only final canonical https:// URLs returning HTTP 200. |
<lastmod> | Actively used to prioritize recrawling only when consistently accurate and verifiable against page changes. | Actively read to queue updated URLs faster during scheduled crawls. | Reflect true revision dates and keep identical to visible page dates and JSON-LD dateModified. |
<changefreq> | Officially ignored; Googlebot estimates refresh rate empirically from observed edits. | Considered as a secondary scheduling hint alongside crawl history. | Set conservatively (e.g., weekly or monthly) or omit cleanly for static archives. |
<priority> | Officially ignored; does not help URLs outrank competitors or bypass quality evaluation. | Used primarily as a crawl-queue ordering tie-breaker among pages on the same domain. | Reserve 1.0 for homepage/hubs and differentiate tiers (0.8, 0.6, 0.4) if included. |
Last modified dates (<lastmod>) without crawl-trust penalties
The <lastmod> element is the highest-leverage optional tag in your sitemap—provided your workflow treats it truthfully. According to Google Search Central's documentation, crawlers evaluate over time whether a domain's <lastmod> timestamps genuinely match observed changes to page text, structured data, or key media. When a CMS plugin or static build script blindly stamps all 500 URLs with today's date during a header CSS tweak, copyright year swap, or nightly container rebuild, search crawlers discover unchanged pages beneath brand-new dates and stop prioritizing your <lastmod> values across the whole domain.
Conversely, when <lastmod> advances strictly when a guide receives revised statistics, updated screenshots, corrected calculators, or new FAQs, Googlebot and Bingbot can re-allocate crawl capacity directly toward those freshly updated pages rather than wasting requests re-verifying untouched archive posts.
Follow four practical rules whenever enabling timestamps:
- Use
YYYY-MM-DDcleanly: While W3C Datetime permits full timestamps like2026-11-14T14:30:00+00:00, date-onlyYYYY-MM-DDavoids timezone off-by-one confusion and matches editorial "Last Updated" stamps cleanly. - Single story of truth across three layers: Whenever you substantially edit a guide, synchronize the visible on-page updated date, the Schema.org JSON-LD
dateModifiedfield, and that single URL's<lastmod>insitemap.xml—while leaving untouched URLs at their genuine older dates. - Use the generator's global checkbox selectively: Check Include today's date as lastmod on initial site launch or when migrating/republishing every listed page simultaneously. For incremental updates to a multi-page site, generate the clean XML skeleton with the box unchecked, then edit
<lastmod>on the specific pages modified. - Understand what counts as a meaningful update: Reordering a sidebar widget or tweaking ad script placement is not a meaningful page edit. Reserve
<lastmod>bumps for new paragraphs, corrected formulas, updated product pricing/availability, new media assets, or added FAQ answers.
URL hygiene audit: what to include vs exclude from sitemap.xml
A sitemap's power is diluted by noise. Including broken URLs, non-canonical duplicates, or blocked paths does not crash Googlebot, but it wastes crawl capacity and triggers noisy warnings in Google Search Console's Sitemaps and Page Indexing reports.
- Never mix
wwwand apex hostnames orhttp://andhttps://: If your canonical site lives athttps://afriwidget.com/, every single<loc>must start withhttps://afriwidget.com/. Listinghttps://www.afriwidget.com/aboutforces crawlers to waste a hop resolving your 301 redirect and flags the URL as non-canonical in indexing diagnostics. - Match trailing-slash policy consistently: Decide once whether URLs omit trailing slashes (
/about), include them (/about/), or end in.html, and ensure your<loc>strings match your<link rel="canonical">tags character for character. Listing/pricing/in your sitemap while your canonical tag declares/pricingsends contradictory signals that slow canonical selection. - Exclude redirects,
noindex, androbots.txtblocks: Never list URLs carrying<meta name="robots" content="noindex">,301/302redirect paths,404pages, utility login/cart endpoints, or paths matched byDisallow:in your Robots.txt Generator configuration. - Skip thin parameter and pagination noise: Internal site search queries (
/search?q=tax), sort orders (?sort=price_asc), session tokens, and empty tag archives dilute crawl efficiency. Include only substantive, unique landing pages and indexable editorial content.
Specialized sitemaps: Image, Video, Google News, and Hreflang Extensions
While a standard sitemap.xml handles HTML pages cleanly for most small and mid-sized sites, search engines also support XML namespace extensions inside <urlset> when rich media or multilingual localization plays a central role in organic traffic:
- Multilingual
xhtml:link(hreflang) sitemaps: Global sites publishing equivalent English, French, Swahili, or Arabic versions can declare language-region pairs cleanly in XML using thexmlns:xhtml="http://www.w3.org/1999/xhtml"namespace on<urlset>—keeping HTML page templates lighter while ensuring every language variant cross-references itself and all alternates bi-directionally. - Image & Video extensions: Sites serving high-value visual catalogs, infographics loaded asynchronously via JavaScript, or embedded tutorials can append
<image:image>or<video:video>metadata tags to help search crawlers discover media assets that might otherwise sit behind lazy-loaders. - Google News sitemaps: Time-sensitive newsrooms publishing breaking coverage can maintain a separate rolling News sitemap covering only articles published within the past 48 hours using the
xmlns:newsschema, keeping breaking URLs clearly separated from the main evergreen archive sitemap.
Scaling past 50,000 URLs with sitemap index files and gzip
If your publishing archive, job board, or storefront expands past 50,000 URLs or 50 MB uncompressed (often reached earlier on sites with verbose multi-line formatting), split URLs cleanly across logically grouped child sitemaps and unite them beneath a root <sitemapindex> document.
A valid sitemap index uses the <sitemapindex> root tag (with the exact same http://www.sitemaps.org/schemas/sitemap/0.9 namespace) and lists each child sitemap inside a <sitemap> element:
Note two strict protocol limits: sitemap index files cannot nest inside other sitemap index files, and each child sitemap can optionally be compressed with gzip (for example sitemap-articles.xml.gz) to save bandwidth while remaining under the 50 MB uncompressed ceiling.
Three worked implementations: static site, 200-post blog, and docs host
These three workflows demonstrate how to tune defaults and post-process the XML produced by this tool for real hosting environments.
Launching a 6-page business site with clean canonical HTTPS URLs
A consulting firm launches https://acmeconsult.example with a homepage, services page, pricing page, case studies, about page, and contact page:
Before deploying, the developer edits the homepage <priority> from 0.8 to 1.0, deploys the static bundle, confirms https://acmeconsult.example/sitemap.xml returns HTTP 200 in an incognito browser tab, and adds Sitemap: https://acmeconsult.example/sitemap.xml to robots.txt.
Separating timeless hub pages from monthly editorial articles
An editorial publisher maintains 10 pillar category hubs updated weekly alongside 200 evergreen articles updated only once or twice a year:
Because unchanged articles do not carry fake daily timestamps, crawlers concentrate budget on newly added URLs and specific guides whose <lastmod> genuinely advances.
Managing docs.example.com separately from example.com
A SaaS company runs its marketing site on https://example.com and its developer reference on https://docs.example.com. Pasting both hostnames into one file triggers the tool's Mixed hosts benchmark warning because Sitemaps.org restricts a sitemap located at example.com/sitemap.xml strictly to URLs under example.com (unless verified via Search Console cross-submission rules). Generating one sitemap specifically for docs.example.com/sitemap.xml and declaring it in docs.example.com/robots.txt passes host validation cleanly.
Deploying, declaring in robots.txt, and auditing in Search Console
Building a valid XML file is half of discovery hygiene; publishing, routing, and monitoring it closes the loop. Whether you upload static files directly over SFTP or deploy through a modern framework pipeline, verify these platform and diagnostic steps:
- Host at the exact root path: Upload the downloaded file to
https://yourdomain.com/sitemap.xml. Avoid placing sitemaps inside nested directories like/assets/seo/sitemap.xmlunless referencing them explicitly via Search Console, because default protocol scoping only authorizes URLs sharing that same directory prefix or deeper. - Verify HTTP status and MIME type: Confirm the live URL loads directly with HTTP
200 OK(not a redirect towwwor an HTML maintenance wrapper) and servesContent-Type: application/xmlortext/xmlwith UTF-8 encoding. Test the exact URL usingcurl -I https://yourdomain.com/sitemap.xmlor an incognito browser tab. - Know when to graduate to automated sitemaps: Static generators like this tool are ideal for brochure sites, microsites, documentation portals, and audits up to a few hundred URLs. Once a blog or e-commerce store passes 500+ dynamic URLs with weekly launches, automate XML output at build time—such as Next.js
app/sitemap.ts, WordPress corewp-sitemap.xml, or a lightweight Node script reading only pages returning HTTP 200 withoutnoindex. - Add the
Sitemap:directive torobots.txt: Append a single lineSitemap: https://yourdomain.com/sitemap.xmlat the bottom of your root robots file using our Robots.txt Generator. You may list multipleSitemap:lines—even pointing to a sitemap index—inside onerobots.txt. - Cross-host CDN hosting (optional advanced setup): When hosting large generated sitemaps on an external object storage bucket or CDN host (for instance
cdn.example.com/sitemap.xml), Google only accepts cross-host sitemaps if the URL is explicitly listed inexample.com/robots.txtor both domains are verified properties inside the same Search Console account. - Submit inside Search Console and Bing Webmaster Tools: Open Google Search Console → Indexing → Sitemaps, submit
sitemap.xml, and verify status turns green (Success) alongside matching discovered URL counts. Pair clean sitemaps with crisp page titles and descriptions using the Meta Pixel Checker and SEO Meta Generator.
After initial processing completes, inspect the Page Indexing → All submitted pages filter inside Search Console once a month. That single filtered view tells you whether Google is indexing pages cleanly or flagging submitted URLs with warnings such as "Duplicate without user-selected canonical", "Crawled - currently not indexed", or "Excluded by 'noindex' tag"—allowing you to prune weak or misconfigured URLs before they accumulate.
Eight common XML sitemap mistakes and exact fixes
| Mistake or Search Console error | Why it harms discovery | Exact fix |
|---|---|---|
Unescaped & in URL query strings | XML parser throws fatal syntax error and drops entire sitemap. | Generate URLs through this tool so & becomes & automatically. |
Setting every page to priority 1.0 | Destroys relative importance cues; all pages signal equal priority. | Reserve 1.0 for homepage and differentiate hubs (0.8) vs standard pages (0.5). |
| Auto-stamping today's date via build script | Trains crawlers that <lastmod> is noisy noise, causing it to be ignored. | Emit <lastmod> only from real content revision dates (git/CMS edit timestamp). |
Listing http:// URLs on an https:// site | Creates immediate redirect bloat and non-canonical coverage warnings. | Verify all entries pass the tool's All https benchmark before uploading. |
Mixing www and apex hosts in one file | Triggers cross-host rejection outside verified Search Console setups. | Standardize one canonical hostname; fix 301 redirect consistency server-side. |
Including noindex or robots.txt-blocked paths | Triggers Search Console "Submitted URL marked 'noindex'" errors. | Audit URLs against page meta tags and robots.txt before generating XML. |
Using relative paths like /pricing.html | Violates Sitemaps.org URI syntax and fails validation immediately. | Always enter complete URLs starting with https://your-domain.com/. |
| Deploying gzipped XML without binary MIME headers | Parsers fail if compressed bytes are served as corrupted UTF-8 text. | Serve plain uncompressed .xml (up to ~10 MB) or verify gzip Content-Encoding headers. |
How to interpret Google Search Console sitemap statuses
After uploading and submitting sitemap.xml, Search Console reports both an upload status and a discovered URL count. Knowing what each message means saves wasted troubleshooting:
- "Success" with 0 discovered URLs: Search Console parsed valid XML, but none of the listed URLs have been crawled or associated with the sitemap yet, or the submitted file is a newly added index whose child sitemaps are still queued. Check back in 48 to 72 hours and test one URL directly with URL Inspection.
- "Indexed, not submitted in sitemap": Google found and indexed valid pages via internal or external links that were omitted from your
sitemap.xml. Either add those missing canonical pages to your sitemap list or inspect whether duplicate parameterized variants need canonical consolidation. - "Couldn't fetch": Either the server returned HTTP 404/5xx, a firewall blocked Googlebot's fetch of
/sitemap.xml, or Search Console has not completed its initial background pull yet (very common for the first few hours after submitting a brand-new URL). Verify HTTP 200 and plain XML headers withcurlfirst.
Where this tool stops and technical scope disclaimer
This client-side generator formats, escapes, and deduplicates the list of URLs you enter according to the Sitemaps.org 0.9 specification. Because it runs strictly inside your browser without making server-side HTTP requests, it does not crawl your live website, check whether your pasted URLs return 200 OK instead of 301 or 404, inspect HTML <link rel="canonical"> tags, read X-Robots-Tag headers, or verify your live server's robots.txt exclusions. Always inspect Search Console's Sitemaps report and Page Indexing dashboard after uploading to verify live server behavior.
Similarly, this tool builds a single <urlset> sitemap per run rather than generating a multi-file <sitemapindex> wrapper or automatic CMS build webhook. Sites exceeding 50,000 indexable URLs should generate separate section files and combine their public URLs using the <sitemapindex> structure documented in Section 6.
Sources and technical specifications
- sitemaps.org. XML Sitemap Protocol 0.9 — Tag Definitions, Escaping, and Index Format. sitemaps.org/protocol.html
- Google Search Central. Build and Submit a Sitemap (Priority, Changefreq, and Lastmod Guidance). developers.google.com
- Microsoft Bing Webmaster Guidelines. Sitemaps Best Practices and Submission. bing.com/webmasters
- World Wide Web Consortium (W3C). Extensible Markup Language (XML) 1.0 & W3C Date and Time Formats. w3.org/TR/xml
- IETF RFC 9309. Robots Exclusion Protocol (Including Sitemap Discovery Directives). rfc-editor.org/rfc/rfc9309
- Yandex Webmaster Help. Sitemap Files and Index Processing Guidelines. yandex.com/support/webmaster