Ai Ranko
Ai RankoToolsXML Sitemap Generator
Free XML Sitemap Generator

XML Sitemap Generator

Generate a Google-ready sitemap.xmlfrom any website. Reads your existing sitemap or crawls up to 500 pages — set changefreq, priority, lastmod & image tags, then download instantly.

XML Sitemap Generator

Enter your website URL and configure options below

How the XML Sitemap Generator Works

Real crawl. Real data. Valid sitemap schema — no placeholders.

01

Discover URLs

Reads your existing sitemap.xml first. If not found, crawls your site from the homepage following internal links up to your selected depth.

02

Build XML

Assembles a W3C-valid XML sitemap with your chosen changefreq, priority, lastmod dates, and optional image:image extensions.

03

Download & Submit

Copy the XML or download sitemap.xml. Upload to your site root and submit in Google Search Console for fast indexing.

Full Feature Set

Every option Google expects in a production sitemap.

Valid XML Schema

Generates sitemaps that validate against http://www.sitemaps.org/schemas/sitemap/0.9 — required for Google Search Console.

Sitemap.xml Reader

Automatically reads your existing sitemap.xml or sitemap index files first, so large sites are handled in seconds.

Live Web Crawler

If no sitemap exists, crawls your site up to 4 levels deep and collects up to 500 real page URLs.

changefreq & lastmod

Set default change frequency and enable lastmod dates — today's date for crawled pages or from your existing sitemap.

Image Extensions

Optionally add image:image tags for every on-page image — improves indexing in Google Image Search.

Exclude Patterns

Skip URLs matching keywords like /admin, /cart, /private to keep your sitemap focused on public pages.

Sitemap Index Support

Detects and merges sitemap index files automatically, combining multiple child sitemaps into one unified output.

Crawl Depth Control

Choose 1–4 levels of link depth. Level 1 maps only the homepage links; level 4 reaches deep page hierarchies.

2 Export Formats

Download as a standalone .xml file or copy the raw XML to clipboard — ready to upload to any hosting environment.

Sitemap Best Practices for 2025

Submit in Search Console

Always submit your sitemap URL in Google Search Console and Bing Webmaster Tools — do not rely solely on the robots.txt Sitemap directive.

Keep it under 50,000 URLs

Google's limit per sitemap file is 50,000 URLs and 50 MB uncompressed. For larger sites, create a sitemap index pointing to multiple child sitemaps.

Use canonical URLs only

Only include the canonical version of each page — no session IDs, UTM parameters, or pagination variants. This prevents index dilution.

Update after publishing

Regenerate and resubmit your sitemap every time you publish new content, delete pages, or significantly restructure your navigation.

Omit noindex pages

Pages marked noindex should not appear in your sitemap. Including them sends mixed signals to search engines and wastes crawl budget.

Use consistent protocol

Stick to https:// across all sitemap URLs. Mixing http and https creates duplicate indexing issues and confuses crawlers.

Frequently Asked Questions

What is an XML sitemap?

An XML sitemap is a file that lists all the URLs on your website so search engines like Google and Bing can discover and crawl them more efficiently. It tells crawlers which pages exist, when they were last updated, and how often they change.

Does Google still use XML sitemaps?

Yes. While Google can discover pages by following links, submitting a sitemap via Google Search Console is the most reliable way to ensure all your pages are indexed — especially new pages, deep pages, or pages with few internal links.

How does this tool generate the sitemap?

The generator first checks if your site already has a sitemap.xml. If found, it uses those URLs directly. If not, it crawls your site up to your chosen depth and max page limit, extracting all internal links automatically.

What is changefreq and priority?

changefreq hints to search engines how often a page changes (daily, weekly, monthly, etc.). priority is a 0.0–1.0 score that signals the relative importance of pages on your site. Note: Google does not guarantee it follows these hints exactly.

Should I include image:image tags?

Yes, if your site relies heavily on images (portfolios, e-commerce product photos, photography). Google Image Search can index images faster when they are listed in sitemap image extensions. For content-heavy sites without key images, it is optional.

How many URLs should a sitemap have?

A single sitemap file supports up to 50,000 URLs and must be under 50 MB. For larger sites, use multiple sitemaps and a sitemap index file — our tool automatically merges existing sitemap indexes.

Where do I submit the sitemap?

Upload sitemap.xml to your site root (https://yourdomain.com/sitemap.xml), add "Sitemap: https://yourdomain.com/sitemap.xml" to your robots.txt, and submit the URL in Google Search Console under Sitemaps → Add a new sitemap.

How often should I regenerate the sitemap?

Regenerate and resubmit your sitemap whenever you publish new pages, remove old pages, or significantly restructure your site. For frequently updated blogs, regenerating weekly or monthly is a good practice.

Complete your SEO toolkit

Pair your sitemap with these tools for a full technical SEO foundation.