Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    How to Make an XML Sitemap: Format, Limits and What to Include

    Updated December 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    An XML sitemap is a file that lists the pages of your site, so search engines can find them. For a small site it is a short list of addresses. This guide shows the format, the limits and the mistakes to avoid.

    Try the tool: XML Sitemap Generator

    The format

    A sitemap is an XML file with one url entry per page. The loc tag holds the full address and is required. The lastmod tag, the date the page last changed, is optional. All tag values must be entity escaped, which means that a character such as & is written as &. Save the file as UTF-8.

    • urlset: the parent tag, with the sitemap namespace.
    • url: one entry per page.
    • loc: the full address, including https://.
    • lastmod: optional, for example 2026-12-01.

    Source: Google Search Central: Build and submit a sitemap

    The limits

    A single sitemap can hold at most 50,000 URLs and be at most 50 MB uncompressed. If you have more, split the URLs over several sitemaps and list them in a sitemap index file.

    Source: Sitemaps.org: FAQ

    Make one

    Paste your addresses into the generator, one per line, and optionally set a lastmod date for all of them or per line. It removes duplicates, escapes the characters and warns about mixed hosts. It does not crawl your site, so you decide which pages are listed.

    Submit it

    Upload the file to your site, for example to /sitemap.xml, and submit its address in Google Search Console. You can also mention it in your robots.txt file. A sitemap helps crawlers find your pages, but it does not guarantee that they are indexed.

    Common mistakes

    • Listing addresses without https:// or with the wrong host, such as a version with and one without www.
    • Not escaping & in an address.
    • Listing pages that redirect or that you do not want in search results.
    • Going over 50,000 URLs in one file.

    More guides