What does a sitemap.xml file look like?
Each page is one entry. Google's own example gives the page address and a last-modified date [2]. Use full addresses that start with https://, not short paths like /mypage.html [2]. Google will try to crawl each URL exactly as you wrote it [2].
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com.sg/</loc>
<lastmod>2026-11-27</lastmod>
</url>
<url>
<loc>https://www.example.com.sg/menu/</loc>
<lastmod>2026-11-20</lastmod>
</url>
</urlset>
List the version of each URL you want shown in search. If a page has a canonical tag, put the canonical address in the sitemap, not a duplicate [2].
Does my small Singapore business site need a sitemap?
Google says most sites benefit from one, but it names cases where you may not need it [1]. A site counts as small at about 500 pages or fewer, and it should also be linked well enough that Googlebot can reach every important page from the home page [1].
| Your situation | Sitemap? |
|---|---|
| Large site, so some pages may not be linked from anywhere | You might need one [1] |
| New site with few links from other sites | You might need one [1] |
| About 500 pages or fewer, all linked from the menu or home page | You might not need one [1] |
Google notes that most content management systems generate sitemaps automatically, and plugins exist for the rest [2]. See CMS.
Which tags in a sitemap does Google actually read?
- loc is the page address. It must be a full, absolute URL [2].
- lastmod is the date of the last significant update. Google uses it only if it is consistently and verifiably accurate [2]. Do not set it to today's date on every build.
- priority and changefreq are ignored by Google [2]. You can leave them out.
Keep each file under 50MB uncompressed or 50,000 URLs. If you go over, split it into several sitemaps and list them in one sitemap index file [2].
How do I submit sitemap.xml to Google?
- Put the file at your site root A sitemap at the site root can affect all files on the site, which is where Google recommends posting it [2].
- Add a Sitemap line to robots.txt Write the full address, for example Sitemap: https://www.example.com.sg/sitemap.xml [2].
- Or submit it in Search Console Google accepts submission through Google Search Console, the Search Console API, or the robots.txt line. Google calls a submission only a hint, not a guarantee that it will use the sitemap [2].
- Check that the URLs open Every address in the file should load a normal page, not a 301 redirect or an error.
Questions people ask
What is the difference between a sitemap and an XML sitemap?
A sitemap is any file that lists your pages. XML is the most common format, but Google also accepts RSS, Atom and plain text lists [2]. People usually mean the XML file when they say sitemap.
Does a sitemap make my pages rank higher?
No. It helps Google find your pages and read their update dates [1]. Where a page ranks depends on other things. If a page is not linked from anywhere, a sitemap helps it get found.
Where is my sitemap.xml?
Google says you can host a sitemap anywhere on your site and recommends the site root [2], so yoursite.com/sitemap.xml is the first place to look. If it is not there, check your robots.txt for a Sitemap line, since Google says you can reference a sitemap from that file [2].
Pages that link here
301 redirect, Canonical tag, Crawling, Google Search Console, Headless CMS, Indexing, Internal links, llms.txt, noindex, robots.txt, Schema markup, SEO
See also
- robots.txt A robots.txt file is a plain text file at the root of your site that tells search crawlers which URLs they may visit.
- Canonical tag A canonical tag is a line of HTML that tells search engines which URL is the main version when several URLs show the same page.
- Google Search Console Google Search Console is a free tool from Google that shows how your website performs in Google Search and which pages Google has trouble reading.
- Indexing Indexing is when Google analyses a page it has crawled and stores the result in its index, so the page can be shown for matching searches.
- Crawling Crawling is when Google's automated programs find your web pages and download their text, images and videos so they can be processed for search.
References
- Learn about sitemaps, Google Search Central. Read 27/11/2026.
A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them.
- Build and submit a sitemap, Google Search Central. Read 27/11/2026.
All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs.