Website Tools

Do You Need an XML Sitemap? How to Make and Submit One

A sitemap lists the pages you want search engines to find. It will not lift your rankings on its own, but it helps new and large sites get discovered faster.

In this article
  1. What a sitemap does
  2. Who needs one?
  3. What to include – and leave out
  4. Priority and changefreq
  5. Limits
  6. How to create a sitemap
  7. Submit it to Google and Bing
  8. Image and video sitemaps
  9. WordPress and other platforms

What a sitemap does

An XML sitemap is a file listing the URLs of your important pages, optionally with the date each was last changed. Search engines use it to discover pages – especially pages that are new, deep inside the site or not well linked yet. It is a hint, not a command: listed pages are not guaranteed to be indexed.

XML Sitemap GeneratorTurn a list of page URLs into a valid XML sitemap with optional lastmod, changefreq and priority. Removes duplicates and flags invalid URLs.
Open the free tool

Who needs one?

  • New sites with few links from elsewhere.
  • Large sites with hundreds or thousands of pages.
  • Sites that add content often, such as shops and blogs.
  • Sites with weak internal linking.

Small, well-linked sites can be found without one, but a sitemap costs nothing and gives you useful reports in Google Search Console.

What to include – and leave out

IncludeLeave out
Pages you want in search resultsPages marked noindex
The canonical version of each pageDuplicates, tracking-parameter URLs
Full, absolute URLs (https://…)Redirecting or broken URLs
URLs from one domainPages blocked in robots.txt

Priority and changefreq

The sitemap protocol has optional priority and changefreq fields. Google has said it ignores both. It does use lastmod when the dates are consistently accurate – so only include it if it reflects real content changes.

Limits

One sitemap can hold up to 50,000 URLs and 50 MB uncompressed. Bigger sites use several sitemaps listed in a sitemap index file.

How to create a sitemap

  1. Collect your page URLs, one per line – from your CMS, a crawler export or a spreadsheet.
  2. Paste them into the XML Sitemap Generator.
  3. The tool removes duplicates, skips invalid lines, escapes characters such as “&”, and warns if URLs from several domains are mixed.
  4. Download sitemap.xml and upload it to your site’s root folder.

Clean your list first with Remove Duplicate Lines if it came from several sources.

Submit it to Google and Bing

  1. Add a line to robots.txt: Sitemap: https://yoursite.com/sitemap.xml.
  2. In Google Search Console, open Sitemaps, enter the sitemap address and submit.
  3. In Bing Webmaster Tools, submit it under Sitemaps.

Check back after a few days: Search Console reports how many URLs were discovered and any that could not be read.

Image and video sitemaps

Sites that rely on image or video search can add extra information to sitemaps, or use separate image and video sitemaps, so search engines find media that is loaded by scripts. Most small sites do not need them – normal pages with images that have descriptive file names and alt text are found without help.

WordPress and other platforms

WordPress has generated a basic sitemap at /wp-sitemap.xml since version 5.5, and SEO plugins replace it with their own. Shopify, Wix and Squarespace generate sitemaps automatically. The generator is ideal for static sites, custom-built sites and for adding extra URLs a platform misses. Make a matching robots.txt with the Robots.txt Generator.

XML Sitemap GeneratorTurn a list of page URLs into a valid XML sitemap with optional lastmod, changefreq and priority. Removes duplicates and flags invalid URLs.
Open the free tool
Keep reading

Related articles

All articles
Web

Robots.txt Explained – What to Block, What Not to Block

Robots.txt is a small text file with big consequences. One wrong line can hide a whole site from Google. Here is how it works and what a safe file looks like.

3 min read
Web

The Meta Tags That Still Matter for SEO – and the Ones That Don’t

Old SEO advice lists dozens of meta tags. Only a handful affect how your pages appear in search today. Here is what to set, and what to skip.

3 min read
Web

The Anatomy of a URL – Every Part Explained

Web addresses look like random strings, but every part has a job. Understanding them helps with SEO, analytics, debugging – and spotting scam links.

3 min read