XML Sitemap Guide: Structure, Limits, Submission and Debugging
An XML sitemap is a machine-readable discovery file that lists the canonical URLs you want search engines to crawl. It helps search engines find new, updated or deep pages, but it does not force crawling, ranking or indexing. Each listed URL still needs to be accessible, canonical and worth indexing.
This guide explains valid XML sitemap structure, sitemap limits, lastmod accuracy, canonical URL eligibility, image and video sitemap extensions, sitemap index files, Search Console submission and how to debug stale or rejected sitemap URLs.
To create the file from a reviewed URL list, use the free XML Sitemap Generator. Paste one absolute page URL per line, resolve validation errors and download sitemap.xml in your browser. No account is required. The tool formats supplied URLs; it does not crawl a domain or check whether those pages are indexable. If your CMS already generates a sitemap, review that file before replacing it manually.
Quick Answer
An XML sitemap is a machine-readable file that lists the important URLs on your website.
It is usually located at:
https://example.com/sitemap.xmlA sitemap helps search engines:
- Discover important pages
- Crawl new content faster
- Understand your website structure
- Find recently updated pages
- Improve crawl efficiency
An XML sitemap does not guarantee indexing, but it helps search engines find and evaluate your pages more effectively.
What Is an XML Sitemap?
An XML sitemap is a structured file that provides search engines with a list of pages you want them to crawl.
Unlike your website navigation, an XML sitemap is designed for search engines rather than human visitors.
A simple sitemap might look 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-07-06</lastmod>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-07-05</lastmod>
</url>
</urlset>Each <url> entry provides information about a page you want search engines to discover.
Why XML Sitemaps Matter
An XML sitemap helps search engines prioritize and discover content more efficiently.
Benefits include:
- Faster discovery of new pages
- Better crawl efficiency
- Easier discovery for large websites
- Improved coverage for deep pages
- Support for websites with limited internal links
- Clearer communication with search engines
- Better tracking through search engine webmaster tools
For websites like ToolMint that regularly publish new tools and guides, keeping the sitemap updated helps new content become easier for search engines to discover.
How XML Sitemaps Work
When a crawler visits your website, it may discover your sitemap through:
- Your
robots.txtfile - Google Search Console
- Bing Webmaster Tools
- Direct sitemap URL access
- Internal or external references
The crawler reads the sitemap and queues the listed URLs for crawling.
It is important to understand that a sitemap does not force indexing.
A sitemap helps with discovery. Search engines still decide whether each page should be indexed based on quality, accessibility, duplication, canonical signals, internal links, and other factors.
Understanding Sitemap Elements
| Element | Required? | Purpose | Practical guidance |
|---|---|---|---|
urlset |
Yes | Wraps the URL entries in a standard sitemap | Include the sitemap namespace. |
url |
Yes | Wraps one URL entry | One canonical page per entry. |
loc |
Yes | Gives the absolute URL | Use the final canonical HTTPS URL. |
lastmod |
Optional | Shows the last meaningful modification date | Update only when content materially changes. |
changefreq |
Optional | Gives a change-frequency hint | Search engines may ignore it. |
priority |
Optional | Gives a relative priority hint | Search engines may ignore it; avoid false precision. |
<loc>
The <loc> element contains the page URL.
Example:
<loc>https://www.tool-mint.com/tools/password-generator</loc>This is the most important part of each sitemap entry.
Best practice: use the final canonical HTTPS URL.
<lastmod>
The <lastmod> element shows when the page was last meaningfully updated.
Example:
<lastmod>2026-07-06</lastmod>Only update this value when the content has genuinely changed.
Do not automatically update every date daily if the content has not changed. That can reduce trust in the accuracy of your sitemap.
<changefreq>
The <changefreq> element indicates how frequently a page typically changes.
Common values include:
- always
- hourly
- daily
- weekly
- monthly
- yearly
- never
This is only a hint. Search engines may ignore it.
<priority>
The <priority> element suggests the relative importance of a URL between 0.0 and 1.0.
Example:
<priority>0.8</priority>Modern search engines rely more on real website signals than this value, so use it sparingly and consistently.
Sitemap Limits and Index Files
The sitemap protocol limits a single sitemap to 50,000 URLs and 50 MB uncompressed. Large sites should split URLs into multiple sitemap files and list them in a sitemap index.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
<lastmod>2026-07-13</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-blog.xml</loc>
<lastmod>2026-07-13</lastmod>
</sitemap>
</sitemapindex>Compressed sitemaps can use .gz, but the uncompressed size limit still matters. For large sites, split by content type, language, section, or update cadence so diagnostics are easier to interpret.
URL Eligibility Checklist
Include URLs that are:
- Canonical
- Indexable
- Accessible with
200 OK - Useful to search users
- Discoverable through internal links where practical
- Updated with accurate
lastmoddates when content changes
Exclude URLs that are:
- Redirected
- 404, 410 or 5xx
noindex- Blocked in robots.txt
- Duplicate, parameter-only or non-canonical
- Thin, private, session-based or internal-only
Use ToolMint's Canonical URL Generator to draft a preferred URL declaration, Redirect Checker to inspect redirect destinations and Meta Tags Analyzer to review the canonical and robots metadata returned by a page. Generating a tag does not verify that it is deployed on the live page.
Types of XML Sitemaps
Standard XML Sitemap
A standard sitemap lists regular webpages such as:
- Homepage
- Tool pages
- Blog posts
- Guides
- Category pages
- Landing pages
This is the most common sitemap type.
Image Sitemap
An image sitemap helps search engines discover important images.
It can be useful for:
- Photography websites
- Ecommerce websites
- Real estate websites
- Portfolio websites
- Visual content libraries
Image sitemap extensions can provide image-specific discovery details, but the page and image still need to be crawlable.
Video Sitemap
A video sitemap provides metadata about videos.
It can include details such as:
- Video title
- Description
- Thumbnail
- Duration
- Video URL
This is useful for websites where video content is important.
Video sitemap entries should describe real video content with accurate titles, thumbnails and URLs.
News Sitemap
A news sitemap is designed for eligible news publishers.
It helps search engines discover recent news articles.
This is not required for normal blogs or tool websites.
News sitemaps are specialized for eligible news content and have freshness requirements that ordinary evergreen guides usually do not need.
Hreflang Annotations
Multilingual sites can include alternate-language annotations in sitemaps when they manage hreflang at scale. Each alternate should be reciprocal, canonical and consistent with the page's language targeting.
Sitemap Index
Large websites often split multiple sitemaps into a sitemap index.
Example:
sitemap.xml
├── sitemap-pages.xml
├── sitemap-blog.xml
├── sitemap-tools.xmlThis approach scales better as a website grows.
For ToolMint, a future sitemap structure could separate:
- Tool pages
- Blog guides
- Static pages
- Category pages
XML Sitemap vs Robots.txt
XML sitemaps and robots.txt files work together, but they do different jobs.
| XML Sitemap | Robots.txt |
|---|---|
| Suggests pages to crawl | Controls crawler access |
| Lists important URLs | Blocks or allows paths |
| Helps discovery | Helps crawl management |
Usually located at /sitemap.xml |
Located at /robots.txt |
| Should include indexable URLs | Should not block important URLs |
A strong technical SEO setup often includes both.
Your robots.txt file can also reference your sitemap:
Sitemap: https://example.com/sitemap.xmlXML Sitemap vs HTML Sitemap
An XML sitemap is mainly for search engines.
An HTML sitemap is a webpage designed for human visitors.
| XML Sitemap | HTML Sitemap |
|---|---|
| Machine-readable | Human-readable |
| Used by crawlers | Used by users |
| XML format | Webpage format |
| Helps discovery | Helps navigation |
Most modern websites prioritize XML sitemaps, but large websites may also benefit from an HTML sitemap.
Common XML Sitemap Mistakes
Many websites unknowingly create poor-quality sitemaps.
Common issues include:
- Including 404 pages
- Including redirected URLs
- Including duplicate URLs
- Missing canonical pages
- Listing noindex pages
- Outdated
<lastmod>dates - Empty sitemaps
- Blocking sitemap URLs in robots.txt
- Forgetting to update the sitemap after publishing new content
- Including HTTP URLs when HTTPS is preferred
- Listing parameter URLs unnecessarily
- Including pages with thin or low-value content
A sitemap should be clean, accurate, and focused on URLs you actually want search engines to crawl and index.
How to Fix Sitemap Issues
Remove 404 pages
Only include URLs that return a successful response.
Bad:
https://example.com/deleted-pageIf the URL no longer exists, remove it from the sitemap.
Remove redirected URLs
List the final destination URL instead of redirected URLs.
Bad:
https://example.com/old-pageBetter:
https://example.com/new-pageYour sitemap should not make crawlers pass through redirects unnecessarily.
Match canonical URLs
Every URL in the sitemap should generally match its canonical version.
If a page canonicalizes to another URL, list the canonical URL instead.
Remove noindex pages
Do not include pages that you do not want indexed.
A sitemap should focus on important indexable URLs.
Update after publishing
Whenever you publish, remove, or substantially update important content, regenerate or update the sitemap.
For ToolMint, new tools and SEO guides should be reflected in the sitemap quickly.
Keep dates accurate
Only update <lastmod> when meaningful content changes have been made.
Avoid changing all dates automatically if nothing changed.
Step-by-Step: Create an XML Sitemap
Step 1: Open ToolMint's XML Sitemap Generator
Use ToolMint's XML Sitemap Generator.
This is a URL-list generator. Gather the canonical URLs from your CMS, crawl export or page inventory before starting; entering only the homepage does not discover the rest of your site.
Step 2: Enter your website URLs
Paste one full HTTP or HTTPS page URL per line. If your source is a spreadsheet, copy only its URL column without the heading. Do not paste a CSV document or an existing XML sitemap into the URL field.
Step 3: Generate the sitemap
The XML preview updates as you edit the list. Exact duplicates appear once. Fix every invalid line before exporting. Leave optional fields off unless they are accurate; one shared lastmod date applies to every listed URL.
Step 4: Review the output
Review the accepted URLs and validation messages. Check live status, canonical declarations and indexability separately: the generator validates the supplied text and XML output, not the live pages.
Step 5: Save the file
Select Download sitemap.xml once validation has no blocking errors. The generated file is named:
sitemap.xmlAlternatively, select Copy and save the XML in a plain-text editor as UTF-8. Keep the .xml extension and the complete XML wrapper. A duplicate warning alone does not block download, but an invalid URL or unsupported optional value does.
Step 6: Upload it to your website root
The sitemap should usually be accessible at:
https://example.com/sitemap.xmlStep 7: Reference it in robots.txt
Add:
Sitemap: https://example.com/sitemap.xmlStep 8: Submit it in Google Search Console
Submit your sitemap so you can monitor discovery and indexing reports.
Sitemap Debugging Workflow
- Confirm the sitemap URL returns
200 OKand valid XML. - Confirm each listed URL is absolute, canonical and HTTPS where HTTPS is the canonical scheme.
- Remove URLs returning redirects, 404, 410, 5xx,
noindexor blocked crawling. - Check whether
lastmodreflects meaningful changes rather than automated daily updates. - Compare submitted URL counts with indexed or discovered counts in Search Console.
- Split large or noisy sitemaps by type so errors are easier to isolate.
- Reference the sitemap in robots.txt and submit it directly in Search Console.
- Regenerate after publishing, deleting, redirecting or substantially updating important URLs.
After publishing the XML file, the Robots.txt Generator can help you draft a matching sitemap declaration. Use the public sitemap URL, not a path to the downloaded file on your computer.
ToolMint XML Sitemap Generator Walkthrough
ToolMint's XML Sitemap Generator helps you create clean sitemap files quickly.
It helps you:
- Generate standards-friendly XML
- Format URLs correctly
- Create valid sitemap entries
- Avoid XML syntax errors
- Copy or download the sitemap quickly
- Build a better crawl discovery workflow
Instead of writing XML manually, you can generate a clean sitemap in seconds.
This is useful for:
- Website owners
- SEO professionals
- Developers
- Bloggers
- SaaS founders
- Agencies
- Technical marketers
XML Sitemaps and Technical SEO
An XML sitemap works best when combined with other technical SEO elements.
It should align with:
- Robots.txt
- Canonical URLs
- Internal links
- HTTPS
- Redirects
- Structured data
- Meta robots tags
For example:
- Robots.txt references the sitemap.
- Sitemap lists canonical URLs.
- Canonical tags confirm preferred URLs.
- Internal links point to the same preferred URLs.
- Redirects avoid unnecessary old URLs.
When all signals are consistent, search engines can understand your website more efficiently.
XML Sitemap Checklist
Before publishing your sitemap, verify that:
- Every URL returns
200 OK. - URLs use HTTPS.
- URLs are absolute.
- URLs match canonical versions.
- Redirected URLs are excluded.
- 404 pages are excluded.
- Noindex pages are excluded.
- Duplicate URLs are excluded.
- The sitemap is accessible.
- Robots.txt references the sitemap.
- The sitemap has been submitted to Google Search Console.
- The sitemap updates when new content is published.
Best Practices
Use these best practices:
- Keep the sitemap updated.
- Include only indexable URLs.
- Use absolute URLs.
- Use HTTPS URLs.
- Exclude duplicate content.
- Exclude redirected URLs.
- Regenerate after major site changes.
- Monitor sitemap reports in Search Console.
- Split very large websites into multiple sitemaps.
- Keep sitemap and canonical signals consistent.
Pro Tips
- Create separate sitemaps for blog posts, tools, and static pages as your site grows.
- Monitor sitemap coverage in search engine webmaster tools.
- Compare indexed pages against sitemap URLs regularly.
- Remove obsolete URLs promptly.
- Use accurate last modified dates.
- Do not include low-value pages just to increase URL count.
- Check your sitemap after CMS or framework updates.
- Make sitemap review part of every technical SEO audit.
Frequently asked questions
Does every website need an XML sitemap?
Most websites benefit from having one, especially if they publish content regularly, have many pages, or want search engines to discover updates faster.
Does an XML sitemap improve rankings?
Not directly. An XML sitemap helps search engines discover and crawl your pages more efficiently, but it does not guarantee higher rankings.
Does a sitemap guarantee indexing?
No. A sitemap helps with discovery, but search engines still decide whether a page should be indexed.
How often should I update my sitemap?
Update your sitemap whenever you publish, remove, or substantially update important content.
Should I include noindex pages?
No. Your sitemap should generally include only pages you want search engines to index.
Where should the sitemap be located?
It is commonly located at:
Should I add my sitemap to robots.txt?
Yes. Adding your sitemap URL to robots.txt helps crawlers discover it.
How do I create an XML sitemap?
Paste a reviewed list of absolute page URLs into ToolMint's XML Sitemap Generator, fix any validation errors, then select Download sitemap.xml. It generates XML locally from the supplied list; it does not crawl a website, verify live indexability, publish the file or submit it for you.
Related ToolMint Tools
Use these ToolMint tools to support your crawling and indexing workflow:
- XML Sitemap Generator
- Robots.txt Generator
- Canonical URL Generator
- Redirect Checker
- Meta Tags Analyzer
- HTTP Header Checker
Final Thoughts
An XML sitemap is one of the simplest ways to help search engines understand your website.
It improves crawl efficiency, supports faster discovery of new content, and complements other technical SEO elements such as robots.txt, canonical tags, redirects, and internal linking.
Before launching a website or publishing new sections, generate and maintain your sitemap with ToolMint's XML Sitemap Generator.
A clean, accurate sitemap helps search engines spend more time on the pages that matter and less time on outdated, duplicate, or low-value URLs.