TR

Home / Guides / What Is sitemap.xml? How to Create a Sitemap and Submit It to Search Console

What Is sitemap.xml? How to Create a Sitemap and Submit It to Search Console

Updated: October 13, 2026 · AracMerkezi

▶ Open sitemap.xml Generator

sitemap.xml is an XML file that tells search engines the list of important pages on your site. It does not guarantee indexing, but it makes it easier for bots to discover new and deeply nested pages. It is especially useful for new sites and sites with few internal links.

Basic structure

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url>

<loc>https://yourdomain.com/</loc>

<lastmod>2026-10-21</lastmod>

</url>

<url>

<loc>https://yourdomain.com/about/</loc>

</url>

</urlset>

Step by step: your first sitemap

  1. Write the full addresses of all pages you want indexed into a list.
  2. Paste the list into the tool and get the XML output.
  3. Upload the file to the root directory under the name sitemap.xml.
  4. Open it in a browser and make sure the XML shows.
  5. Submit it in Search Console and add a Sitemap: line to robots.txt.

Common situations

Sitemap index file example

Large sites use this structure: within <sitemapindex>, <sitemap><loc>…</loc></sitemap> entries, each pointing to a sub-sitemap. They are generally split by content type (posts, products, categories).

How often should it be updated?

When you add a page or update an important page. If you don't have an automatic system, a regular monthly check is enough for small sites.

Limits

A sitemap file can contain at most 50,000 URLs, and its uncompressed size must not exceed 50 MB. Larger sites create multiple files and gather them in a sitemap index file.

What to watch for

  1. Add only the pages you want indexed. Don't include addresses that are redirected, return 404, are noindex, or whose canonical points to another page.
  2. Write addresses in a single form: Your choices such as https, www or non-www, and trailing slash must match the canonical tags.
  3. Use absolute URLs; a relative path is invalid.
  4. Keep lastmod honest. A date that changes automatically every day leads Google to distrust this field.
  5. Use UTF-8 encoding and escape characters like & as &amp;.
  6. Host the sitemap at the root of the same domain or below it.

How is it created?

Submitting to Search Console

  1. Verify the site in Search Console (domain property or URL prefix).
  2. Go to the Sitemaps section in the left menu.
  3. Enter only the path of the file, for example sitemap.xml; you can also write the full URL.
  4. Press Submit and wait for the status to read “Success.”

Do not submit the robots.txt file; only an XML sitemap is accepted. You can also declare the sitemap in robots.txt with a Sitemap: line; for details, see the robots.txt guide.

After submitting

Statuses such as “Discovered – currently not indexed” or “Crawled – currently not indexed” are normal on new sites; page quality, internal links, and time determine this. For individual important pages, you can request indexing from the URL Inspection tool, but the result is not guaranteed.

Think about it together with meta tags

Every page in the sitemap should have a unique title and description. The Meta Tags and Open Graph guide and the Meta Tag and Open Graph Generator help with this.

Frequently asked questions

How many URLs can a sitemap have at most?

At most 50,000 URLs and 50 MB uncompressed; larger sites use multiple files and an index file.

Does a sitemap guarantee indexing?

No; it helps pages get discovered, and indexing depends on page quality and other signals.

What should be submitted to Search Console?

Only an XML sitemap such as sitemap.xml; the robots.txt file is not submitted.

Tools mentioned in this guide

More guides

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.