An XML sitemap is a file that lists the pages you want search engines to know about. It will not make a weak page rank, but it helps Google and Bing discover new pages quickly and understand which versions you consider the main ones. If you have a list of URLs, our free Sitemap Generator turns it into a valid sitemap.xml in seconds, with the date, change-frequency and priority options you choose.
This guide explains every control, shows the exact XML that comes out, and covers large sites, odd characters and the mistakes that make a sitemap useless.
What Sitemap Generator does
You give it a list of addresses. It cleans the list, writes one <url> entry for each address inside a standard <urlset>, and shows the result for you to copy or download. If the list is very long, it splits it into several files and adds an index file for you.
It does not find your pages. It will not crawl your site, check that the pages exist or tell you which ones are indexable. You decide what goes in, and a list of URLs can come from your CMS, a spreadsheet export, a crawl or your own notes. It also makes only standard page sitemaps; there are no image, video or news sitemap extensions.
How to use Sitemap Generator, step by step
- Open Sitemap Generator.
- Under "1. Your URLs", choose the Input type: "Full URLs" or "Base URL + paths".
- Paste your addresses, one per line. In the paths mode, fill in the Base URL first, such as
https://example.com. - Under "2. Options", choose Last modified, Change frequency and Priority.
- Check the numbers under the options (URLs, Duplicates removed, Invalid, Files, Total size) and the "Skipped lines" table if one appears.
- In "3. Your sitemap", press Copy or the Download button, which is named after the file, for example "Download sitemap.xml".
- Upload the file to the root of your site and submit it. The steps are in how to submit a sitemap to Google Search Console.
The result updates about 0.3 seconds after you stop typing.
Every option explained
Input type
"Full URLs" expects complete addresses such as https://example.com/about. A line without a scheme, like example.com/about, gets https:// added. "Base URL + paths" is faster for a single site: type the base once, then list only the paths, such as /about and /blog/first-post. A path without a leading slash is resolved against the base URL, so if your base is https://example.com/shop/, then about becomes /shop/about.
What happens to each line
Each line is trimmed and checked. The tool:
- skips blank lines and lines that start with
#, so you can leave notes; - removes the
#fragment, so/about#teambecomes/about; - removes exact duplicates and counts them under "Duplicates removed";
- percent-encodes spaces and non-English characters, so a Bangla slug becomes valid;
- escapes
&,<,>, quotes and apostrophes as XML entities, so a URL such as/search?q=a&b=cis written with&.
Lines it cannot use appear in the "Skipped lines" table, with the reason: "Not a valid URL", "Only http:// and https:// URLs", "Host name has no domain", "Remove the username/password", "Longer than 2,048 characters" or "Enter a valid base URL first". Only the first 200 are shown.
Last modified
Three choices: "Don't include", "Today" (shown with the date) and "Custom date". The chosen date is the same on every URL. Search engines use lastmod only when it has proved trustworthy, so a date stamped on pages that did not change is worse than no date. Use "Custom date" for the day you really updated the content, or leave it out.
"Today" is the date on your own device, in your own time zone, so in Bangladesh it changes at local midnight. If your device's clock or time zone is wrong, so is Today; pick Custom date if the exact day matters.
Change frequency
From "Don't include" through always, hourly, daily, weekly, monthly, yearly and never. Google ignores this value, though other search engines may read it. Leave it empty unless you have a reason.
Priority
"Don't include", "Same for all" (then choose a Priority value from 1.0 down to 0.0) or "By URL depth", which gives the home page 1.0, first-level pages such as /about 0.8, and deeper pages 0.6. Google ignores priority as well. It is harmless, but it is also optional.
Sort URLs alphabetically
A plain A to Z sort of the full addresses. Without it, your lines stay in the order you pasted them.
Where the sitemap files will be uploaded
This box appears only when your list is large enough to be split into several files. It is the folder where you will put them, used for the addresses inside the index file. If you leave it blank, the tool uses your site's address followed by a slash.
What the file looks like
Take this input, in "Base URL + paths" mode with base https://example.com:
/
/about
/blog/eid-gift-ideas
/blog/বাংলা
Set Last modified to "Custom date" with 2026-11-20, Change frequency to "Don't include" and Priority to "By URL depth". The output is:
<?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-20</lastmod>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-11-20</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog/eid-gift-ideas</loc>
<lastmod>2026-11-20</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://example.com/blog/%E0%A6%AC%E0%A6%BE%E0%A6%82%E0%A6%B2%E0%A6%BE</loc>
<lastmod>2026-11-20</lastmod>
<priority>0.6</priority>
</url>
</urlset>
The Bangla word is written as percent-encoded bytes, which is exactly what a browser sends. The Stats row reads 4 URLs, 0 Duplicates removed, 0 Invalid and 1 file.
What it accepts and its limits
- Addresses: only
http://andhttps://, up to 2,048 characters, without a username or password. The host needs a dot, althoughlocalhostis allowed. - One site per sitemap: if your URLs span several hosts, an amber note warns that a sitemap should normally list one host only. Make a separate sitemap for each.
- File size: at most 50,000 URLs per file, and the tool also splits a file before it reaches about 49 MB. When it splits, the files are named
sitemap-1.xml,sitemap-2.xmland so on, andsitemap.xmlbecomes the index. The Files figure then reads something like "3 + index", and a File menu lets you preview each one. - Preview: the text box shows the first 100,000 characters of a very large file, with a note. Copy and Download always give the full file.
- No URLs: the box stays empty and says "Add some URLs to generate the sitemap."
Privacy
The Sitemap Generator runs in your browser. Your URL list is not uploaded or stored, and the tool makes no request to the sites you list. That means it never checks whether a page really exists, which is why the validation step below matters.
Tips to work faster
- Export your page list from the CMS or a spreadsheet and paste a whole column at once.
- Put only pages you want indexed in the list: real addresses that open with HTTP 200, not redirects or error pages.
- Use the exact version of your address, with the same
httpsandwwwchoice as your live site. - If your site has ten pages, a sitemap is a convenience. If it has thousands, it is a necessity.
- Add the final address to robots.txt with a
Sitemap:line. The Robots.txt Generator has a "Sitemap URLs" box for this.
Common problems and how to fix them
Lines show up under "Skipped lines"
Read the reason next to each one. "Host name has no domain" usually means a typo such as https://examplecom/about. "Not a valid URL" often means a space or stray character in the line.
"Your URLs span 2 hosts"
The list contains both example.com and www.example.com, or a second domain. Keep only the host that is your canonical one.
The count is lower than the lines you pasted
Duplicates and #fragment copies were merged. Check the Duplicates removed figure.
Search Console cannot read the file
Check the file with the XML Sitemap Validator after uploading it, and see sitemap "couldn't fetch" in Search Console for causes.
Related tools
- XML Sitemap Validator: check the uploaded file for XML errors and bad dates.
- Robots.txt Generator: add a Sitemap line to your robots.txt.
- Meta Tag Checker: confirm a page you list is not marked noindex.
- SEO Tools: the rest of our SEO utilities.
Quick checklist
- List only canonical, working, indexable pages.
- Use one host and one protocol.
- Use an honest lastmod, or none.
- Upload to the root, add it to robots.txt, validate, then submit.



