Skip to main content
ASFIT Tools
Free XML SEO Tool

Sitemap Generator Online

Use this free Sitemap Generator to create XML sitemap code from website URLs, add optional lastmod, changefreq, and priority data, then copy or download a sitemap.xml file. It is useful for bloggers, SEO users, static websites, developers, ecommerce sites, and website owners.

Quick Answer: What Is a Sitemap?

A sitemap is a file that lists important URLs on a website so search engines can discover pages, videos, images, and other files more easily. An XML sitemap is mainly used for search engines, while an HTML sitemap is usually made for visitors.

Build Your XML Sitemap

Enter one URL or paste a full list, then generate XML, TXT, HTML, or a robots.txt sitemap line.

Browser Based
Used for sample URLs and the robots.txt sitemap line.
Paste one full canonical URL per line. This tool does not crawl websites automatically.

Add URLs or use sample URLs to begin.

URL Lastmod Changefreq Priority Action
No URLs added yet.

Privacy note: This Sitemap Generator runs in your browser. ASFIT Tools does not upload, save, or store your URLs.

Generated Sitemap Results

Review XML, TXT, HTML, or robots.txt sitemap output before uploading.


                                
Total URLs0
Duplicates0
Invalid URLs0
FormatXML
Ready Add URLs and generate your sitemap.

Upload Checklist

  • Use only canonical URLs that should be discoverable.
  • Upload as /sitemap.xml when possible.
  • Add the sitemap URL inside robots.txt.
  • Review XML before uploading it to your server.

Sitemap Checker

Paste sitemap XML to check basic structure, URL count, missing loc tags, and common warnings.

Checker ready Paste XML sitemap code and run a basic check.

How to Use This Sitemap Generator

1. Paste URLs

Paste or enter your website URLs into the tool.

2. Use one URL per line

Use one full URL per line when adding bulk URLs.

3. Add optional data

Add lastmod, changefreq, or priority values if needed.

4. Generate XML

Click Generate Sitemap and review the XML output.

5. Copy or download

Copy or download the sitemap.xml file.

6. Upload and submit

Upload it to your website and submit it in Google Search Console if needed.

What Is a Sitemap Generator?

A sitemap generator creates sitemap code from URLs so website owners can create an XML sitemap without writing XML manually. This tool is a manual URL sitemap builder, so it converts the URLs you enter instead of crawling your whole website automatically.

XML Sitemap vs HTML Sitemap vs Visual Sitemap

Sitemap Type Purpose Best Use
XML Sitemap Lists URLs for search engines. Best for crawl discovery.
HTML Sitemap Lists pages for website visitors. Best for navigation.
Visual Sitemap Shows site structure visually. Best for planning and design.
Sitemap Index Lists multiple sitemap files. Best for large websites.

Sitemap XML Tags Explained

XML Tag Meaning Example
<urlset> Main sitemap container. <urlset xmlns="...">
<url> One page entry. <url>...</url>
<loc> Page URL. <loc>https://yourdomain.com/page/</loc>
<lastmod> Last modified date. <lastmod>2026-06-16</lastmod>
<changefreq> Suggested change frequency. <changefreq>weekly</changefreq>
<priority> Relative URL priority. <priority>0.8</priority>

Sitemap Example

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://yourdomain.com/</loc>
    <lastmod>2026-06-16</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
</urlset>

Sitemap Best Practices

  • Include only canonical URLs.
  • Use full absolute URLs.
  • Keep URLs clean and indexable.
  • Do not include blocked or noindex pages.
  • Add important pages first.
  • Keep sitemap URLs updated.
  • Use accurate lastmod dates.
  • Submit the sitemap in Google Search Console when needed.
  • Add the sitemap URL in robots.txt.
  • Use a sitemap index for large websites.

For official details, read Google sitemap submission guidance.

Where to Upload a Sitemap

Most sites place the XML sitemap at a root URL such as https://yourdomain.com/sitemap.xml. You can also reference it inside robots.txt with Sitemap: https://yourdomain.com/sitemap.xml.

Sitemap and Robots.txt

A sitemap can be listed inside robots.txt so crawlers can discover it. You can create that line with the Robots.txt Generator after downloading your sitemap XML.

Important Disclaimer

This Sitemap Generator provides sitemap code for convenience. A sitemap can help search engines discover URLs, but it does not guarantee crawling, indexing, ranking, or traffic. Always review the generated XML before uploading it.

Sitemap Generator FAQs

A Sitemap Generator creates sitemap code from URLs so you can build XML sitemap files more easily.
Enter URLs, choose optional sitemap fields, and generate XML in your browser.
Yes. This tool is free and does not require sign-up.
An XML sitemap is a search-engine-friendly file listing important URLs and optional metadata.
XML sitemaps are mainly for search engines. HTML sitemaps are visible pages for users.
A sitemap is helpful for many sites, especially new, large, or updated websites.
No. A sitemap can support discovery, but it does not guarantee indexing or ranking.
Most websites use a root URL such as https://yourdomain.com/sitemap.xml.
Yes, adding a Sitemap line in robots.txt can help crawlers find the sitemap location.
Yes, you can submit it in Google Search Console if you manage the website property.
Lastmod is an optional date showing when a URL was last changed.
Changefreq is an optional hint about how often a page may change.
Priority is an optional relative importance value from 0.0 to 1.0 within your own website.
No. It creates sitemap code from the URLs you enter manually.