XML Sitemap Generator
Create an XML sitemap for your website in seconds. Generate a sitemap from URLs or crawl your site automatically, then submit to Google Search Console.
TL;DR: An XML sitemap tells search engines which pages exist on your site. Without one, Google might miss important pages, especially on new or large websites. This free sitemap generator lets you create an XML sitemap in seconds, either by entering URLs manually or crawling your site automatically.
What Is an XML Sitemap and Why Does It Matter?
Search engines discover your pages by following links. But what if a page has few internal links? Or you just launched a new site? Or you have thousands of pages in a complex structure? That's where XML sitemaps come in.
An XML sitemap is a file that lists all the URLs you want search engines to index. Think of it as a roadmap for Googlebot. Instead of hoping the crawler finds everything, you hand over a complete list. Google recommends sitemaps for sites with more than 500 pages, new sites with few external links, and sites using rich media.
A sitemap doesn't guarantee indexing. But it does guarantee discovery. And discovery is the first step to SEO indexing.
How to Use This Sitemap Builder
This XML sitemap generator gives you two ways to create your sitemap:
Option 1: Enter URLs Manually
- Paste your list of URLs (one per line) into the text area.
- Set optional attributes: priority, change frequency, last modified date.
- Click "Generate Sitemap" to create your XML file.
- Download the file and upload it to your website's root directory.
Best for: Small sites, specific page collections, or when you have an existing URL list from a spreadsheet or crawl report.
Option 2: Crawl Your Website Automatically
- Enter your website's homepage URL.
- Set the crawl limit (how many pages to discover).
- Click "Start Crawl" and wait for the website crawl to complete.
- Review the discovered URLs and remove any you don't want included.
- Generate and download your sitemap.
Best for: Sites where you're not sure which pages exist, or when you want to discover all crawlable URLs automatically.
XML Sitemap Format Explained
Every XML sitemap follows the same structure defined by the sitemaps.org protocol. Here's what each element means:
Sitemap XML Elements
| Element | Required | Purpose |
|---|---|---|
| <loc> | Yes | The full URL of the page |
| <lastmod> | No | When the page was last modified (YYYY-MM-DD) |
| <changefreq> | No | How often the page changes (daily, weekly, monthly) |
| <priority> | No | Relative importance (0.0 to 1.0) |
Honest truth: Google largely ignores changefreq and priority. They're part of the protocol, but Google has said they don't use these hints. Focus on accurate lastmod dates instead. Google does pay attention to when pages actually change.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-02-01</lastmod>
</url>
<url>
<loc>https://example.com/about/</loc>
<lastmod>2026-01-15</lastmod>
</url>
</urlset>
How to Submit Your Sitemap to Google Search Console
Creating a sitemap is step one. Submitting it to Google Search Console is step two. Here's how:
- Upload your sitemap to your website's root directory (example.com/sitemap.xml).
- Open Google Search Console and select your property.
- Go to Sitemaps in the left sidebar (under Indexing).
- Enter your sitemap URL (just "sitemap.xml" if it's in the root).
- Click Submit and wait for Google to process it.
After submission, Google Search Console shows you:
- Discovered URLs — How many URLs Google found in your sitemap
- Indexed URLs — How many of those URLs are actually in Google's index
- Errors — Any problems with specific URLs or the sitemap itself
Check back in a few days. If "Discovered" is much higher than "Indexed," you may have content quality or crawlability issues to investigate. See our guide on fixing "Discovered - currently not indexed" issues for a complete troubleshooting process.
Sitemap Best Practices for Better SEO Indexing
A sitemap can help or hurt your SEO depending on what you include. Follow these rules:
- Only include indexable URLs. Every URL in your sitemap should return a 200 status, have no noindex tag, and be the canonical version. Including blocked or redirected URLs wastes crawl budget and confuses Google.
- Keep it under 50MB and 50,000 URLs. That's Google's limit per sitemap file. For larger sites, use a sitemap index that points to multiple sitemap files.
- Use accurate lastmod dates. Only update lastmod when the page content actually changes. Fake dates to trigger recrawling doesn't work and can hurt trust.
- Match your canonical URLs. If your canonical is https://example.com/page/, don't list https://example.com/page (without trailing slash) in your sitemap.
- Reference it in robots.txt. Add
Sitemap: https://example.com/sitemap.xmlto your robots.txt file so any crawler can find it.
How to Add a Sitemap to WordPress
WordPress sites have several options for automatic sitemap generation:
WordPress Sitemap Options
| Method | Sitemap URL | Notes |
|---|---|---|
| WordPress Core (5.5+) | /wp-sitemap.xml | Built-in, basic functionality |
| Yoast SEO | /sitemap_index.xml | More control, splits by content type |
| Rank Math | /sitemap_index.xml | Similar features to Yoast |
| Manual Upload | /sitemap.xml | Full control, use this generator |
If you're using an SEO plugin, check your sitemap settings there first. Most plugins automatically exclude noindex pages, paginated archives, and other URLs that shouldn't be in your sitemap. For complete control, generate a custom sitemap with this tool and upload it to your WordPress root directory via FTP or your hosting file manager.
Sitemap Troubleshooting: Common Errors and Fixes
Google Search Console flags sitemap issues. Here's how to fix the most common ones:
"Sitemap could not be read"
Your sitemap URL returns an error or the XML is malformed. Verify the file exists at the URL and validate the XML syntax.
"URL not found (404)"
Pages in your sitemap don't exist. Remove deleted pages and regenerate your sitemap.
"URL blocked by robots.txt"
Your robots.txt is blocking URLs that are in your sitemap. Either remove them from the sitemap or update robots.txt.
"Indexed, though blocked by robots.txt"
Confusing signal. Don't include blocked URLs in your sitemap. Choose: either allow crawling or remove from sitemap.
Frequently Asked Questions
Do I need an XML sitemap for my website?
Not strictly required, but highly recommended. Small sites (under 100 pages) with good internal linking can get by without one. But for new sites, large sites, e-commerce stores, or any site where SEO matters, a sitemap helps ensure all pages get discovered and indexed.
How do I validate my XML sitemap?
Submit it to Google Search Console. Google will report any XML errors or URL issues. You can also use free XML validators online to check the syntax before uploading. Common issues: unclosed tags, invalid characters, or URLs with spaces.
How often should I update my sitemap?
Update whenever you add or remove pages. For active blogs or e-commerce sites, automate sitemap generation so it stays current. For static sites, regenerate quarterly or when you make significant changes. The key is keeping lastmod dates accurate.
Should images and videos be in my sitemap?
Google supports separate image sitemaps and video sitemaps for media-heavy sites. If image or video SEO is important to you (photographers, video creators, e-commerce), create dedicated media sitemaps. For most sites, the standard URL sitemap is sufficient.
What's the difference between sitemap.xml and sitemap_index.xml?
A sitemap_index.xml file is a "sitemap of sitemaps" that points to multiple sitemap files. Use this when your site has more than 50,000 URLs or when you want to organize sitemaps by content type (posts, pages, products). Most SEO plugins create sitemap indexes automatically.
Will a sitemap guarantee my pages get indexed?
No. A sitemap guarantees discovery, not indexing. Google still evaluates each page for quality and decides whether to index it. If pages aren't getting indexed, the issue is likely content quality, duplicate content, or crawlability problems, not the sitemap itself.
Can I have multiple sitemaps?
Yes. You can submit multiple sitemaps to Google Search Console, or use a sitemap index to reference them all. Common setups: separate sitemaps for blog posts, product pages, and static pages. This helps you track indexing by content type.
Generate Your Sitemap Now
A properly configured XML sitemap is one of the simplest SEO wins. It takes minutes to create and can significantly improve how search engines discover and index your content.
Use the sitemap builder above to generate your XML sitemap, then submit it to Google Search Console. Check back in a week to see how many URLs Google has discovered and indexed.
Related Free SEO Tools
Your sitemap works together with other technical SEO elements:
- Robots.txt Generator — Create a robots.txt file and reference your sitemap in it for automatic discovery.
- Bulk HTTP Status Checker — Verify all URLs in your sitemap return 200 status codes before submitting.
- On-Page SEO Analyzer — Check that pages in your sitemap have proper meta tags and no noindex directives.