An XML sitemap is a list that informs search engines, in a single file, of the addresses of important pages on a website and information such as when those pages were last significantly updated. Google uses this file as a hint for discovering pages; inclusion in the list does not mean that a page will be crawled or indexed.

This article explains the concept based on Google Search Central documentation, then moves on to implementation: which websites really need a sitemap, the file’s structure, correct use of the lastmod field, the built-in sitemap introduced with WordPress 5.5, sitemaps generated by SEO plugins, pages that should and should not be included, and submission to Search Console.

What does a sitemap do?

A sitemap helps search engines discover addresses on a website more efficiently and tells them which pages the website owner considers important. Googlebot mostly finds pages by following links; the sitemap is a second channel that complements this discovery.

The information a sitemap can carry is not limited to addresses. Additional information, such as the date of the page’s last significant update, language versions, images and videos on the page, or the publication date of news content, can also be added using appropriate extensions. However, Google’s documentation on building and submitting a sitemap is clear: submitting a sitemap is a hint, and there is no guarantee that Google will download the sitemap or crawl the addresses it contains.

For this reason, a sitemap is not a remedy for weak internal links or low-quality pages. A page receiving no links from anywhere in the menu or content can be discovered by adding it to the sitemap, but being disconnected from the rest of the website continues to make that page harder to evaluate.

Does every website need a sitemap?

It is not mandatory for every website; Google states that small websites with properly interconnected pages can generally be discovered without a sitemap. In Google’s description, a “small website” is one with approximately 500 or fewer pages intended to appear in search results. Even so, the same documentation emphasizes that using a sitemap is beneficial in most cases.

Situations in which a sitemap is particularly useful are as follows:

  • Large websites: it becomes harder to make sure every page receives a link from at least one other page; new pages may be overlooked.
  • New websites: on a website with few external links, Googlebot may be slow to discover pages through links.
  • Websites containing rich media: websites hosting numerous videos and images or publishing news can communicate additional information about this content through a sitemap.
  • Frequently updated catalogs: ecommerce websites whose products change continuously can announce new and updated pages more quickly through a sitemap.

For websites using WordPress, Wix, or a similar content management system, a sitemap is most likely already being generated. The main task is often to check that the existing sitemap contains the correct pages and has been submitted to Search Console, rather than creating a new sitemap.

Sitemap formats: XML, RSS, and text

Google accepts three types of sitemap formats: XML, RSS/mRSS/Atom feeds, and plain text files. XML is the most versatile; only this format can carry additional information such as images, videos, news, and language versions through extensions.

FormatWhat does it provide?Point to watch
XMLAddresses, lastmod, and extensions for images, videos, news, and language versionsAll values must be written according to XML escaping rules
RSS, mRSS, AtomThe feed generated by the content management system can be submitted directlyThe feed generally shows recent content rather than the entire website
Text (.txt)One address per line; the simplest optionDoes not carry information other than addresses

In practice, because XML sitemaps are generated automatically in WordPress and similar systems, other formats are rarely used on their own. An RSS feed can be submitted in addition to the XML sitemap to announce new posts quickly.

What is the structure of an XML sitemap?

From a technical perspective, the answer to what an XML sitemap is is this: a UTF-8 encoded file containing a url element for each page and at least a loc (address) tag within that element. A simple example with two pages looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/hizmetler/</loc>
    <lastmod>2026-11-02</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/iletisim/</loc>
  </url>
</urlset>

The main rules in Google’s documentation are as follows: addresses are written in full, absolute form (https://www.example.com/iletisim/, not /iletisim/); a single sitemap can contain a maximum of 50 MB (uncompressed) or 50,000 addresses, and larger websites split the sitemap and combine it with an index file. The sitemap can be located anywhere on the website, but unless submitted through Search Console, it only affects addresses below the folder where it is located; the root directory is therefore recommended.

The priority and changefreq tags frequently recommended in older guides are ignored by Google. Filling in these fields does no harm but has no effect from Google’s perspective either; spending that time keeping the lastmod value accurate is more meaningful.

Page contents

Trustworthy web agency: handshaking client and team, trust shield illustration

How do you use lastmod correctly?

lastmod indicates the date of the page’s last significant update, and Google uses this value only when it is consistently and verifiably accurate. Verifiability means that Google can compare the date with whether the page actually changed.

According to Google’s example, changes to the main content, structured data, or links on the page count as significant updates; changing the copyright year in the footer does not. A system that changes every page’s lastmod value to the current date every night makes this field meaningless and produces a signal that loses Google’s trust.

The correct approach is simple: update the date when the page’s content is actually edited. In WordPress, a post’s “last modified” date largely serves this purpose; however, because the date changes even when only a typo is corrected, it is useful to establish a system that distinguishes minor corrections from major content updates.

Let’s review the status of your sitemap together

When you share the sitemap address or domain name through WhatsApp, a free preliminary assessment checks together whether the sitemap contains unnecessary or missing pages, whether lastmod values are kept meaningful, and whether errors appear in Search Console.

How does WordPress’s built-in sitemap work?

Since WordPress version 5.5, the core software generates a basic XML sitemap without requiring a plugin and publishes the sitemap index at /wp-sitemap.xml. According to the WordPress core team’s WordPress 5.5 sitemap developer note , this sitemap is created for public post types and taxonomies (posts, pages, categories, tags), as well as author archives and the homepage.

The same note contains several noteworthy details. A single subsitemap contains a maximum of 2,000 entries, which can be changed through a filter; the virtual robots.txt file generated by WordPress automatically references the sitemap index. When search engines are discouraged from indexing the website in Settings, the built-in sitemap is also disabled. Image, video, and news extensions are not included in the core sitemap.

According to the developer note, the core sitemap lists only addresses by default; fields such as lastmod, changefreq, and priority are not added on the grounds that search engines rarely use them, and they can be added through developer filters when necessary. Specific post types or individual posts can also be excluded through filters; for example, the relevant provider can be disabled to remove user archives from the sitemap.

An SEO plugin sitemap or the built-in sitemap?

Having a single sitemap system running on a website is sufficient; on most corporate WordPress websites, this is the sitemap of the SEO plugin already being used. When popular SEO plugins enable their own sitemaps, they generally disable WordPress’s built-in sitemap and work in harmony with page-level noindex settings: a page marked noindex is also removed from the sitemap.

The practical advantages of a plugin sitemap are automatically adding lastmod information, being able to include image information, and allowing content types to be selected for inclusion through the dashboard. The built-in sitemap meets basic needs without the overhead of an additional plugin. Whatever the choice, the point to check is the same: two different sitemaps should not be live at the same time, and the address submitted to Search Console should point to the sitemap actually in use.

If the website is being newly built, this choice is made during setup and delivered together with the Search Console connection; these steps are part of the WordPress website development process.

Transparent pricing: calculator and budget planning illustration

Which pages should be included in a sitemap?

Only canonical addresses that return a 200 status code and are intended to appear in search results should be included in the sitemap. In Google’s words, a sitemap tells search engines which addresses are preferred for display in results; if the same content is accessible through multiple addresses, the preferred address is written in the sitemap.

  • Pages with a noindex tag are not added to the sitemap; the two signals contradict each other.
  • Old addresses that redirect are not kept in the sitemap; the destination address is used instead.
  • Deleted pages returning 404 or 410 are removed from the sitemap.
  • Duplicate addresses containing sorting, filtering, or session parameters are not added.
  • When an address has a canonical tag pointing to another page, the referenced page is added instead.
  • Addresses blocked from crawling through robots.txt are not included in the sitemap.

These inconsistencies in the sitemap appear as “submitted URL” warnings in Search Console’s page reports. On ecommerce websites, how product, category, and filter addresses are represented in the sitemap must be planned separately; the related items are also covered in the ecommerce SEO checklist article.

When are extensions for images, videos, and language versions necessary?

Image, video, news, and language-version extensions are used to add information that the standard XML sitemap cannot carry, and become necessary only when this content is an important part of the website. A single-language corporate website with a few dozen pages generally does not need these extensions.

The main use for the image extension is images that Google would otherwise be unable to discover, such as gallery images loaded later through JavaScript. Google Search Central’s image documentation states that the addresses of such images can be communicated through an image sitemap. Video and news extensions are for websites that publish large amounts of video or appear in Google News. On multilingual websites, linking each language version to the others can also be done through the sitemap instead of on-page tags.

One more detail should be understood: Search Console’s Sitemaps report does not show separate data about image, video, and news addresses submitted in the sitemap. Whether these extensions work is monitored through the relevant content’s visibility in search results and performance reports, rather than through this report.

How do you submit a sitemap to Search Console?

A sitemap is submitted by entering its address in the Sitemaps report in Search Console; submission means informing Google of the file’s location, rather than uploading the file to Google. According to the Sitemaps report help page , the steps are as follows:

  1. Publish the sitemap on the website and open it in a browser to check that it is accessible.
  2. Verify that the sitemap is accessible to Googlebot, using a live test in the URL Inspection tool if necessary; the address must not require a login or be blocked.
  3. Select the correct property in Search Console; do not confuse http with https or www with non-www versions.
  4. Enter the address in the “Add a new sitemap” box in the Sitemaps report and submit it.
  5. Monitor the Status column: one of the results “Success”, “Couldn’t fetch”, or “Sitemap has errors” appears.

Owner permission for the property is required to submit through the report; without this permission, the sitemap can be added to robots.txt as a full address on a “Sitemap:” line, and Google finds it when it recrawls that file. A successfully processed sitemap is reread automatically by Google at regular intervals; there is no need to resubmit unless there is a major change.

Common sitemap mistakes

Most sitemap problems concern the freshness and consistency of the file’s contents rather than the file’s existence. The most frequently encountered mistakes are as follows:

  • Old addresses remaining in the sitemap after a website migration or a move to https.
  • Both the built-in sitemap and the plugin sitemap being live at the same time.
  • Submitting in the wrong Search Console property or using an address that redirects; the report does not follow redirects.
  • The lastmod value of every page changing automatically every day.
  • The built-in sitemap remaining disabled because of the search engine restriction in the test environment.
  • The sitemap containing noindex pages, 404 pages, or duplicate addresses with parameters.

These checks are not a one-time task; a theme change, plugin update, or change in URL structure can silently break the sitemap. Monitoring the sitemap, robots.txt file, and indexing reports on the same schedule is a regular step in technical SEO services work. For a checklist prepared together with other basic items such as titles, content, and speed, see the SEO-friendly website guide for further details.

Let’s monitor your indexing status together

The sitemap is one of the most practical indicators used to monitor a website’s search visibility: the difference between submitted pages and indexed pages shows where to look. Let’s plan the reasons for this difference and the steps to take together within the priorities of SEO work for your website.

Frequently asked questions

A sitemap works as a discovery hint rather than a ranking factor. Being included in a sitemap does not guarantee that a page will be crawled or indexed; page quality and internal links remain decisive.

In WordPress 5.5 and later, the built-in sitemap index is at /wp-sitemap.xml. If an SEO plugin is used, the plugin’s own sitemap address applies, and that address should be submitted to Search Console.

A successfully processed sitemap is reread automatically by Google on a regular basis. Resubmission makes sense when there is a major change to the sitemap or an error has been fixed.

Google ignores both of these tags. They do no harm, but keeping the lastmod value accurate is much more meaningful from Google’s perspective.

According to Google’s documentation, a single sitemap can contain a maximum of 50,000 addresses or be 50 MB in uncompressed size. Larger websites split the sitemap and submit it through a sitemap index file.

They should not; the sitemap says the page is intended to appear in results, while noindex says it is not. This contradiction appears as a warning in Search Console.

First open the sitemap address in a browser to check that it is accessible, and then use the URL Inspection tool to check whether Googlebot can access it. Once the problem is resolved, resubmit the sitemap through the report.