SEO tool
XML Sitemap Generator
Build a valid sitemap.xml from page paths or full URLs. Add metadata once, then copy or download the generated XML.
Output
Generated XML
{urls.length} URLs
Overview
What Is an XML Sitemap and Why Is It Vital for SEO?
An XML Sitemap is an essential technical SEO file that acts as a comprehensive roadmap of your website for search engines. Jointly supported by Google, Microsoft Bing, Yahoo, and Ask under the Sitemaps.org protocol, an XML sitemap explicitly informs web crawlers which pages exist on your site, when they were last modified, and their relative importance.
Without an XML sitemap, search crawlers must rely exclusively on internal links to discover your content, which can leave deep pages, new articles, or unlinked marketing resources unindexed for months. This browser-based generator enables you to construct valid, perfectly formattedsitemap.xml files in seconds with zero cloud uploads or data tracking.
Specification
Sitemaps.org XML Schema Tags Explained
| XML Tag | Requirement | Purpose & Formatting Rules |
|---|---|---|
| <urlset> | Mandatory | Enclosing root element containing namespace declaration xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'. |
| <url> | Mandatory | Parent container tag for each individual URL entry. |
| <loc> | Mandatory | Absolute canonical URL of the page (e.g. https://example.com/page). Must be escaped. |
| <lastmod> | Optional (Recommended) | Date of last modification in W3C Datetime format (YYYY-MM-DD). |
| <changefreq> | Optional | Hints how frequently content changes (always, hourly, daily, weekly, monthly, yearly, never). |
| <priority> | Optional | Priority relative to other URLs on your site (0.0 to 1.0, default 0.5). Does not affect external rankings. |
Capabilities
Key Features & Generator Controls
Sitemaps.org Standard Compliance
Outputs strictly valid XML adhering to the official 0.9 schema recognized by all major search engines.
Intelligent URL Normalization
Input relative paths (e.g. /about) and combine them with your base domain into fully qualified canonical links.
Configurable Crawl Frequencies
Select from standard changefreq values (daily, weekly, monthly) to suit your publishing schedule.
Relative Priority Weighting
Assign numeric priority values between 0.0 and 1.0 to distinguish core landing pages from archive posts.
Automatic Entity Escaping
Safely escapes ampersands, angle brackets, and quotes into &, <, >, and " automatically.
Direct File Download
Export clean sitemap.xml files directly to your storage with a single click, ready for deployment.
Real-Time Statistics
Instant count of total included URLs, generated lines, and output payload byte size.
100% Client-Side Privacy
Your private staging links, new product URLs, and domain architectures never leave your browser.
Method
How the XML Sitemap Generator Operates
The generator parses the input URL lines, cleans trailing whitespace, and filters empty rows. For each entry, it checks whether the URL is already absolute (starts with http:// orhttps://). If a relative path is provided, it combines it with the sanitized base domain.
Next, all special XML characters are escaped to ensure the document conforms to W3C XML 1.0 standards. Each entry is wrapped in an individual <url> block containing <loc>,<lastmod>, <changefreq>, and <priority> tags, enclosed in the root <urlset> envelope.
Workflow
Step-by-Step Deployment Guide
- Define your base URL: Enter your full canonical website domain (e.g.
https://example.com). - List your URLs: Paste your website paths, one URL per line, into the input workspace.
- Configure defaults: Set your preferred change frequency, priority, and check the current date.
- Download file: Click Download sitemap.xml to save the generated file to your local computer.
- Upload to server: Place the file in your website's public root directory so it resolves at
https://example.com/sitemap.xml. - Submit to search engines: Open Google Search Console, navigate to Sitemaps, enter
sitemap.xml, and click Submit. Repeat in Bing Webmaster Tools.
Applications
Common SEO & Development Scenarios
Launching a New Website
Ensure search bots discover all site pages immediately upon public launch, bypassing internal link crawl delays.
Static Site Generators & JAMstack
Create quick sitemaps for Astro, Vite, Eleventy, or static HTML projects that lack automated sitemap plugins.
E-Commerce Product Catalogs
Ensure newly published product listings, category pages, and promotional sales are indexed rapidly by search engines.
Website Redesigns & Migrations
Provide search engines with an authoritative checklist of updated URL structures following domain or platform migrations.
Advantages
Benefits of XML Sitemaps
- Directly communicates canonical page inventory to Google and Bing.
- Speeds up discovery of deep content that has few internal inbound links.
- Helps crawlers prioritize newly updated pages using the lastmod date.
- Reduces wasted search engine crawl budget on unimportant paths.
- Enables detailed index coverage diagnostics in Google Search Console.
Boundaries
Limitations & Considerations
- Does not guarantee page indexation or high search engine rankings.
- Limited to 50,000 URLs and 50 MB per single sitemap file.
- Must only contain 200 OK indexable canonical URLs (no redirects or 404s).
- Search engines may ignore changefreq and priority hints.
Guidance
Pro Tips for Optimal Sitemap SEO
- Add a reference link at the bottom of your robots.txt:
Sitemap: https://yourdomain.com/sitemap.xml. - Keep the
<lastmod>date accurate—do not falsely update it without changing content. - Ensure all URLs end consistently with or without trailing slashes according to your canonical rule.
- Verify that all submitted URLs return HTTP 200 OK status codes.
Avoid
Common Pitfalls to Avoid
- Including pages with
noindexrobots tags, which causes Search Console errors. - Including redirecting URLs (301/302) or broken links (404) in the sitemap.
- Using non-canonical URLs (e.g. mixing http:// and https:// or www and non-www).
- Submitting non-escaped URLs containing raw ampersands (
&).
Questions
Frequently Asked Questions
What is an XML sitemap?
An XML sitemap is a structured XML document conforming to the Sitemaps.org protocol that lists the canonical URLs of a website. Search engine crawlers (like Googlebot and Bingbot) use it to discover, index, and re-crawl pages efficiently.
Where should the sitemap.xml file be placed?
The standard location is the root directory of your website domain (e.g. https://example.com/sitemap.xml). You should also reference its exact URL at the bottom of your robots.txt file.
What is the role of the <lastmod> tag?
The <lastmod> tag tells search engines when the content at a URL was last updated, formatted in W3C/ISO 8601 date notation (YYYY-MM-DD). Google and Bing use this to prioritize crawling pages with fresh updates over static ones.
Do search engines strictly follow <changefreq> and <priority>?
No. Search engines treat changefreq and priority as advisory hints rather than authoritative commands. Googlebot primarily relies on observed content update patterns, server response times, and the lastmod date.
What are the size and URL limits for an XML sitemap?
The official Sitemaps.org standard restricts a single sitemap file to a maximum of 50,000 URLs and an uncompressed file size of 50 MB. Sites exceeding these limits must split URLs across multiple sitemaps and bundle them in a Sitemap Index file.
Can I use relative URLs in a sitemap?
No. The Sitemaps.org protocol strictly requires fully qualified, absolute canonical URLs including the protocol (https://) and domain name (e.g. https://example.com/about, never /about).
Should noindex or redirecting URLs be included in a sitemap?
No. A sitemap should only include canonical, 200 OK indexable pages. Including URLs that return 301 redirects, 404 errors, or have <meta name='robots' content='noindex'> wastes crawler budget and triggers Google Search Console warnings.
How do I submit my sitemap to search engines?
Once uploaded to your domain root, submit the sitemap URL directly in Google Search Console (under the 'Sitemaps' menu) and Bing Webmaster Tools, and declare it in your robots.txt with 'Sitemap: https://yourdomain.com/sitemap.xml'.
Does having an XML sitemap guarantee higher search rankings?
No. A sitemap guarantees efficient discovery and indexation by search bots, but content quality, backlinks, technical performance, and user engagement determine actual search ranking position.
Are XML reserved characters automatically escaped?
Yes. Characters that have special meaning in XML (such as & becoming &, < becoming <, and > becoming >) are automatically escaped by this tool to ensure strict XML validation.
Can I download the generated file as sitemap.xml?
Yes. Click the 'Download sitemap.xml' button to save the valid XML file directly to your computer, ready for deployment to your web server.
Are my site URLs uploaded to an external server?
No. All URL parsing, XML formatting, and file generation execute 100% locally in your web browser. No URLs or domain structures are ever sent across the network.
Does this tool work completely offline?
Yes. As an installable Progressive Web App utility, the XML Sitemap Generator functions entirely offline once loaded in your browser.
Is the XML Sitemap Generator free to use?
Yes. The tool is 100% free with no limits on URL counts, no subscription requirements, and no advertisements.
More Tools
Related SEO & Webmaster Tools
Terms
XML Sitemap Terminology Glossary
XML Sitemap
A machine-readable list of web page URLs formatted per Sitemaps.org rules.
Sitemaps.org
The collaborative initiative defining standard sitemap protocols for Google, Bing, and Yahoo.
Sitemap Index
An XML document listing multiple individual sitemaps when exceeding 50,000 URLs.
Canonical URL
The preferred version of a page chosen by site owners to avoid duplicate content.
Crawl Budget
The number of URLs a search crawler is willing and able to crawl on a website.
Google Search Console
Google's official webmaster dashboard for monitoring search indexation and performance.
Bing Webmaster Tools
Microsoft Bing's search indexing and diagnostic service.
lastmod
W3C date stamp indicating when a page was last substantially revised.
changefreq
Advisory hint indicating expected content revision cadence (daily, weekly, monthly).
priority
Relative importance ranking (0.0 to 1.0) compared to other pages on the same domain.
noindex
A robots meta directive instructing search engines not to display a page in search results.
Robots.txt
A text file in the site root instructing crawlers which paths they may access.
Sources
Official Standards & Documentation
Technical Verification Notice
Technical & Educational Disclaimer
This XML Sitemap Generator formats URLs according to the Sitemaps.org XML schema. Submitting a sitemap provides search engines with discovery hints, but does not guarantee indexation, ranking, or traffic. Ensure all included URLs are active, canonical 200 OK responses before publishing.
Calculations and transformations execute locally on your machine with full offline support. Always verify critical results.
View full legal disclaimer