# XML Sitemap

> A file that lists a site's pages, so search engines can find them all.

**Field:** Marketing & SEO  
**Category:** SEO  
**Also known as:** Sitemap, sitemap.xml

## Think of it like

It is like a list of every room in a house. You give it to a guest at the door.

## Definition

An XML sitemap is a file that lists the pages of a site you want search engines to find. It can also say when each page last changed. Crawlers use it to find pages they might miss through links. One sitemap file can hold up to 50,000 addresses. A bigger site splits them across several files and lists those in a sitemap index.

## Example

A new online shop has 3,000 product pages and few links yet. It submits a sitemap, and most products are crawled within a week.

## Example code

```xml
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/mens-rain-jacket</loc>
    <lastmod>2026-11-02</lastmod>
  </url>
</urlset>
```

One page in the list: its address and the day it last changed.

## Why it matters

It is the surest way to tell engines about new or deep pages that few links point to yet.

## Common mistake

Listing pages you do not want indexed, like copies or blocked pages. A sitemap should hold only your best, live pages.

## Three principles

- **A list of pages.** Only the ones you want found.
- **Size limit.** 50,000 addresses per file.
- **Help, not order.** Engines still choose what to index.

## Related terms

- [robots.txt](https://learn.benibix.com/term/marketing/robots-txt)
- [Crawling](https://learn.benibix.com/term/marketing/crawling)
- [Indexing](https://learn.benibix.com/term/marketing/indexing)
- [Technical SEO](https://learn.benibix.com/term/marketing/technical-seo)
- [Visual Sitemap](https://learn.benibix.com/term/design/visual-sitemap)

## Told apart from

- [Visual Sitemap vs XML Sitemap](https://learn.benibix.com/compare/visual-sitemap-vs-xml-sitemap): People think a sitemap is one thing, and there are two. A visual sitemap is a drawing of a site's pages that a team plans with. An XML sitemap is a file that lists page addresses for search engines. One is for people, the other is for robots. A site often has both.

## Taught in

- [Robots.txt and XML Sitemaps](https://learn.benibix.com/learn/marketing-seo/robots-txt-and-xml-sitemaps): SEO, 8/15

---

Source: https://learn.benibix.com/term/marketing/xml-sitemap
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
