XML Sitemap Generator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free XML sitemap generator. Paste your page addresses to get a valid sitemap.xml, with duplicates removed and other sites' links flagged.
- Addresses
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the XML sitemap generator
Paste the full addresses of the pages you want search engines to find, one per line, starting with https://. Optionally choose a "last updated" date to include for every page. The XML sitemap generator builds a valid sitemap.xml file as you type, ready to copy.
It also cleans up your list:
- Duplicates are removed, so each page appears once.
- Addresses that aren't full URLs are flagged and left out.
- Addresses with a
#are left out, because search engines treat them as the same page. - Addresses on a different domain are flagged, because a sitemap should list one site.
- Special characters such as
&are escaped correctly, which hand-written sitemaps often get wrong.
When it's ready, save the result as sitemap.xml, upload it to your site's root folder and submit it in Google Search Console. Everything runs in your browser; nothing is uploaded.
What an XML sitemap is
An XML sitemap is a file that lists the pages on your site you want search engines to know about. It follows the sitemaps.org protocol, which Google, Bing and other search engines support. A minimal sitemap looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-11-11</lastmod>
</url>
<url>
<loc>https://example.com/menu/</loc>
<lastmod>2026-11-11</lastmod>
</url>
</urlset>
Each <url> contains a <loc> with the page's full address and, optionally, a <lastmod> date showing when the content last changed.
Do you need a sitemap?
Google says sitemaps help most when:
- your site is new and has few links from other sites, so crawlers may not find every page,
- your site is large, with hundreds or thousands of pages,
- pages aren't well linked from each other, so some are hard to reach by following links,
- you publish often, and want new pages discovered quickly.
For a small site where every page is linked from the menu, a sitemap is less critical, but it does no harm and makes Search Console reporting clearer. Most sites should have one.
A sitemap is a suggestion, not a command. It helps search engines find pages; it doesn't guarantee they're indexed or ranked.
What to include and leave out
Include
- Pages you want to appear in search results: home, services, products, categories, blog posts, guides, contact and about pages.
- The canonical address of each page, exactly as written in its canonical tag (with or without the trailing slash, with or without
www, consistently).
Leave out
- Pages with a
noindextag. - Pages that redirect elsewhere. List the final address instead.
- Pages blocked in robots.txt.
- Duplicate versions: tracking parameters, sorted or filtered variants, printer-friendly copies.
- Error pages, thank-you pages, login pages, basket and checkout.
- Addresses with
#fragments.
Listing pages you don't want indexed sends mixed signals, and Search Console will report them as issues.
The fields Google actually uses
The sitemaps protocol defines four fields per URL. Here's how Google treats them:
| Field | What it's for | Does Google use it? |
|---|---|---|
<loc> |
The page's address | Yes, required |
<lastmod> |
When the page's content last changed | Yes, if it's consistently accurate |
<changefreq> |
How often the page changes | No, ignored |
<priority> |
Relative importance | No, ignored |
That's why the XML sitemap generator only writes <loc> and, if you choose, <lastmod>. Only use a last-modified date if it's true: setting today's date on every page each time you regenerate the file teaches Google to ignore your dates. If your pages changed on different days, leave the date out, or edit individual dates by hand after generating.
Size limits
A single sitemap can contain at most 50,000 URLs and be at most 50 MB uncompressed. Larger sites split their pages across several sitemaps and list them in a sitemap index file. The generator warns you if your list is over the 50,000 limit. For most small and medium businesses, one sitemap is plenty.
Getting the list of URLs
Where do you get the addresses to paste?
- Your website's navigation: for small sites, copy each page's address from the browser.
- Your CMS: many platforms can export a list of pages and products.
- Google Search Console: the Pages report lists indexed pages you can export.
- A crawler such as Screaming Frog (free for up to 500 URLs) can list every page it finds.
Before pasting, tidy the list: remove duplicate lines and sort lines alphabetically make it easier to check.
Many platforms make sitemaps for you
Before building one by hand, check whether your platform already generates one:
- WordPress (5.5 and later) creates
/wp-sitemap.xmlautomatically; SEO plugins such as Yoast SEO and Rank Math create/sitemap_index.xmlinstead. - Shopify generates
/sitemap.xmlautomatically. - Squarespace, Wix and Webflow generate
/sitemap.xmlautomatically (Webflow has a setting to turn it on).
An automatic sitemap stays up to date as you add pages, which is better than a manual file. The XML sitemap generator is most useful for hand-coded sites, static sites, landing page builders without a sitemap, and for creating a separate sitemap for a specific set of pages.
Submitting your sitemap
- Upload
sitemap.xmlto the root of your site, so it loads athttps://yourdomain.com/sitemap.xml. - Add a line to your robots.txt:
Sitemap: https://yourdomain.com/sitemap.xml. The robots.txt generator adds it for you. - In Google Search Console, open Sitemaps, enter the address and click Submit.
- In Bing Webmaster Tools, submit it under Sitemaps too.
- Check back after a few days: the report shows how many URLs were discovered and any errors.
When you add pages to a hand-made sitemap, regenerate it and upload it again. Google re-reads submitted sitemaps periodically.
A worked example
A small accountancy firm has a hand-coded website with 14 pages and no sitemap. Google has indexed only nine of them; the five service pages linked only from a dropdown menu are missing.
The owner lists all 14 addresses, pastes them into the XML sitemap generator, and leaves the date empty because the pages changed at different times. The tool removes one duplicate (the home page was listed twice, once with a trailing slash missing, which the browser had shown both ways) and returns 13 clean entries. After uploading sitemap.xml, adding the Sitemap line to robots.txt and submitting it in Search Console, the report shows 13 discovered URLs. Within a couple of weeks, the missing service pages appear in the Pages report as indexed.
The lesson: an XML sitemap generator won't make weak pages rank, but it does make sure good pages aren't simply overlooked.
Common sitemap errors
- Relative addresses such as
/menu/. Every<loc>must be a full URL. - Unescaped ampersands in addresses with parameters, which make the XML invalid. The generator escapes them.
- Mixing domains or mixing
httpandhttpsversions. - Listing redirected or noindex pages.
- Wrong file encoding. Sitemaps must be UTF-8, which the generator's output is.
Sitemaps and other technical SEO
- If your site has language versions, hreflang tags can also go in the sitemap; the hreflang tag generator creates the page-level version.
- After a site move, rebuild the sitemap with the new addresses and set up 301 redirects from the old ones.
- Give every listed page a good title and description with the meta tag generator.
Search ads for the searches that matter now
Good markup helps your pages rank over time. Google Ads puts the same pages in front of buyers today. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Frequently asked questions
Where should I put my sitemap?
In the root of your website, usually at /sitemap.xml, and reference it in robots.txt. Then submit its address in Google Search Console and Bing Webmaster Tools.
Does a sitemap improve rankings?
Not directly. It helps search engines discover and crawl your pages, especially on new or large sites, but ranking depends on the pages themselves.
Should I include priority and changefreq?
There's no need. Google ignores both. The XML sitemap generator leaves them out and only adds lastmod if you choose a date.
How many URLs can a sitemap have?
Up to 50,000 URLs and 50 MB uncompressed. Larger sites use several sitemaps listed in a sitemap index file.
Do I need a sitemap if my platform makes one?
No. WordPress, Shopify, Squarespace, Wix and Webflow can generate sitemaps automatically, and those update themselves. Submit that one in Search Console instead.
Is the XML sitemap generator free?
Yes. It's free, needs no sign-up, and builds the file entirely in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.