NinjaFunction (Ninja Function) logo

Sitemap.xml Generator

Crawl your website and generate a valid XML sitemap. Edit priority and last modified dates, then download — free, no sign-up.


Enter your website URL

We fetch your site from our server (not your browser) to discover pages. Your URLs are not stored.

About This Tool

NinjaFunction's Sitemap.xml Generator finds the pages on your website and turns them into a valid XML sitemap. Enter your site address and our server crawls the public pages on that domain, up to 500 URLs. Edit lastmod and priority for any URL, preview the XML live, then download the file or copy it. Only the address you enter is sent, and nothing is stored.

🗺️ How to Use

  1. Enter your website's main URL (e.g. https://ninjafunction.com).
  2. Click "Generate Sitemap" — our server crawls your site.
  3. Edit lastmod and priority for any URL in the results table.
  4. Preview the XML live below.
  5. Download sitemap.xml or copy it to your clipboard.
  6. Upload it to your site root and submit it to Google Search Console.

About XML Sitemaps

An XML sitemap is a file that lists the URLs on your website. Search engines use sitemaps as a roadmap to efficiently discover, crawl, and index your content. The sitemap protocol is defined by sitemaps.org and supported by Google, Bing, Yandex, and others.

Required and Optional Tags

Each URL entry requires a <loc> tag containing the full URL. Optional tags include <lastmod> (last modified date), <changefreq> (how often the page changes), and <priority> (relative importance). Google ignores priority and changefreq, but uses lastmod if it's consistently accurate.

Size Limits

A single sitemap can contain at most 50,000 URLs or be 50MB uncompressed, whichever comes first. For larger sites, you must split into multiple sitemap files and reference them from a sitemap index file.

Where to Place It

Place sitemap.xml at your website's root (e.g., https://example.com/sitemap.xml). Reference it in your robots.txt file with a line like Sitemap: https://example.com/sitemap.xml. Then submit it to Google Search Console and Bing Webmaster Tools.

When Do You Need a Sitemap?

  • A new website with few links from other sites.
  • A large site where some pages are hard to reach through links.
  • A site with many pages that change often, such as news or shops.
  • Pages with rich media such as video and images.

Common Sitemap Mistakes

  • Listing URLs that redirect or return an error. Only list live pages that return status 200.
  • Including pages you block in robots.txt or mark noindex. The signals disagree and confuse crawlers.
  • Mixing http and https, or www and non-www. Use the one version that is your main address.
  • Leaving it unchanged for years. Add new pages and remove deleted ones.

After You Upload the File

Open the address in your browser to confirm the file loads, then submit it in Google Search Console under Sitemaps. The report shows how many pages were found and flags errors. It can take days or weeks for all pages to be crawled, and a sitemap does not guarantee that a page will be indexed.

FAQ

What is a sitemap.xml file?

A sitemap.xml file is an XML document that lists all the important URLs on your website. Search engines read it to discover and index your pages more efficiently. It's especially useful for new sites, sites with lots of pages, or sites with poor internal linking.

Do I need a sitemap for SEO?

Google says sitemaps are not required, but they help — especially for large sites, new sites, or sites with rich media content. A sitemap ensures Google can find all your pages and understand their relative importance.

How often should I update my sitemap?

Update it whenever you add, remove, or significantly change pages. If your site changes frequently (like a blog), consider automating sitemap generation as part of your build process.

Is anything sent to a server?

Yes, the website address you enter. To find your pages, our server visits that public site the way a search engine would: it reads robots.txt, follows links on the same domain up to three levels deep and stops at 500 URLs. The list of URLs comes back to your browser, where the XML file is built. We do not keep the address or the results.

Why are some of my pages missing?

The crawler only finds pages that are linked from your start page within three clicks, skips anything blocked in robots.txt, and stops at 500 URLs. Pages that are only reachable through a search box, a login or JavaScript-only links will not be found. Add those to the file in a text editor before you upload it.

Where do I put the sitemap file?

Upload it to the root of your site so it opens at https://yoursite.com/sitemap.xml. Then add a line such as Sitemap: https://yoursite.com/sitemap.xml to your robots.txt and submit the address in Google Search Console.

Always FreeAll tools are 100% free to use.
No Sign UpNo registration or login required.
Blazing FastInstant results, always.