Skip to content
GENERATORS

XML Sitemap Generator Online

Generate XML sitemap markup from a list of URLs.

  • Free
  • No signup
  • Runs in your browser

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

XML Sitemap Generator

About XML Sitemap Generator

An XML sitemap lists the URLs of your site so search engines can find and crawl them. Paste your URLs, one per line, and the tool wraps each one in a url and loc element inside a urlset that uses the standard sitemaps.org namespace.

It is ideal for small sites, static pages and tutorials. A single sitemap file can hold up to 50,000 URLs or 50 MB uncompressed. For larger sites or WordPress, let a plugin such as Yoast SEO or Rank Math maintain the sitemap automatically.

How to use XML Sitemap Generator

  1. Paste your full URLs, one per line, into the input box.
  2. Click Run Tool to generate the XML.
  3. Save it as sitemap.xml at your site root and submit it in Google Search Console.

Example

Input

https://nhplearning.com/
https://nhplearning.com/developer-tools/
https://nhplearning.com/developer-tools/json-formatter-validator/

Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://nhplearning.com/</loc></url>
  <url><loc>https://nhplearning.com/developer-tools/</loc></url>
  <url><loc>https://nhplearning.com/developer-tools/json-formatter-validator/</loc></url>
</urlset>

Common uses

  • Creating a sitemap for a static HTML website.
  • Making a sitemap for a new section such as a tools or tutorials directory.
  • Learning what a valid sitemap looks like.

Privacy and safety

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Frequently asked questions

Does it add lastmod dates?

No. Only loc entries are generated. Add a lastmod element with a date in YYYY-MM-DD format if you want to signal when a page changed.

Where do I submit the sitemap?

Open Google Search Console, choose Sitemaps, enter the sitemap URL and click Submit. You can also add a Sitemap line to robots.txt.

Should every URL be included?

Include only canonical, indexable pages that return a 200 status. Leave out redirected, blocked or noindex URLs.

Learn to build this yourself

Free tutorials and courses on NHP Learning cover PHP, JavaScript, SQL and WordPress, from the basics to real projects.