What the file looks like
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url><loc>https://www.example.com/</loc><lastmod>2026-11-29</lastmod></url> <url><loc>https://www.example.com/shop/?colour=blue&size=m</loc><lastmod>2026-11-29</lastmod></url> </urlset>
This follows the sitemaps.org protocol, version 0.9.
How your list is cleaned
- Spaces and line breaks separate addresses. Lines that are not full
http://orhttps://addresses are skipped. - Anything after
#is removed, because search engines treat/page#topand/pageas the same page. - Addresses are normalised before duplicates are removed, so
https://Example.comandhttps://example.com/count once. - Non-ASCII characters are percent-encoded:
/cafébecomes/caf%C3%A9. &becomes&, as XML requires.- Addresses of 2,048 characters or more are skipped, and a warning appears if the list mixes different domains.
Limits
One sitemap may hold at most 50,000 URLs and 50 MB (52,428,800 bytes) uncompressed. If you paste more, the first 50,000 are kept and the note says so. Larger sites split their list into several sitemaps and point to them from a sitemap index file.
Dates
lastmod uses the W3C date format, YYYY-MM-DD, and the same date is applied to every address in the list. Search engines use it only when it proves accurate, so set it to when the content really changed, or clear the field.
After you upload it
Add a line like Sitemap: https://www.example.com/sitemap.xml to robots.txt, and submit the address in Google Search Console or Bing Webmaster Tools.