Glossary
seo

XML Sitemap

Definition

A file listing all your website's important pages in a format search engines can easily read. Helps ensure all your content gets discovered and indexed.

What is an XML Sitemap?

An XML sitemap is a file that lists all the important URLs on your website in a format designed for search engines. It helps Google and other search engines discover and understand your site structure.

XML Sitemap vs HTML Sitemap

XML Sitemap

  • For search engines
  • Technical format (XML)
  • Usually at /sitemap.xml
  • Contains URLs and metadata

HTML Sitemap

  • For humans
  • A webpage listing links
  • Helps visitors navigate
  • Less common now

What's in an XML Sitemap?

Required

  • URL of each page

Optional but Useful

  • Last modified date
  • Change frequency (how often updated)
  • Priority (relative importance)
  • Image and video data

Example Format

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://yoursite.com/page</loc>
    <lastmod>2024-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

When You Need an XML Sitemap

Essential if:

  • Large site (500+ pages)
  • Pages with few internal links
  • New site building authority
  • Rich media content

Less critical if:

  • Small site with strong internal linking
  • Simple structure
  • Every page easily reachable

But there's no downside to having one.

Creating an XML Sitemap

Automatic Generation

  • WordPress plugins (Yoast, Rank Math)
  • CMS built-in features
  • Most modern platforms

Manual Creation

  • Online generators
  • Screaming Frog
  • Custom scripts

Submitting Your Sitemap

  1. Go to Google Search Console
  2. Navigate to Sitemaps
  3. Enter your sitemap URL
  4. Submit

Google will check it periodically for updates.

Sitemap Best Practices

  • Keep it under 50,000 URLs (or split into multiple sitemaps)
  • Only include pages you want indexed
  • Update when content changes
  • Don't include blocked or noindex pages

Want to Learn More?

Check out our in-depth guides on web design, SEO, and digital marketing.