Skip to main content

sitemap.xml Generator

Paste a list of URLs and get a valid sitemap.xml, with lastmod dates, sitemap index splitting past 50,000 URLs and checks for duplicate or off-domain URLs.

sitemap.xml Generator
URL list
One URL per line. A date after the URL, separated by a space or tab, becomes that URL's lastmod.
Options

A date written on an individual line takes precedence.

Output
Enter URLs and the sitemap.xml appears here...

Paste URLs one per line and get an XML sitemap ready to upload and submit to search engines. A date after a URL becomes its lastmod, and relative paths are resolved against a base URL. Past 50,000 URLs the output is split into several files with a sitemap index that lists them. Duplicates are merged, # fragments removed, non-ASCII paths percent-encoded and ampersands escaped automatically. The checks flag URLs on another domain, mixed http and https, tracking parameters and unreadable dates, so pasting an existing sitemap.xml is also a quick way to audit it.

sitemap.xml Generator: Features

What an XML sitemap does, and who needs one

An XML sitemap is a list of the URLs you want search engines to crawl. Crawlers mostly discover pages by following links, so a sitemap speeds up discovery for pages with few internal links, for newly published pages and for large sites. Google says a small site of roughly 500 pages or fewer, with good internal linking, may not need one at all. Even so it costs little to provide, and submitting it in Search Console gives you a useful report of how many of the submitted URLs were actually indexed.

Format and limits

The file is UTF-8 XML: a urlset element containing one url element per page, each with a loc holding an absolute URL. Ampersands inside URLs must be escaped as &, and non-ASCII characters in paths should be percent-encoded; the generator does both, and the URL Encoder is there if you want to check an encoding by hand. One file may hold at most 50,000 URLs and 50MB uncompressed. Larger sites split the list across several files and publish a sitemap index, a sitemapindex element listing each file. A gzip-compressed sitemap.xml.gz is allowed, but the 50MB limit applies to the uncompressed size.

lastmod, changefreq and priority

Google uses lastmod only when it is consistently and verifiably accurate. A common implementation stamps every URL with the time the sitemap was generated, which teaches Google to ignore the field entirely. Use the date the content genuinely changed, and leave lastmod out when you do not know it. changefreq and priority are simpler: Google and Bing have both said they ignore them. They remain valid in the sitemap format, so the generator can still emit them, but tuning them is rarely worth the time.

URLs that do not belong in a sitemap

A sitemap is meant to be the list of canonical URLs you want indexed, and anything else muddies the signal. Leave out pages marked noindex, URLs that redirect, URLs returning 404 or other errors, URLs with tracking parameters such as utm_source, and pages whose canonical points elsewhere. Pick one form for http versus https, www versus bare domain and trailing slashes, and use it throughout. Enforcing that canonical form at the server is the job of the .htaccess & Nginx Redirect Generator, and the page-level canonical tag comes from the Meta Tag & Open Graph Generator. The generator flags other domains, mixed schemes and parameterised URLs.

Telling search engines where the sitemap is

Put the sitemap at the root of the site, as in https://example.com/sitemap.xml. Where the file lives limits which URLs it may list, and the root covers the whole site. There are two ways to announce it: submit the URL in the Sitemaps report of Google Search Console (and Bing Webmaster Tools), and add a line such as Sitemap: https://example.com/sitemap.xml to robots.txt. Every major engine reads the robots.txt line, so doing both is the safe choice; the robots.txt Generator builds the file. Google's old sitemap ping endpoint, which let you submit by requesting a URL, was retired in 2023.

sitemap.xml Generator: FAQ

Do I need to build a sitemap myself if I use WordPress?

Usually not. WordPress has generated /wp-sitemap.xml automatically since version 5.5, and SEO plugins such as Yoast replace it with their own. The generator is useful for static sites or custom systems that have no sitemap mechanism, for building a separate sitemap of selected pages, and for auditing an existing sitemap.

Will submitting a sitemap get my pages indexed right away?

No. A sitemap tells search engines which URLs exist; it does not guarantee crawling or indexing, which depend on the content and quality of each page. Compare the discovered URL count in the Search Console sitemap report with the page indexing report to see which URLs were left out and why.

Can I use it to check an existing sitemap.xml?

Yes. Paste the XML into the input and the generator reads every loc and lastmod and runs the same checks: duplicates, other domains, tracking parameters, unreadable dates and dates in the future. You can then save the cleaned-up XML. If you paste a sitemap index, the same checks run on its child sitemaps and the output stays a sitemapindex.

What should I set priority to?

Usually nothing, because Google and Bing both ignore it. If you want to emit it for another engine, the automatic option gives the home page 1.0 and lowers the value by 0.2 per level of path depth, down to a floor of 0.1. Avoid setting every page to 1.0, which defeats the point of a relative priority.

What happens above 50,000 URLs?

The list is split into files of 50,000 URLs named sitemap-1.xml, sitemap-2.xml and so on, and a sitemap index listing them is output as sitemap.xml. Switch between the files with the tabs above the output and save each one. The index has to contain absolute URLs for the child files, so set a base URL. Submitting only the index URL to Search Console is enough.

Can URLs contain accented or non-Latin characters?

In the file they must be written percent-encoded, as RFC 3986 requires: https://example.com/café/ becomes https://example.com/caf%C3%A9/. You can paste URLs in readable form and the generator encodes them in the output; URLs that are already encoded are not encoded a second time.

Does it support image sitemaps or hreflang?

No. The generator produces a standard URL sitemap only, without the image, video or news extensions and without xhtml:link alternates for hreflang. When you paste an existing sitemap, tags other than loc and lastmod are not carried into the output, so do not use it to rewrite a sitemap that relies on those extensions.

Is a plain text sitemap acceptable instead of XML?

Google accepts a UTF-8 text file with one URL per line as a sitemap. It cannot carry lastmod or any other information, though, so XML is the better default unless you have a reason to prefer text. The URL list you paste into this tool already works as a text sitemap as it stands.

Can a sitemap list URLs from another domain?

Normally a sitemap lists only URLs on the host where it is placed. To combine several sites in one sitemap you must either verify ownership of all of them in Search Console or reference the sitemap from each site's robots.txt. Subdomains count as separate hosts for this purpose.

Are the URLs I enter sent anywhere?

No. Parsing, checking and generating the XML all happen in your browser, so the URL list or sitemap you paste is never sent to a server. Lists that include unpublished pages are safe to use.

How to Use sitemap.xml Generator

  1. Paste your URLs

    Paste the URLs to include, one per line. A date after a URL, separated by a space, becomes its lastmod. Set a base URL if you use relative paths or want the domain checked. You can also paste an existing sitemap.xml.

  2. Set options and review the checks

    Choose a default lastmod and sorting if needed. If the checks report errors or warnings, remove the off-domain or parameterised URLs they name.

  3. Save and upload

    Save the file and upload it to the root of the site. Add a Sitemap line to robots.txt and submit the URL in the Search Console Sitemaps report.

Category SEO