Skip to content
Free tool

Sitemap Generator: create sitemap.xml

Use the free Sitemap Generator to create your sitemap.xml from a URL list or an existing sitemap: add a domain, remove duplicates and URLs from other domains, then copy or download the file. No sign-up required; everything runs in your browser.

Built by Luca Stanek

Sitemap ready? Put your website online with fast, reliable web hosting.

How it works

How to create your sitemap.xml with the Sitemap Generator

From pasting URLs to submitting the file, with no sign-up or installation.

Step 1

Enter a domain

Enter your domain in the “Your domain” field, for example example.com. The tool uses it to complete URLs without a domain, such as /contact. If you leave the field blank, it uses the domain of the first full URL.

Step 2

Paste URLs

Paste your page URLs, one per line, or the contents of an existing sitemap.xml. After a space or vertical bar, you can specify a date, frequency, and priority. “Insert example” shows you how.

Step 3

Choose options

Choose whether the tool enforces HTTPS, excludes other domains, removes parameters, sorts alphabetically, and standardizes trailing slashes. Setting lastmod, changefreq, and priority for all URLs is optional.

Step 4

Review the warnings

Below the output, the tool reports removed duplicates, URLs from other domains, mixed protocols, invalid dates, and the splitting of large lists. Correct your list if necessary.

Step 5

copy or download sitemap.xml

Copy or download the finished file. If the list was split, download each file separately from its tab, including the sitemap index.

Step 6

Upload and submit

Upload the file to your domain’s root directory, add the robots.txt line provided by the tool, and submit the sitemap.xml in Google Search Console and Bing Webmaster Tools.

Example result

Sitemap example: What a sitemap.xml looks like

Enter URLs and get a ready-to-use sitemap.xml. An example:

Input (domain: example.com):

/
/produkte
/produkte/gameserver | 2026-09-18
/blog/sitemap-erstellen | 2026-10-01
https://example.com/kontakt

Output (sitemap.xml):

<?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/produkte</loc>
  </url>
  <url>
    <loc>https://example.com/produkte/gameserver</loc>
    <lastmod>2026-09-18</lastmod>
  </url>
  <url>
    <loc>https://example.com/blog/sitemap-erstellen</loc>
    <lastmod>2026-10-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/kontakt</loc>
  </url>
</urlset>

Checks

What the Sitemap Generator checks for you

Before creating sitemap.xml, the tool cleans up your list and shows what it changed or omitted below the output.

Duplicate URLs

Each URL appears only once in the file. The tool tells you how many duplicates it removed.

Other domains

By default, the tool excludes URLs on other domains. It treats www.example.com and example.com as different domains.

HTTP and HTTPS

“Enforce HTTPS” is enabled by default. If you turn it off, the tool flags URLs that use a different protocol from your domain.

Parameters and fragments

The tool always removes the part after #. It can remove parameters after the question mark if you choose; otherwise, it flags them.

Last modified date (lastmod)

The tool omits invalid dates and flags future dates. If all URLs have the same date, it lets you know.

Automatic sitemap index

If a file exceeds 50,000 URLs or 50 MB, the tool splits it into sitemap-1.xml, sitemap-2.xml and so on, with a sitemap index named sitemap.xml.

Invalid entries

The tool skips unreadable lines, entries such as mailto: or tel:, and URLs longer than 2,048 characters, and tells you how many it skipped.

Line for robots.txt

Below the output, you’ll find a ready-to-copy line containing Sitemap: and your domain.

Which method?

Need a sitemap generator?

That depends on how your website is built.

WordPress

WordPress automatically generates a sitemap at /wp-sitemap.xml. SEO plugins such as Yoast or Rank Math create their own.

Shopify, Wix, Squarespace

The sitemap is generated automatically at /sitemap.xml. All you need to do is submit it.

Static or custom-built website

That's where this generator comes in. Paste in the URLs, check them, and upload the file.

Large website with changing content

Generate the sitemap during the build or with a crawler such as Screaming Frog. You can check and clean up the result here.

After generating

Upload and submit a sitemap.xml

1. Upload

Place sitemap.xml in your domain's root directory, usually public_html, htdocs, or httpdocs.

2. Add it to robots.txt

Add this line to your robots.txt. The tool displays the ready-to-use line below the output.

Sitemap: https://example.com/sitemap.xml

3. Submit to search engines

Submit the URL to Google Search Console and Bing Webmaster Tools.

Google's guide

Discover more

More tools

Robots.txt Generator

Create robots.txt using a rule editor or per-bot settings, including GPTBot, Google-Extended, and more.

Built by Rugile Rutkauskaite

Crontab Generator

Build Cron expressions using a form, with plain-language explanations and a preview of upcoming execution times—all in your browser.

Built by Jakub Martyniak

URL Encoder & Decoder

Encode and decode URLs and text online: compare encodeURIComponent, encodeURI, and form encoding, with a query parameter table and UTM link builder. Runs entirely in your browser.

Built by Dimitri Heissler

HTTP Status Codes

Searchable list of common HTTP status codes from 100 to 526: meanings of 404, 403, 500, 502, and 503, common causes and fixes, with nginx and Apache examples. Runs entirely in your browser.

Built by Dimitri Heissler

.htaccess Generator & htpasswd Generator

Create Apache .htaccess and .htpasswd files online: 301 redirects, HTTPS, password protection with bcrypt, WordPress rules, error pages, caching, GZIP, and hotlink protection. Runs entirely in your browser.

Built by Dimitri Heissler

Favicon Generator

Generate a complete favicon set from any image—favicon.ico, Apple Touch icon, Android Chrome icons, site.webmanifest, and a ready-to-copy HTML snippet—all in your browser.

Built by Jakub Martyniak

Was this tool helpful?

Your feedback helps us prioritize and improve content.

FAQ

Frequently asked questions

Quick answers about sitemap.xml and this tool.

What is a sitemap.xml and do I need one?

The sitemap.xml is a list of your website's pages in XML format. Search engines use it to find new and updated pages faster. It is especially useful for large or new sites and sites with many poorly linked subpages. A small, well-linked site is usually found without one. It never hurts to have one.

Is the Sitemap Generator free, and are my URLs stored?

The generator is free to use without signing up. Nothing is stored: everything runs in your browser, your URLs are not sent to a server or placed in the address bar.

Does the generator crawl my website?

No. The tool only knows the URLs you paste and checks them for duplicates, other domains, and invalid entries. That means there is no page limit, and it also works for pages that are not online yet. You can get a URL list from your CMS, your shop, or Google Search Console.

Can I check and clean up an existing sitemap.xml?

Yes. Paste the contents of your sitemap.xml: the tool imports loc, lastmod, changefreq, and priority, removes duplicates, and flags other domains, mixed protocols, and invalid dates and values. If it detects a sitemap index, it asks you for the page URLs. It does not check whether the URLs are reachable because it does not visit them.

How many URLs can a sitemap contain?

Maximum 50,000 addresses and 50 MB uncompressed per file. For larger lists, the generator automatically splits them and creates a sitemap index named sitemap.xml. Upload all files and submit only the index.

What are lastmod, changefreq, and priority for?

Google ignores changefreq and priority, so the tool leaves them out by default and notifies you if you set them. Search engines only use lastmod if it is accurate. Add each page’s actual last-modified date after its URL in YYYY-MM-DD format, for example /blog | 2026-10-01. If every URL has the same date, the tool will notify you.

Where should I place sitemap.xml, and how do I submit it to Google and Bing?

Place it in your domain’s root directory so it is accessible at https://example.com/sitemap.xml. It may contain only URLs from the same domain and using the same protocol. Then enter its URL under “Sitemaps” in Google Search Console and Bing Webmaster Tools, and add the Sitemap: line shown by the tool to your robots.txt. Google’s old ping endpoint is no longer available.

Where can I find a website's sitemap?

Try /sitemap.xml and /sitemap_index.xml after the domain, or /wp-sitemap.xml for WordPress. The path is often listed in robots.txt on a line starting with Sitemap:. For your own site, Google Search Console shows submitted files under “Sitemaps”.

What is the difference between an XML sitemap, HTML sitemap and visual sitemap?

An XML sitemap is a file for search engines containing your page URLs. An HTML sitemap is a regular page that shows visitors the site's structure. A visual sitemap is a diagram for planning a website. This generator creates XML sitemaps.

Still have questions?

Contact Support
Your website needs a home

Looking for hosting for your website?

Fast, reliable web hosting with full SSH access.

4.6/5 Google32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all developer tools