XML Sitemap Generator
Turn a verified URL list into a downloadable XML sitemap.
What Is an XML Sitemap Generator?
An XML sitemap generator creates a structured list of website URLs that search engines can use to discover important pages. Depending on the generator, it may work from URLs you supply, a website crawl, or data from a content management system. The resulting XML file identifies page locations and may include accurate modification dates. A sitemap makes URL discovery easier, especially on larger websites, but it does not guarantee crawling, indexing, or rankings.
XML Sitemap Generator
Turn a verified URL list into a downloadable XML sitemap.
Build an XML sitemap from real URLs
Imports up to 3000 unique URLs on one site. Valid lastmod dates are copied only when supplied; dates are never invented. Excludes off-domain, duplicate, invalid and fragment-only entries. Does not crawl a website, publish files, or include priority/changefreq guesses. Upload the downloaded file to your hosting root or use your SEO plugin’s existing sitemap.
Build an XML Sitemap That Reflects Your Real Website
A sitemap is more useful when it represents the pages you actually want search engines to find. A file filled with redirects, duplicate addresses, deleted posts, and low-value filtered URLs may be syntactically valid, yet send confusing signals about your preferred website structure. Good sitemap preparation starts with choosing the right URLs, not simply listing everything a crawler can reach.
Use the XML Sitemap Generator above to prepare a sitemap according to the inputs and output options shown in its interface. Some generators crawl a public site, while others convert an existing list of URLs into XML; those approaches have different coverage limitations. After generating a file, inspect the content, confirm the URLs, and validate it before putting it online. The sections below explain the format, the technical limits, the WordPress workflow, and what to check after submission.
Read Full GuideShow Less
Start With the Pages You Want Search Engines to Discover
A sitemap is not a list of every URL that has ever appeared on your domain. Prefer live, useful, canonical pages that you intend to make eligible for search results: published articles, important category pages, product pages, or other public resources. Keep the website’s canonical host and protocol consistent, such as https://example.com/ rather than mixing HTTP, HTTPS, and an alternate www hostname without a reason.
Use the following decisions as an editorial filter. They are recommendations for ordinary website sitemaps, not claims that this specific generator automatically detects all these conditions.
| URL situation | Typical sitemap decision | Reason |
|---|---|---|
| Published, canonical, indexable page | Include | It represents content you want discovered. |
| URL redirects to a new page | Use the final canonical URL | The redirecting address is not the preferred destination. |
| Deleted page returning 404 or 410 | Exclude | It is no longer an available resource. |
Page marked noindex |
Usually exclude | It conflicts with a goal of search indexing. |
| Tracking or duplicate URL variant | Prefer the canonical version | It avoids unnecessary duplicate addresses. |
| Private, login-only, or staging URL | Exclude | It is not intended for public search discovery. |
Understand Where Your URL List Comes From
A generator may accept a starting website address and follow links, or it may format a list exported from your CMS, database, or spreadsheet. A crawl-based sitemap only includes pages the crawler actually discovers and can access. Pages without internal links, pages loaded only through JavaScript, and pages behind logins may be missed. A list-based sitemap instead covers the URLs supplied by its operator, whether or not a crawler could find them.
Neither method automatically proves that every included URL is indexable or canonical. Check the options visible in the tool before assuming it supports crawling, duplicate removal, bulk imports, file downloads, or ongoing automatic updates. If you already have a sitemap, the Sitemap URL Extractor can help examine the URLs it contains, subject to that tool’s supported inputs.
Recognize the Required XML Sitemap Structure
A conventional XML sitemap uses a urlset root, one url element for each page, and a required loc element containing an absolute URL. The following illustrative example shows the essential structure and an optional modification date:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
</url>
<url>
<loc>https://example.com/guides/site-audit/</loc>
<lastmod>2026-10-20</lastmod>
</url>
</urlset>
Here, 2026-10-20 is a hypothetical genuine update date, not a date that should be copied into a real sitemap. XML syntax matters: tags must be correctly nested, the document must be valid UTF-8, and special characters in values must be escaped.
Which XML Tags Actually Matter for Google?
| Tag | Purpose | Practical guidance |
|---|---|---|
<urlset> |
Contains the URL entries and sitemap namespace. | Required for a standard XML URL sitemap. |
<url> |
Groups the details for one URL. | One entry for each included page. |
<loc> |
Identifies the full URL. | Required; use an absolute, preferred URL. |
<lastmod> |
States when the page was meaningfully modified. | Optional; only supply an accurate date. |
<changefreq> |
Suggests an estimated change frequency. | Optional in the protocol; Google ignores it. |
<priority> |
Expresses relative priority within the site. | Optional in the protocol; Google ignores it. |
Adding a priority of 1.0 to every page will not push those pages higher in Google. Likewise, choosing daily for every URL does not make Google crawl the site daily. Focus on correct page locations and trustworthy freshness information instead.
Use Last-Modified Dates Only When You Can Defend Them
The lastmod value should reflect a significant change to that page, such as a revised article, updated structured data, or a meaningful change to its links. It is not simply the day you generated the sitemap, nor should it change every night because your server rebuilt an unchanged file.
For a manually maintained sitemap, omit lastmod if you cannot establish accurate dates. A CMS that tracks genuine content updates can often provide them more reliably. Search engines can compare the claim with what they observe, so fabricated freshness signals make this field less trustworthy.
Keep Canonicals, Protocols, and Query Strings Consistent
Before publishing, check that each loc uses the URL you actually prefer in search results. Watch for outdated HTTP URLs, redirected www variants, duplicate trailing-slash forms, and tracking parameters. A Canonical Tag Checker can help investigate whether a page signals a different preferred address.
Query strings are not automatically invalid. A parameter may represent a genuinely distinct page, while a campaign parameter may simply duplicate a canonical destination. Decide based on the content and canonical signals. If an included URL has an ampersand, XML source must escape it as &; otherwise, a parser may reject an otherwise useful sitemap.
Split Large Sitemaps Before Reaching Protocol Limits
A single sitemap is limited to 50,000 URLs or 50 MB uncompressed, whichever limit comes first. Larger websites should divide URLs into separate files and use a sitemap index to point crawlers to those files. Sitemap indexes have their own limits, and cross-site sitemap hosting requires additional rules or verified ownership.
Grouping large sites by posts, products, categories, or languages can make problems easier to isolate. A sitemap index is different from a normal sitemap: its entries point to sitemap files rather than individual website pages. Do not assume the generator automatically splits outputs or builds indexes unless you see those options in its interface.
Check WordPress and Rank Math Before Uploading Another File
Modern WordPress installations commonly provide a built-in sitemap at /wp-sitemap.xml. Sites using Rank Math often use an index at /sitemap_index.xml, depending on their settings. Start by checking which sitemap your website currently exposes. If an SEO plugin already maintains it dynamically, a second static file can become outdated or conflict with existing routing.
A one-off XML file is especially useful for testing an exported URL set or comparing a proposed migration against an existing sitemap. For a frequently updated WordPress blog or ecommerce store, maintaining one reliable automatic sitemap is usually more practical than repeatedly uploading a manual file. The Sitemap Comparison Tool can support review of changes between inventories.
Publish the File and Tell Search Engines Where It Is
- Check that the XML is well formed and that its URLs are the preferred public pages.
- Make the file accessible through a stable HTTPS address on your website, such as
https://example.com/sitemap.xml, or use the existing sitemap index. - Open the sitemap URL in a browser and confirm the server returns the intended XML, not an error or a login page.
- Submit the sitemap address through the Google Search Console Sitemaps report, or advertise it in
robots.txtusing aSitemap:directive. - Review processing errors and inspect affected page URLs separately when needed.
For example, a robots file can contain Sitemap: https://example.com/sitemap.xml. Use the Robots.txt Generator and Tester to examine a robots configuration. Creating XML in a browser does not, by itself, upload it to your server or submit it to a search engine.
Validate Both the XML Document and Its Destination Pages
Two checks are necessary. XML validation tests the document structure, encoding, namespace, required tags, and URL formatting. The XML Sitemap Validator is the related tool for this stage. URL validation asks whether listed pages return suitable responses and whether they are consistent with canonical and indexing preferences.
A sitemap can parse perfectly and still list missing pages, redirect chains, or URLs restricted by a noindex directive. Review questionable destinations individually or in batches with the Bulk HTTP Status and Redirect Checker. Robots rules, server outages, authentication, and caching can also explain why a sitemap or its pages cannot be fetched.
Recognize What a Standard Sitemap Does Not Include
A conventional URL sitemap identifies web pages. Images, videos, localized alternates, and news content may need supported sitemap extensions or additional metadata. Do not assume a normal URL generator automatically creates those specialized structures. If media discovery is the goal, compare the requirements with the Image and Video Sitemap Generator.
An HTML Sitemap Generator serves a different audience: it creates a navigable list for website visitors. XML sitemaps support machine-readable discovery; HTML navigation and contextual internal links help people and crawlers actually move between pages.
Will Generating a Sitemap Make Google Index Every Page?
No. A sitemap is a discovery signal, not an indexing order. Google may decide not to crawl or index a URL because it is duplicate, low value, unavailable, restricted, or not selected as canonical. A page can also be discovered without being indexed. Improve the page itself, keep navigation accessible, and use Search Console to investigate specific indexing outcomes.
The practical rule: maintain a clean inventory of important canonical URLs, generate standards-compliant XML, validate both the file and its destinations, and keep the published sitemap updated as the site changes.