Step 1
Enter your website URL
Add the full website URL you want to crawl, such as https://example.com.
Free SEO Tool
Create a clean XML sitemap for your website in seconds. Enter your website URL, generate your sitemap, review the discovered pages, then copy or download a ready-to-use sitemap.xml file.
Use this free sitemap generator to create a sitemap for business websites, blogs, WordPress websites, Next.js projects, ecommerce stores, landing pages, and SEO campaigns. A sitemap helps search engines discover the important pages on your website and understand which URLs you want them to crawl.
Sample 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>
</urlset>A sitemap is a file that lists the important URLs on your website. Search engines use sitemaps to discover pages, understand your website structure, and find updated content more efficiently.
This free XML sitemap generator helps you create a sitemap.xml file without writing XML manually. Enter your website URL, generate your sitemap, review the URLs, then copy or download the final file.
A sitemap is especially useful if your website is new, has many pages, has pages that are not easily discovered through internal links, or has recently been redesigned.
A sitemap helps search engines discover your URLs, but it does not guarantee that every page will be indexed. Search engines still decide whether a page should appear in search results based on quality, accessibility, duplication, canonical tags, robots.txt rules, noindex tags, and other SEO signals.
Step by step
Follow these steps to generate and publish your sitemap correctly.
Step 1
Add the full website URL you want to crawl, such as https://example.com.
Step 2
Click the generate button and allow the tool to find available pages on the same website.
Step 3
Check the list of URLs before downloading. Remove any URLs that should not be included in your published sitemap.
Step 4
Save the generated XML file as sitemap.xml so it can be uploaded to your website.
Step 5
Your sitemap should usually be available at https://example.com/sitemap.xml.
Step 6
Add a Sitemap line to your robots.txt file so crawlers can discover the sitemap location.
Step 7
Open the Sitemaps report, enter your sitemap URL, and submit it for Google to process.
Step 8
After submission, review any errors or warnings reported by Google Search Console.
Sitemap: https://example.com/sitemap.xmlAn XML sitemap is a structured file that lists the URLs you want search engines to discover. It can include extra information such as when a page was last updated, how often it may change, and its relative priority.
A sitemap does not replace good internal linking, but it gives search engines another way to find your important content.
Example
A basic XML sitemap looks like this:
<?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-05-31</lastmod>
</url>
<url>
<loc>https://example.com/services/</loc>
<lastmod>2026-05-31</lastmod>
</url>
<url>
<loc>https://example.com/contact/</loc>
<lastmod>2026-05-31</lastmod>
</url>
</urlset>Your sitemap should include important public pages that you want search engines to discover and potentially index.
Do not include low-value, private, duplicate, or non-indexable pages in your sitemap.
If a page is blocked, redirected, broken, duplicated, or marked noindex, it usually should not be included. Use canonical URLs that return a successful 200 status and represent the page you want search engines to discover.
WordPress websites often generate sitemaps automatically through WordPress core or SEO plugins. However, a sitemap generator is still useful when you want to check your sitemap structure, create a manual sitemap, review important URLs, or generate a sitemap for a custom WordPress setup.
https://example.com/sitemap.xml
https://example.com/wp-sitemap.xml
https://example.com/sitemap_index.xml
For a Next.js website, you can use a static sitemap.xml file or generate a sitemap through a sitemap.js or sitemap.ts metadata route.
Use this tool if you want to quickly generate a simple sitemap file, review the important URLs on your website, or create a sitemap reference before implementing dynamic sitemap generation in your codebase.
If this project already uses the Next.js App Router, consider adding or improving an app/sitemap.ts file later. The current tool page still helps users generate and understand a standard sitemap.xml file.
After generating your sitemap, submit it to Google Search Console so Google can find it more easily and report any sitemap errors.
Step 1
Open Google Search Console.
Step 2
Select the correct website property.
Step 3
Go to the Sitemaps report.
Step 4
Enter your sitemap path, such as sitemap.xml.
Step 5
Click Submit.
Step 6
Check the status after Google processes the sitemap.
Step 7
Fix any errors or warnings if they appear.
https://example.com/sitemap.xml
Sitemap: https://example.com/sitemap.xmlA sitemap and a robots.txt file do different jobs.
A sitemap tells search engines which URLs you want them to discover. A robots.txt file tells crawlers which parts of your website they should or should not crawl.
For best results, use both. Generate your sitemap, upload it to your website, then add the sitemap URL to your robots.txt file. You can also create crawler rules with our Robots.txt Generator.
| Feature | Sitemap | Robots.txt |
|---|---|---|
| Main purpose | Helps search engines discover URLs | Controls crawler access |
| File example | sitemap.xml | robots.txt |
| Best use | Listing important indexable pages | Blocking low-value or unnecessary crawl paths |
| SEO role | Discovery support | Crawl management |
| Guarantee? | Does not guarantee indexing | Does not guarantee privacy |
Follow these sitemap best practices before uploading or submitting your file.
Mistake 1
A sitemap should include important indexable URLs, not every URL your website can generate.
Mistake 2
If a page has a noindex tag, it usually should not be included in your sitemap.
Mistake 3
Avoid including URLs that are blocked by robots.txt.
Mistake 4
Your sitemap should include the final canonical URL, not old redirected URLs.
Mistake 5
Regenerate or update your sitemap after launching new pages, deleting old pages, changing URLs, or redesigning your website.
Mistake 6
After uploading your sitemap, submit it in Google Search Console and review processing errors.
This free sitemap generator is useful for:
Improve your technical SEO setup with these related tools and services.
FAQ
A sitemap generator is a tool that creates a sitemap file for your website. It helps you list important URLs in a format search engines can read.
An XML sitemap is a structured file that lists the important URLs on a website. Search engines can use it to discover pages and understand when content may have changed.
A sitemap can support SEO by helping search engines discover important pages. It does not guarantee rankings or indexing, but it is a useful part of technical SEO.
You should usually upload your sitemap to the root of your website so it is available at a URL like https://example.com/sitemap.xml.
Open Google Search Console, choose your website property, go to the Sitemaps report, enter your sitemap URL, and click Submit.
Most websites can benefit from a sitemap, especially new websites, large websites, websites with many pages, ecommerce stores, blogs, and websites that have recently changed structure.
Include important public pages that you want search engines to discover, such as your homepage, service pages, product pages, blog posts, category pages, location pages, and major landing pages.
Remove admin pages, login pages, cart pages, checkout pages, account pages, internal search results, duplicate URLs, noindex pages, redirected URLs, broken URLs, and staging pages.
Yes. You can use this sitemap generator to create or review a sitemap for a WordPress website. WordPress may also generate sitemaps automatically through core features or SEO plugins.
Yes. This tool can help create a standard sitemap.xml file for a Next.js website. For larger Next.js projects, you may also want to generate sitemaps dynamically through sitemap.js or sitemap.ts.
A sitemap.xml file lists the important URLs you want search engines to discover. A robots.txt file tells crawlers which parts of your website they should or should not crawl.
No. A sitemap helps search engines discover URLs, but search engines still decide whether each page should be indexed.
Update your sitemap whenever you add important pages, delete pages, change URLs, redesign your website, or update major content.
Yes. You can add a sitemap line to robots.txt, such as Sitemap: https://example.com/sitemap.xml.
A sitemap is only one part of a healthy technical SEO setup. If you need help improving your website structure, page speed, analytics, indexing, or conversion-focused design, Website Builder Central can help you build a cleaner and more search-friendly website.