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.
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.
Upload Checklist
- Use only canonical URLs that should be discoverable.
- Upload as
/sitemap.xmlwhen 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.
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.