Website Management Tools

XML Sitemap Generator

Build a standards-compliant XML sitemap from a list of URLs, with optional last-modified dates, change frequencies, and priorities. Download a file search engines can parse.

Bounded server requestOnly the required request data is sent.
Preparing tool…

The focused browser interface is loading.

PrivateOnly the required input is sentLightning fastResults in secondsWorks everywhereAny device, any browserFree to useNo account required

What an XML sitemap tells search engines

An XML sitemap is a machine-readable list of URLs that you want crawlers to discover. It is especially helpful for a new site, a large archive, pages with few internal links, or content that changes on an irregular schedule. A sitemap supports discovery, but it does not force indexing and does not replace links that users and crawlers can follow through the site.

Each entry contains an absolute URL inside a loc element. Optional fields can describe when the page was last substantially modified, an expected change frequency, and its priority relative to other URLs on the same site. Search engines may treat these optional values as hints or ignore them when observed behavior differs.

How to create your sitemap

  1. Collect the preferred canonical URL for each indexable page on one verified site.
  2. Paste one absolute HTTP or HTTPS URL per line.
  3. Add accurate last-modified dates and other optional hints only when you have reliable values.
  4. Generate the XML, review the entries, and download sitemap.xml.
  5. Publish it on your site and submit its public URL to the relevant search-engine consoles.

Use the final public form of every URL. Keep protocol and hostname consistent, respect letter case in paths, and avoid URLs that merely redirect elsewhere. Remove fragments because servers do not receive them, and omit tracking parameters, internal search pages, duplicate filters, login screens, and any page deliberately marked noindex.

Choose useful metadata

Last modified

The lastmod value should reflect a meaningful content change, not the time the sitemap was generated or a template footer changed. Accurate dates help crawlers schedule revisits efficiently. Automatically setting every URL to today on every build weakens the signal and wastes crawl attention.

Change frequency and priority

Change frequency is an estimate, not a crawl command. Priority is a value from 0.0 to 1.0 that compares URLs within your own site; it does not raise rankings against another domain. Defaults are usually better than labeling every page daily and 1.0. Apply different values only when the site structure gives you a defensible reason.

Publishing and discovery

A common location is https://example.com/sitemap.xml. Add an absolute Sitemap line to robots.txt so compliant crawlers can find it, and submit the same address in Google Search Console or Bing Webmaster Tools. The sitemap must return a successful response without requiring authentication, and its URLs must be accessible to the crawlers you want to reach.

One sitemap file can contain at most 50,000 URLs and be no larger than 50 MB uncompressed under the standard protocol. Split a bigger collection into multiple sitemap files and list them in a sitemap index. Compression with gzip is supported by major search engines and can reduce transfer size substantially.

Use cases that benefit most

A portfolio launching with no external links can expose all project pages immediately. An online store can list canonical product and category URLs while excluding cart and faceted duplicates. A publication can maintain dependable modification dates for evergreen articles. In each case, the sitemap should mirror the indexable content strategy instead of becoming a dump of every URL the application can produce.

After publishing, monitor submitted-versus-indexed reports rather than assuming the file solved every visibility problem. Excluded URLs often point to duplicate canonicals, blocked crawling, thin content, server errors, or weak internal linking. Fix the underlying issue and keep the sitemap consistent with the corrected site.

Privacy

XML generation runs in your browser from the URLs and options you provide; the list does not need to be sent to PagesTools. Once you publish the file, every listed URL is intentionally public to anyone who can fetch it. Do not include private staging hosts, unannounced pages, access tokens, customer identifiers, or secret query parameters. A sitemap is a discovery document, not an access-control system.

Common questions

Frequently asked questions

Does an XML sitemap guarantee that pages will be indexed?

No. A sitemap helps a crawler discover preferred URLs but does not override quality, canonicalization, robots rules, noindex directives, or server availability. Search engines decide what to index. Use console reports to investigate exclusions, and make sure important pages also have useful internal links from crawlable pages.

Should every page have priority 1.0?

No. Priority compares URLs only within the same site, and search engines may ignore it. Giving every entry the maximum value removes any distinction and does not improve rankings. Leave the default or reserve higher relative values for a small set of genuinely central pages.

Can a sitemap contain URLs from different domains?

A regular sitemap should contain URLs from the site where it is hosted, subject to the protocol's host rules. Keep one host per sitemap unless you have verified cross-site submission through supported search-console ownership. Generating separate files for separate sites is simpler and reduces ownership and debugging mistakes.

How often should I regenerate the sitemap?

Regenerate it when indexable URLs are added, removed, moved, or substantially updated. A dynamic site can automate this on deployment or from its database. There is little value in changing the file every day when the underlying URL set and meaningful modification dates have not changed.

Should redirected or noindex URLs be included?

Generally, no. List the canonical, indexable destination that returns a successful response. Redirects consume an extra crawl step, while noindex URLs explicitly ask not to appear in results. Keeping them out makes the sitemap a clearer statement of the pages you actually want indexed.