← Back to Blog
Technical SEOJune 12, 2026· 8 min read

How to Submit Your Sitemap to Google & Bing (Step-by-Step Guide for Beginners)

Getting your website indexed by Google and Bing is the very first step in SEO. Without it, no one will find your site — no matter how good your content is. This guide walks you through everything: generating a sitemap, verifying ownership, and submitting to both search engines.

What is a sitemap.xml and why does it matter?

A sitemap.xml is a file that lives on your website and lists every page you want search engines to know about. Think of it as a table of contents for Google and Bing.

Without a sitemap, search engines have to discover your pages by following links — which can take weeks or even months. With a sitemap, you tell them exactly where to look and they crawl your site within days.

😴

Without sitemap

Google finds pages by following links. Can take weeks to months.

🚀

With sitemap

You tell Google every page directly. Indexed within days.

1

Generate your sitemap.xml

Before you can submit a sitemap, you need one. How you generate it depends on how your website is built.

Option A — Next.js (automatic)

If your site is built with Next.js 13+, create a file at app/sitemap.ts:

import { MetadataRoute } from 'next'

export default function sitemap(): MetadataRoute.Sitemap {
  const base = 'https://www.your-domain.com'
  const now = new Date()

  return [
    { url: base,               lastModified: now, priority: 1.0 },
    { url: `${base}/about`,   lastModified: now, priority: 0.8 },
    { url: `${base}/pricing`, lastModified: now, priority: 0.7 },
    { url: `${base}/blog`,    lastModified: now, priority: 0.6 },
    { url: `${base}/contact`, lastModified: now, priority: 0.5 },
  ]
}

Next.js automatically serves this at https://your-domain.com/sitemap.xml. No extra steps needed.

Option B — WordPress

Install the free Yoast SEO or Rank Math plugin:

  1. WordPress Dashboard → Plugins → Add New → search "Yoast SEO" → Install → Activate
  2. Go to SEO → General → Features → enable XML Sitemaps
  3. Your sitemap is now live at https://your-domain.com/sitemap_index.xml

Option C — Plain HTML / any other site

Use a free online generator:

  1. Go to xml-sitemaps.com
  2. Enter your website URL → click Start
  3. Download the generated sitemap.xml file
  4. Upload it to the root of your website (same folder as your homepage)
  5. Verify it's accessible at https://your-domain.com/sitemap.xml

How to check if your sitemap is working

Open your browser and go to https://your-domain.com/sitemap.xml. You should see an XML file listing your pages. If you see a 404 error, the file isn't in the right place.

Also add your sitemap to robots.txt

Your robots.txt file (at the root of your site) should reference your sitemap so crawlers find it automatically:

User-agent: *
Allow: /
Disallow: /dashboard/
Disallow: /api/

Sitemap: https://www.your-domain.com/sitemap.xml
2

Set up Google Search Console

Google Search Console (GSC) is Google's free tool that lets you tell Google about your site, monitor indexing status, and see which keywords bring visitors to your site.

2.1 — Add your property

  1. Go to search.google.com/search-console and sign in with your Google account
  2. Click "Add property" in the top-left dropdown
  3. Choose "URL prefix" (not Domain) and enter your full URL with www:
    https://www.your-domain.com
  4. Click Continue

⚠️ Important

Always use the exact URL your site serves on — including or excluding www. If your site is at www.your-domain.com, add that. If it redirects to the non-www version, add the non-www. Getting this wrong means Google tracks the wrong version.

2.2 — Verify ownership

Google needs to confirm you own the site. There are two easy methods:

Method 1: HTML file (recommended for most sites)

  1. Google gives you a file like googleXXXXXXXX.html — download it
  2. Upload it to the root of your website (same level as your homepage)
  3. Verify it's accessible: https://your-domain.com/googleXXXXXXXX.html
  4. Go back to Google Search Console → click Verify

Method 2: DNS TXT record (better for long-term — file won't get deleted)

  1. In Google Search Console, choose "DNS record" verification method
  2. Copy the TXT record value — looks like: google-site-verification=xxxxx
  3. Go to your domain registrar (GoDaddy, Namecheap, etc.) → DNS settings
  4. Add a new record: Type: TXT, Name: @, Value: paste the code
  5. Save and click Verify in Google Search Console (may take up to 15 minutes)

2.3 — Submit your sitemap

  1. In the left sidebar, click Sitemaps
  2. In the "Add a new sitemap" box, type: sitemap.xml
  3. Click Submit
  4. You should see status change to "Success" with a count of URLs discovered

Sitemap shows 'Couldn't fetch'?

This usually means the sitemap URL in Search Console doesn't match your actual domain. Make sure you added the property as www.your-domain.com and the sitemap is also served from that exact URL.

2.4 — Request indexing

  1. In the left sidebar, click URL Inspection
  2. Enter your homepage URL and press Enter
  3. Click "Request Indexing"
  4. You'll see "Indexing requested — URL was added to a priority crawl queue"
  5. Repeat for any other important pages (about, pricing, etc.)
3

Set up Microsoft Bing Webmaster Tools

Bing Webmaster Tools covers both Bing search and Microsoft Copilot AI — making it important even if you think only Google matters.

Method 1: Import from Google Search Console (easiest — 2 clicks)

If you already completed Step 2, this is by far the fastest way:

  1. Go to bing.com/webmasters → sign in with a Microsoft account
  2. On the welcome screen, click "Import" under "Import your sites from GSC"
  3. Sign in to your Google account when prompted
  4. Bing automatically imports your site and sitemap — no verification needed
  5. Done! Your sitemap status will show as "Processing" then "Success" within a few hours

Method 2: Manual setup

If you don't want to connect Google, do it manually:

  1. Go to bing.com/webmasters → sign in
  2. Enter your site URL in the manual box → click Add
  3. Download the BingSiteAuth.xml verification file
  4. Upload it to the root of your website
  5. Click Verify
  6. Go to Sitemaps → click Submit sitemap → enter your sitemap URL → Submit

Why bother with Bing?

Bing powers Microsoft Copilot AI — the AI assistant built into Windows, Edge browser, and Microsoft 365. Getting indexed on Bing means your content can be cited by Copilot when users ask questions in your niche.
4

What happens next — realistic timeline

0–24 hours

Sitemap processed

Both Google and Bing read your sitemap and discover your pages.

1–3 days

Pages crawled

Googlebot and Bingbot visit your pages and read the content.

3–7 days

Pages indexed

Your pages appear in search results. You can check by searching site:your-domain.com on Google.

2–4 weeks

Rankings appear

Search Console starts showing impressions and clicks data. Your pages rank for their target keywords.

3+ months

Authority builds

As you earn backlinks and user engagement, rankings improve. SEO is a long game.

5

Quick checklist — make sure you haven't missed anything

sitemap.xml is live at https://www.your-domain.com/sitemap.xml
robots.txt references the sitemap URL
Google Search Console property added with www version
Ownership verified (HTML file or DNS TXT record)
Sitemap submitted in Google Search Console
Indexing requested for homepage and key pages
Bing Webmaster Tools set up (import from GSC or manual)
Sitemap submitted in Bing Webmaster Tools

Check your site's SEO score for free

Once your site is indexed, run a free SEO audit with SEO-Snap to see exactly what to improve — 251 rules checked in under 60 seconds.

Run Free SEO Audit →