Sitemap.xml Generator
Generate an XML sitemap from a list of URLs.
These defaults are applied to every URL. A blank value omits that tag.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog/getting-started</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/contact</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Save this as sitemap.xml in your site root, then submit its URL in Google Search Console and reference it from your robots.txt.
How to use Sitemap.xml Generator
What this tool does
This sitemap generator turns a plain list of page URLs into a valid XML sitemap
that conforms to the sitemaps.org 0.9 protocol — the format Google, Bing, and
other search engines expect. You paste your URLs one per line, choose global
defaults for change frequency, priority, and last-modified date, and the tool
produces a properly structured <urlset> document with one <url> block per
page. You can copy the result or download it as sitemap.xml, ready to upload
to your site.
The generator validates every line as you type. Blank lines are skipped, exact
duplicates are removed, and any line that is not a valid http or https URL
is flagged inline with its line number and a running count, so you can fix
typos before publishing. All user-supplied text is XML-escaped, meaning
characters such as &, <, and > in a URL become &, <, and >
— a quiet but important step, because an unescaped ampersand produces a sitemap
that search engines reject as malformed.
Why it matters for SEO
A sitemap is a discovery aid. Search engines find most pages by following links, but pages that are buried deep in the site structure, newly published, or weakly linked can take a long time to be found that way. A sitemap hands the crawler a complete inventory of the URLs you consider worth indexing, which shortens the gap between publishing a page and having it appear in search results. For large sites, content-heavy blogs, e-commerce catalogs, and sites with thin internal linking, this can make a measurable difference to coverage.
The single most valuable element in each entry is lastmod. When it is
accurate, crawlers can prioritize re-fetching pages that have genuinely changed
and skip those that have not, using your crawl budget efficiently. The
changefreq and priority tags are weaker signals — Google has said it mostly
disregards them — so treat them as optional metadata rather than ranking levers.
What a sitemap does not do is guarantee indexing: each URL is still evaluated
on quality and relevance. A sitemap gets pages seen, not ranked.
How to use it
- Paste your page URLs into the box, one per line. Use absolute URLs that begin
with
http://orhttps://. - Review the validation panel — any invalid line is listed with its number so you can correct it. Blank lines and duplicates are handled automatically.
- Choose a default change frequency and priority, or leave either unset to omit that tag.
- Optionally set a last-modified date; if set, it is applied to every URL.
- Copy the generated XML or download
sitemap.xml. - Upload the file to your site root, submit its URL in Google Search Console,
and add a
Sitemap:line for it in yourrobots.txt.
SEO best practices
List only canonical, indexable URLs — the exact versions you want in search
results. Exclude pages that are blocked by robots.txt, carry a noindex tag,
redirect elsewhere, or return errors; including them sends mixed signals and
wastes crawl effort. Keep lastmod honest, updating it only when page content
actually changes, because crawlers learn to distrust a sitemap whose dates move
without reason. Stay within the 50,000-URL and 50 MB limits per file, and for
larger sites use a sitemap index. Regenerate and resubmit the sitemap whenever
you publish or remove a batch of pages.
Common mistakes to avoid
A frequent error is including non-canonical or duplicate URLs — trailing-slash
variants, parameterized URLs, or http and https versions of the same page —
which dilutes the signal you are trying to send. Listing redirecting or 404
URLs is equally counterproductive. Another classic mistake is an unescaped
ampersand in a URL, which makes the XML invalid; this tool escapes those for
you, but hand-edited sitemaps often break here. Do not pad the file with every
URL on the site regardless of value, and do not assume a sitemap will rescue
pages that are otherwise un-indexable.
Privacy & your data
This sitemap generator runs entirely in your browser. The URLs you paste and the default settings you select are processed locally by JavaScript — they are never uploaded to a server, never stored between visits, and never logged or tracked. The generated XML exists only in the page until you copy or download it, and it disappears the moment you close the tab. Because nothing leaves your device, the tool is safe to use for staging environments, unreleased sections, or any site map you would rather not share publicly.
Frequently asked questions
Where should the sitemap.xml file go?
What do changefreq and priority actually do?
How many URLs can one sitemap contain?
Does a sitemap guarantee my pages get indexed?
Are the URLs I paste sent anywhere?
Related tools
Robots.txt Generator
Build a robots.txt file with common crawl rules.
Canonical URL Builder
Build canonical URL tags to avoid duplicate content.
Hreflang Tag Generator
Generate hreflang tags for multilingual SEO.
URL Parser
Break a URL into its component parts.
Meta Tag Generator
Generate SEO meta title, description, and keyword tags.
Slug Generator
Generate clean, SEO-friendly URL slugs.