Sitemap.xml Generator
Developer ToolsGenerate a valid sitemap.xml for any website. Paste your URLs, set change frequency and priority per page — ready for Google Search Console in seconds.
Reviewed by the thecalcu.com team · Last updated July 9, 2026
What is a Sitemap?
A sitemap.xml is a machine-readable file that tells search engines about every publicly accessible, indexable page on your website. Without one, search engine crawlers discover your pages entirely through link-following, starting from your homepage and moving through internal links. Pages that are buried deep in your site, orphaned (with no inbound links), or newly added may never be discovered through crawling alone.
The Sitemap.xml Generator converts a list of URLs into a correctly formatted XML sitemap, ready to submit to Google Search Console, Bing Webmaster Tools, or any other search engine platform. The XML format follows the Sitemaps protocol standard, which defines the structure of <urlset>, <url>, <loc>, <lastmod>, <changefreq>, and <priority> elements.
Each URL entry in the generated sitemap includes:
<loc>, the full absolute URL of the page<lastmod>, today's date in ISO 8601 format (YYYY-MM-DD), indicating when the page was last modified<changefreq>, how often the page is expected to change (daily, weekly, monthly, etc.)<priority>, a relative importance score from 0.1 to 1.0
The generator also counts the total URLs in your list and displays it alongside the XML output, useful for verifying you have not accidentally omitted pages during a copy-paste.
Use this alongside robots.txt Generator to give search engines the complete picture: robots.txt tells them what not to crawl, while the sitemap tells them what to prioritise. Once your sitemap is live, use UTM Link Generator to tag campaign links pointing to those pages so traffic is accurately attributed in your analytics platform.
Why Use a Sitemap.xml Generator?
Writing sitemap.xml by hand for more than a handful of pages is impractical, the format requires wrapping every URL in three nested XML tags, and a single unclosed tag invalidates the entire file, causing submission errors in Search Console.
A common scenario: a small business launches a website with 40 pages and wants Google to index the new service pages that have no inbound links yet. Without a sitemap, Googlebot might discover the homepage and major category pages but miss the individual service and location pages entirely. Submitting a sitemap gets all 40 URLs into Google's queue within days rather than waiting for organic link discovery that may take months.
For agencies and freelancers managing client site launches, the generator is a repeatable tool: collect all live URLs from the CMS, paste them in, set the appropriate frequency and priority, and export a ready-to-submit sitemap, without pulling up the Sitemaps protocol documentation each time.
Who Should Use This Generator?
Web developers during site launches, sitemap.xml is a checklist item for every new site deployment. Generate and upload it alongside robots.txt before requesting Google indexing.
SEO professionals and consultants, for audits or migrations, generating a clean sitemap from a verified URL list confirms which pages are intended to be indexed, and the URL count provides a quick sanity check against what Search Console reports as discovered.
Small business owners without a developer, many website builders (Wix, Squarespace, Webflow) generate automatic sitemaps, but custom or static sites require a manually created file. This generator handles the XML formatting so no technical knowledge is needed.
Bloggers and content sites, when publishing a batch of new articles, a fresh sitemap ensures search engines are aware of all new URLs. Submit it to Search Console after each significant content push.
E-commerce teams, during product launches or catalogue expansions, generating a sitemap from the list of new product page URLs and submitting it immediately speeds up indexing compared to waiting for crawl discovery.
The Privacy Policy Generator is a companion tool for site launches, alongside robots.txt and sitemap.xml, a privacy policy is among the foundational pages that should themselves appear in your sitemap.
What Insights Does the Sitemap.xml Generator Give You?
The generator produces two outputs.
sitemap.xml Content is the primary output, a complete, valid XML file ready to copy, save as sitemap.xml, and upload to your web server's root directory. The XML is human-readable so you can verify the structure and confirm every URL is present before submission. Invalid or missing URLs are visible as blank <loc> entries.
Total URLs is a count of the valid, non-empty URLs parsed from your input. This lets you quickly confirm the sitemap covers the expected number of pages, if you pasted 45 URLs but the count shows 43, there are two blank or malformed lines in your input that were skipped.
How to use this Sitemap calculator
- Collect all the indexable page URLs for your website, use your CMS's page list, a URL export from your analytics tool, or a crawl export from a tool like Screaming Frog.
- Paste the URLs into the URLs (one per line) text area, one complete URL per line, including the protocol (
https://). Remove any duplicate or redirect URLs before pasting. - Select the Change Frequency that best describes how often most of your pages are updated, choose
weeklyfor an active blog,monthlyfor a mostly-static business site,yearlyfor archived content. - Set the Default Priority, use
1.0for your homepage,0.8–0.9for primary category or service pages,0.5–0.7for standard content pages, and0.3or lower for low-importance archived pages. - Review the Total URLs counter to confirm the count matches your expectations.
- Copy the sitemap.xml Content from the output box and save it as a file named
sitemap.xml. - Upload
sitemap.xmlto your website's root directory (alongsiderobots.txtandindex.html), then submit the URL to Google Search Console via the Sitemaps section.
Show formula & methodology ↓Show less ↑
Formula & Methodology
The generator produces standard sitemap XML conforming to the Sitemaps.org protocol (xmlns:http://www.sitemaps.org/schemas/sitemap/0.9). Each URL in your input produces one<url>block:xml <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/about/</loc> <lastmod>2026-06-24</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> </urlset>Thelastmodvalue is set to today's date in ISO 8601 format (YYYY-MM-DD) for all entries. Blank lines in the input are filtered out. The URL count is the number of non-empty lines after filtering. File size limit: A single sitemap.xml must not exceed 50,000 URLs or 50 MB uncompressed. For sites exceeding this limit, split into multiple sitemaps and create a sitemap index file that references each one, the sitemapindex format uses<sitemapindex>and<sitemap><loc>tags following the same protocol.
Frequently Asked Questions