XML Sitemaps for SEO: How to Create and Submit One

Published:

You publish a useful guide, link it from your site, and wait. When it still hasn’t appeared in Google, you start wondering whether search engines can even find it.

Now you’re checking unfamiliar files and reports when you meant to be writing the next article.

The frustrating part is not knowing whether your site needs a fix or Google simply hasn’t processed the page yet. The guide below helps you get a valid sitemap in front of Google and understand what its processing report can—and can’t—tell you about those missing pages.

What Is an XML Sitemap, and Does It Help SEO?

An XML sitemap is a file that lists important page addresses in a format search engines can read. sitemap.xml is a common filename, but your file can have another name.

XML sitemaps for SEO help search engines discover URLs. To understand their limits, separate four things:

StageWhat happens
DiscoveryGoogle learns that a URL exists.
CrawlingGoogle fetches the page.
IndexingGoogle processes the page and includes it in its index, making it eligible for search.
RankingGoogle decides where an eligible page appears for a search.
What Is An Xml Sitemap, And Does It Help Seo?: How Xml Sitemaps Support Google Discovery; Discovery; Google Learns The Url Exists; Crawling; Google Fetches The Page; Indexing; Eligible For Search; Ranking; Position For A Search; A Sitemap Guarantees

A sitemap supports discovery, but it guarantees neither crawling, indexing, nor higher rankings. Google’s sitemap guidance makes that distinction clear.

I would prioritize one for a new site with few links from other websites, or a large site where important pages are harder to reach. A small site with thorough internal links may manage without one. But if your platform maintains a sitemap automatically, I would keep it.

What Is An Xml Sitemap, And Does It Help Seo?: Xml Sitemaps, Html Sitemaps And Internal Links; Xml Sitemap; A Url List For Search Engines; Html Sitemap; A Navigation Page For Visitors; Internal Links; Connect Related Pages; Neither Sitemap Replaces

An HTML sitemap is different: it’s a page visitors can use to browse your site. Neither kind replaces links between your pages.

Throughout this guide, imagine you run an indoor-cat enrichment blog and sell a printable play planner. The example.com addresses below are placeholders.

Find Your Existing Sitemap

Before creating anything, check whether your website already has a sitemap.

Start with your platform’s SEO or sitemap settings. You can also check robots.txt, a file that gives search engines crawling instructions and may list your sitemap. Open it by adding /robots.txt directly after your domain, then look for a line beginning with Sitemap:.

Find Your Existing Sitemap: Where To Find Your Xml Sitemap; Check Platform Or Seo Settings; Open /Robots.txt; Look For Sitemap:; Try /Sitemap.xml; Try /Sitemap_Index.xml; Self-Hosted Wordpress With Permalinks; Try /Wp-Sitemap.xml; One Missing

You can also try these addresses on your own domain:

https://example.com/sitemap.xml
https://example.com/sitemap_index.xml

On self-hosted WordPress using permalinks, also check:

https://example.com/wp-sitemap.xml
Find Your Existing Sitemap: How An Xml Sitemap Index Organizes Urls; Sitemap Index; Lists Sitemap Files; Posts Sitemap; Pages Sitemap; Products Sitemap; /Window-Perch-Guide/; /Printable-Cat-Play-Planner/; Open Child Files To Inspect Page Urls

A missing file at one address doesn’t mean there’s no sitemap. Your platform or SEO plugin may use another address.

You may find a sitemap index rather than a list of articles. An index lists other sitemap files, often grouped into posts, pages, and products. Open those child files to see the actual page URLs.

If the existing sitemap works and updates automatically, reuse it. Find out which platform feature or plugin manages it before changing anything. Installing another generator gives you another set of settings to maintain, which is rarely the prize you wanted.

Choose Which URLs Belong in Your Sitemap

Include public pages you want people to find through search. Each should:

  • Return HTTP 200, meaning the server successfully serves the page.
  • Allow search engines to crawl it.
  • Have no noindex instruction telling search engines to leave it out.
  • Use the preferred address for that content.

That preferred address is the canonical URL. For duplicate or very similar pages, it identifies the version you want search engines to use.

Choose Which Urls Belong In Your Sitemap: Which Urls Belong In Your Xml Sitemap?; Public And Intended For Search?; Returns Http 200?; Crawlable And No Noindex?; Canonical Final Url?; Leave Out; Include; /Window-Perch-Guide/; Tracking Url

Use the same page addresses in your sitemap, internal links, and canonical tags—the tags in page code that name each page’s preferred URL. Match HTTPS, the domain with or without www, and the trailing slash format.

Sitemap inclusion is a weak canonical signal, so it won’t reliably settle conflicting instructions. Google’s canonical guidance recommends consistent signals.

Choose Which Urls Belong In Your Sitemap: Xml Sitemap, Robots.txt And Noindex: Different Jobs; Remove From Sitemap; Does Not Prevent Indexing; Robots.txt Controls Crawling; Noindex; Noindex Controls Indexing; Blocking Crawling Can Hide Noindex

For the cat-enrichment site, the choices might look like this:

URL or pageInclude it?Reason
/window-perch-guide/YesA public guide intended for search.
/printable-cat-play-planner/YesThe public product page.
/window-perch-guide/?utm_source=newsletterNoA tracking version of the same guide.
Newsletter confirmation pageNoDeliberately marked noindex.
Checkout or account loginNoPart of completing a transaction or accessing an account.
Indoor-play category archiveIf usefulInclude it when it offers a worthwhile browsing destination and is intended for search.

Leave out redirected addresses and missing pages too. If a guide has moved, include its final address.

Removing a URL from a sitemap does not prevent indexing. Also, robots.txt controls crawling, while noindex controls indexing. Google needs access to a page to read its noindex instruction; blocking the crawl can stop that instruction from being seen. A sitemap overrides neither restriction. See Google’s explanation of noindex.

Create Your XML Sitemap

Choose the method that creates the least ongoing work.

Your situationMethod I would choose
You regularly publish articles or change productsAn automatic sitemap from your platform or SEO plugin.
Your platform lacks automatic generation, but you can upload filesA crawler-generated XML export.
You have only a few pages that rarely changeA small handwritten XML file.

Before choosing an exported or handwritten file, confirm that your host lets you publish it at a public website address. A downloaded file on your laptop isn’t ready for submission.

Create Your Xml Sitemap: Choose Your Xml Sitemap Creation Method; Site Changes Regularly; Automatic Platform Sitemap; No Automatic Sitemap; Uploads Allowed; Crawler-Generated Xml Export; Few Pages; Rarely Change; Handwritten Xml File; Exported And

Across all three methods, treat modification dates honestly. The optional <lastmod> field should record a significant page update, such as a substantial revision to the guide. A date can use the format 2026-10-20.

Don’t stamp every page with the date you generated the sitemap. Omit dates you can’t maintain accurately. Google also ignores <priority> and <changefreq>, so there’s no reason to spend an afternoon adjusting them. These rules come from Google’s XML sitemap guidance.

Use Your Platform’s Automatic Sitemap

This is my first choice for a changing website. It ties sitemap updates to publishing instead of relying on your memory.

Find the platform’s sitemap feature and enable it if necessary. Choose the content types that meet your inclusion rules, then open the generated file.

Use Your Platform’s Automatic Sitemap: Fix Automatic Xml Sitemaps At The Source; Set Inclusion Rules; Generate Automatically; Inspect Actual Urls; Guide + Public Product Page; Correct The Generator; Output Edits Can Be Overwritten

Rank Math is my preferred WordPress SEO plugin. If you use it:

  1. Enable the Sitemap module in its dashboard.
  2. Open Sitemap Settings and review the included content types.
  3. Include the posts, pages, and products you want in search, and review exclusions.
  4. Save the settings and copy the generated sitemap index address, normally ending in /sitemap_index.xml.

Check the output rather than assuming the switches produced the right result. For the running example, look for both the window-perch guide and the planner’s public sales page.

Make corrections in the software generating the sitemap. Editing its output won’t give you a lasting fix because the next automatic update can replace your changes.

Use one maintained generation setup. Several child sitemap files inside its index are normal.

Generate a File When Your Platform Lacks Automatic Sitemaps

A crawler-based generator follows your website’s links and builds a URL list from what it finds.

XML-Sitemaps.com offers an online generator with a free allowance of up to 500 pages. I would consider it for a small site without automatic generation.

Generate A File When Your Platform Lacks Automatic Sitemaps: Why Sitemap Crawlers Can Miss Published Pages; Published Does Not Mean Linked; Planner Page Missed; Add A Relevant Internal Link; Rerun The Crawl; Compare With Your Publishing List

The basic process is:

  1. Enter your public website address and run the crawl.
  2. Review the discovered URLs against your published pages.
  3. Download the XML file and open it in a plain-text editor. Remove unwanted addresses and add any missing pages that meet your inclusion rules.
  4. Upload the reviewed XML file to your website.

A crawler’s list needs review. On one of my digital-product sites, a crawl missed a published sales page because I hadn’t linked to it from the rest of the site. I added the missing internal link and reran the crawl. That experience is why I compare exports with the publishing list before trusting them.

For the cat blog, check that the generator found the planner page as well as the articles. If it missed the planner, investigate its links instead of only adding the address to the file.

Regenerate and replace an exported sitemap when included pages are added, significantly updated, redirected, or removed. I would skip this method for a frequently changing site if automatic generation is available.

Write a Minimal XML File for a Small, Stable Site

For a handful of stable pages, you can write the XML yourself in a plain-text editor.

The outer <urlset> tags hold the page list. The xmlns address, called the namespace, identifies the sitemap format. Each page gets a <url> entry containing a <loc> tag with its full address, including https:// and the domain.

Write A Minimal Xml File For A Small, Stable Site: Minimal Xml Sitemap File Structure; &Lt;?Xml Version=&Quot;1.0&Quot; Encoding=&Quot;Utf-8&Quot;?&Gt;; &Lt;Urlset; Xmlns=&Quot;Http://Www.sitemaps.org/Schemas/Sitemap/0.9&Quot;&Gt;; &Lt;Url&Gt;; &Lt;Loc&Gt;Https://Example.com/&Lt;/Loc&Gt;; &Lt;/Url&Gt;; &Lt;/Urlset&Gt;

Here is a complete two-page example:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/window-perch-guide/</loc>
  </url>
  <url>
    <loc>https://example.com/printable-cat-play-planner/</loc>
  </url>
</urlset>

Replace the placeholder addresses with your own and save the file as UTF-8, using a name such as sitemap.xml. Make sure your editor hasn’t added .txt.

Write A Minimal Xml File For A Small, Stable Site: Handwritten Xml Sitemap Formatting Checks; Keep The Namespace Unchanged; Http://Www.sitemaps.org/Schemas/Sitemap/0.9; Page Urls Can Use Https://; Escape Special Characters; &Amp;; &Amp;Amp;; Sitemap.xml

Keep the namespace exactly as shown. Its http:// form is intentional, even when your page addresses use HTTPS.

XML also requires special characters to be escaped. For example, an ampersand inside an included address must appear as &amp;. The sitemap protocol defines these formatting rules.

Validate Your Sitemap Before Submitting It

An exported or handwritten sitemap must be published on your website. Use your host’s file manager or file-transfer tool to upload it, preferably at the site root:

https://example.com/sitemap.xml

Putting the file at the top level of your site lets it cover pages throughout the site. Automatic platform sitemaps are already hosted.

Open the live address while logged out. A styled table is fine, but the underlying response must be XML. A login screen, security challenge, or HTML error page won’t work.

To check the response, open your browser’s developer tools, select Network, and reload the address. Select the sitemap request and confirm a 200 status, then inspect its response. Check child files too if you’re using an index.

Validate Your Sitemap Before Submitting It: Xml Sitemap Validation: Pass Every Gate; Public Access; Http 200 + Xml Response; Valid Xml Structure; 50,000 Urls Maximum; 50 Mb Uncompressed Maximum; Both Limits Apply To Each Sitemap; Suitable Page Urls

Next, enter the live address into a format checker such as the XML-Sitemaps.com validator. Fix errors involving missing closing tags, the namespace, incomplete addresses, unescaped characters, or invalid dates.

Each sitemap must stay within both limits: 50,000 URLs and 50 MB uncompressed. Split larger files and reference the parts through a sitemap index.

Finally, check the pages themselves. Valid XML can still list unsuitable URLs.

For the running example, open the guide and planner page and confirm that both load correctly, use the intended canonical address, and allow indexing. On your site, check representative pages from each included content type.

Submit Your Sitemap to Google Search Console

Google Search Console is Google’s free tool for monitoring your site in search. To submit a sitemap, you need owner permissions for a property—the website or section of a website you manage in the tool. That property must cover the sitemap and its pages.

If you haven’t added your site, create a property and complete ownership verification. A Domain property requires DNS verification through your domain’s DNS provider. A URL-prefix property offers alternatives, including an HTML file or tag. If you choose URL-prefix, match the HTTPS address and domain version your site uses.

Once you have access:

  1. Select the correct property in Search Console.
  2. Open the Sitemaps report.
  3. Enter the hosted sitemap address in Add a new sitemap.
  4. Click Submit.
Submit Your Sitemap To Google Search Console: How To Share Your Hosted Xml Sitemap With Google; Host The File First; Https://Example.com/Sitemap.xml; Use The Correct Verified Property; Submit The Sitemap Or Index Address; Prefix Already Supplied?

When the form already supplies your website prefix, enter only the remaining path, such as sitemap_index.xml.

https://www.youtube.com/watch?v=A7IKIVpPFxY

Submit the index address if it references the child sitemaps you want processed. Submission tells Google where the hosted file lives; it doesn’t upload a local file.

You can also advertise the sitemap in your root robots.txt file. Add this line unless an accurate entry already exists:

Sitemap: https://example.com/sitemap.xml

Use your actual sitemap or index address. Add the line without replacing the file’s existing crawl rules.

If you’re unsure how the sitemap entry fits with your existing crawl rules, work from your current file rather than starting over. Prepare a draft and test it before changing the live version.

Lead Magnet Cover
FREE AI SKILL

Free AI Crawl Directive Assistant

Use AI to plan what search engines should crawl or leave out of results while keeping the settings you still need.
Send My AI Crawl Directive Assistant ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 2,500+ users

Check Processing and Resolve Problems

After submission, check whether Google processed the file. Then investigate individual pages separately if needed.

Confirm That Google Can Read the Sitemap

Review the status, last-read date, and discovered-page count.

Report itemWhat it tells you
SuccessGoogle fetched and read the sitemap successfully.
Last readWhen Google last fetched it.
Discovered pagesUnique page URLs parsed from the sitemap, including child files for an index.
Confirm That Google Can Read The Sitemap: What Google’s Sitemap Processing Report Means; Success; Google Fetched And Read The File; Last Read; When Google Last Fetched It; Discovered Pages: 2; Unique Page Urls Parsed; Discovered Pages Is Not An

Discovered pages are not an indexing count. These meanings follow Google’s Sitemaps report definitions.

For “Couldn’t fetch,” check the submitted address, server availability, login requirements, and crawler blocking. For parsing errors, inspect the reported location for malformed XML, invalid addresses, or HTML served instead of XML.

Confirm That Google Can Read The Sitemap: Troubleshoot Xml Sitemap Processing Problems; Couldn’t Fetch; Check Address, Server, Login And Blocking; Parsing Error; Inspect Reported Xml Location; Expected 2; Discovered 1; Check Both Live Entries Are

Compare the count with what you intended to submit. If the cat site’s file contains only the two example pages, a count of one deserves investigation. Open the live file and check whether both entries are present and valid.

Correct the generator or file, validate it again, and resubmit after fixing a persistent failure.

Investigate an Important Page That Is Not Indexed

If the sitemap works but an important page is missing, paste that page’s full address into Search Console’s URL Inspection tool.

Review:

  • Whether Google can crawl the page.
  • Whether indexing is allowed.
  • The reported crawl information.
  • The Google-selected canonical, where available.
Investigate An Important Page That Is Not Indexed: Unindexed Page? Match The Finding To The Fix; Accidental Noindex; Remove If Intended For Search; Redirected Url; List The Final Address; Wrong Canonical; Align Canonical, Sitemap And Links; No

Use the indexed report to review Google’s canonical choice. After a fix, select Test live URL to check current accessibility. A successful live test doesn’t prove indexing or predict canonical selection. Google’s URL Inspection documentation explains that distinction.

Let the finding determine your action:

FindingUseful response
Accidental noindex on the planner pageRemove it if the page belongs in search.
Old guide address redirectsPut the final address in the sitemap.
Canonical points to an unintended pageAlign the canonical setting, sitemap entry, and internal links.
Important page has no internal linksLink to it from relevant, accessible pages.
Page is missing or brokenRestore it or remove the outdated sitemap entry.

“Crawled—currently not indexed” means Google has already fetched the page. For an important page, investigate technical problems, duplication, and whether the content offers enough useful information. Google’s indexing status guidance confirms that this status is different from a discovery failure.

I wouldn’t keep resubmitting the sitemap as the remedy. If Google has fetched the planner page, another announcement of its address doesn’t answer why it wasn’t indexed.

Keep Your Sitemap Current

Make sitemap checks part of publishing.

When you publish an intended search page, confirm that it appears in the live sitemap. When you redirect or delete a page, check that its old address leaves the file. For exported or handwritten sitemaps, update and replace the hosted file yourself.

Keep Your Sitemap Current: Keep Your Xml Sitemap In Sync With Publishing; Publish A Search Page; Confirm Its Url Appears; Redirect Or Delete; Confirm The Old Url Leaves; Change The Site Setup; Recheck Access, Entries And Processing; Exported Or

Keep the sitemap address stable. Google periodically rereads successfully processed sitemaps, so routine content changes don’t require another manual submission.

I would also recheck the file after a domain move or changes to your platform, SEO plugin, caching, or security settings. Confirm that it still loads, contains the expected pages, and has no processing failure in Search Console.

The useful maintenance habit is checking that publishing changes reach the sitemap. Repeatedly clicking Submit adds work without maintaining the file.

What Next?

Find your live sitemap and check whether one important article and one public product or service page appear with their correct addresses. If the file passes validation, submit it and review its processing status.

Use the social buttons to share this guide when you’re comparing sitemap setups—it gives you a common checklist for deciding whether the file actually works.

Which part of your setup needs attention: finding the sitemap, choosing its URLs, or understanding Google’s report? Leave your answer and any other questions in the comments.

Share this post with your friends & followers:
Abhishek is a data scientist by day & an online entrepreneur by night. He is known for his ability to simplify complex concepts and make them accessible to a wider audience. He started Passive Book to share his insights and experiences on how to effectively build an online business, which has quickly become a go-to resource for anyone looking to bootstrap an online business from scratch.

Leave a Comment

Build an Online Business 
Without Quitting Your Job

Join 10,000+ solopreneurs building six-figure online businesses from scratch with limited time & tight budgets using smart systems & AI automations.
Optin Form - Main

Free Bonus: Get access to our AI workflows & cheat sheets
Person sitting with laptop in home office environment with launching rocket, coffee mug, sleeping dog, bookshelf, and house plant illustrating work-from-home online business lifestyle. Decorative image.
Thank you for sharing

Follow Us On: