Sitemap Generator
Turn a newline-separated list of page URLs into sitemap XML, refusing anything that is not an absolute http(s) URL.
A sitemap from a list of URLs
A sitemap is an XML document that names the pages a crawler should read. This page takes one URL per line and emits a urlset with a loc and a lastmod for each entry, ready to save as sitemap.xml and serve from the site root.
What counts as a URL
Only absolute http and https addresses are accepted. A bare host such as example.com has no scheme, so it is refused rather than being guessed at; a relative path and a mailto address are refused for the same reason. Each refused line is listed with the reason, so a typo is visible instead of silently disappearing from the file. Duplicate lines are collapsed on the normalized address, which is why pasting the same URL twice produces one entry.
Escaping
A URL is data, not markup. An ampersand in a query string is written as & in the XML, and the angle brackets and quotes are escaped the same way, so a URL containing a query parameter cannot break the document. The XML declaration and the sitemap namespace are emitted as fixed text.
What it does not do
It does not check that the URLs resolve, does not fetch them and does not know whether a crawler will accept the file. It also does not decide which pages belong in a sitemap; that is an editorial choice. Copy the result or download it as sitemap.xml, and serve it yourself.
Paste one page URL per line and the page emits sitemap XML: a urlset with a loc and a today-dated lastmod for each entry, ready to save as sitemap.xml and serve from the site root.
Only absolute http and https addresses are kept. A bare host has no scheme, and a relative path or a mailto address is refused for the same reason, with each refused line listed beside the reason so a typo is visible rather than silently missing.
Duplicate lines are collapsed on the normalised address. A URL is data rather than markup, so an ampersand in a query string is escaped in the XML and cannot break the document.
What becomes an entry
Each accepted line becomes one url element. The location is written as the browser normalised it, so an added trailing slash is visible in the output rather than hidden. Today's date is used for every lastmod because the page has no idea when a page really changed.
Refused lines are counted in the status sentence and listed with their reason. Nothing is guessed: a missing scheme is not filled in, and a non-http protocol is not converted.
- One URL per line, absolute http(s) only
- A loc and a today-dated lastmod per entry
- Duplicates collapsed on the normalised address
What a sitemap cannot decide
The page does not check that a URL resolves, does not fetch it and does not crawl the site. A list of plausible addresses produces a well-formed file that a crawler may still reject because a page returns 404.
Which pages belong in a sitemap is an editorial choice, and a very large site usually needs a generated sitemap index rather than a pasted list. Copy the result or download sitemap.xml and serve it yourself.
How to use the URL list
Paste one absolute http or https URL per line into the input; the page emits the urlset beside it with a loc and a today-dated lastmod per entry. Read the refused lines with their reasons and fix the scheme or address rather than retyping the whole list.
Press Generate the sitemap after a large paste to settle the output, then copy the XML or download sitemap.xml and serve it from the site root. Check each entry resolves before submitting the file, since the page verifies shape rather than reachability.
What to Expect
Best for
- A small static site's page list
- A hand-maintained set of canonical URLs
- Producing XML to paste into a deployment
Not ideal for
- A site with thousands of pages, which needs generation
- Checking that a URL resolves
- An image, news or video sitemap
What this tool keeps
- The URL order you typed, minus duplicates
- The normalised form of each address
- The XML escaping of query strings
What may need cleanup
- The lastmod date, which is today rather than the page's real change
- A URL that resolves to a 404, which the page cannot detect
- A trailing slash added by normalisation
Common errors
- Pasting a bare host and finding it refused
- Expecting a duplicate line to produce two entries
- Assuming the lastmod reflects when the page changed
Example use cases
- A five-page brochure site
- A documentation index
- Preparing a sitemap before a launch
Sample input
Three absolute URLs pasted one per line, with one duplicate line at the end.
Sample output
A urlset with three url entries, each carrying a loc and a today-dated lastmod, and a status line noting one duplicate collapsed.
Who this is for
- Webmasters preparing a launch
- Developers maintaining a small site
- SEO beginners learning sitemap XML
Frequently asked questions
What does the sitemap generator produce?
Sitemap XML with a urlset, one loc and a today-dated lastmod for each pasted URL, ready to save as sitemap.xml.
Does it check that the URLs resolve?
No. It writes the entries from the lines you paste and does not fetch them.
Why is lastmod today?
The date is the day of generation, not the page's real change date.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.