Common sitemap formats include XML, plain text, and RSS/mRSS/Atom feeds. The choice depends on what information you want to provide, how many URLs you have, and how updates are handled. If you have few URLs and only need a list, you can create a text file manually. If you need to include information about images or videos, XML is an option. Sites that already offer feeds can use them to provide recent updates. Creation methods include manual editing, tools, website plugins, and automatic generation from a database. Ongoing maintenance should also be considered.
First, distinguish between navigation for visitors and information for search engines
An HTML sitemap organizes important pages into a hierarchy of links, primarily to help visitors find content. An XML sitemap is designed for search engines and can include URLs and related information. They serve different purposes and should not be treated as the same format simply because both are called “sitemaps.”
Three format types to choose from based on your content needs
In a 2023 overview, yesharris noted that no format is universally better; the choice should depend on the website:
- Plain text: Put one URL on each line and save the file using UTF-8 encoding, without headings, notes, or other content. This suits small websites with relatively few URLs and straightforward content.
- XML: In addition to URLs, extensions can provide information about images, videos, or news. Its syntax is more complex than that of a text file, so it is usually generated using tools.
- RSS/mRSS/Atom: These suit websites that already have feed functionality, but typically cover only recent URLs. For example, a frequently updated blog can use a feed to provide new content and XML to compile a complete URL list.
Match the creation method to your update frequency
- Manual creation: A small number of URLs can be organized in a text editor. If you use a static file, it must also be maintained as content is added or updated.
- Tool-based generation: Tools can reduce manual entry when there are many URLs. For example, a 2021 article by Da Vinci described crawling a website with Screaming Frog and then exporting a sitemap. The free-tier allowances and product limitations mentioned in that article should not be assumed to apply today.
- Plugin-based generation: WordPress sites can use Yoast SEO’s XML sitemap feature to reflect content updates automatically in the sitemap. A 2026 Yoast article also describes this method.
- Database generation: Da Vinci’s 2021 article proposed extracting URLs from a website’s database and automatically generating XML to reduce manual work after URLs are added. This is the author’s recommended method, not a requirement for every website.
If you choose XML, understand its fields and why you might use multiple files
In XML, urlset encloses the entire list, and each url entry uses loc to specify the full canonical URL. The optional lastmod field indicates when the content last received a meaningful update. According to Yoast’s 2026 explanation, Google does not use priority to determine content priority, so setting a high value should not be treated as a way to increase crawling priority.
If a website has multiple sitemaps, they can be grouped by content type, such as posts or products, and compiled in a sitemap index. The index lists the sitemap files, rather than listing individual page URLs again.
Sitemap formats and creation methods: perspectives from across the web
Which technical details are easy to overlook when creating an XML sitemap?
The file should use UTF-8 encoding, specify the correct XML namespace, and properly escape special characters. Each loc should contain a full URL, including the protocol, with preference given to indexable canonical URLs. After generating the file, check that it is accessible, that its syntax is valid, and that the list contains no URLs that redirect or return errors.
Do lastmod, changefreq, and priority all need to be filled in?
These fields are all optional. Semrush notes that Google can use consistently accurate lastmod values. Only include this field if you can reliably record when meaningful content updates actually occur. Although the sitemap protocol supports changefreq and priority, Google generally ignores them, so maintaining these two values offers limited benefit.
Is there a size limit for a single sitemap when you have many URLs?
A single sitemap can contain up to 50,000 URLs, and its uncompressed size should be less than 50 MB. If these limits are exceeded, it can be split into multiple files, with each file listed in a sitemap index. Even if the limits have not been reached, websites with multiple sitemaps can group them by content type, such as pages, posts, or products, to make the files easier to organize and discover.
References
- Sitemap是什麼?免費網站地圖產生器、Sitemap範例一次掌握!welly.tw · 2021-12-23T03:08:55.293Z — Source used in the article above.
- XML Sitemap: What It Is And How To Generate Onewww.semrush.com · 2015-08-14T15:16:00Z — Discusses: Which technical details are easy to overlook when creating an XML sitemap?; Do lastmod, changefreq, and priority all need to be filled in?
- What is an XML sitemap and why should you have one?yoast.com · 2026-03-11T13:52:01+00:00 — Discusses: Is there a size limit for a single sitemap when you have many URLs?
- Sitemap是什麼?一次搞懂網站地圖提交www.da-vinci.com.tw · 2021-08-17T20:33:00+08:00 — Source used in the article above.
- Sitemap網站地圖是什麼?對SEO有幫助嗎?www.yesharris.com · 2023-10-03T20:27:36+08:00 — Source used in the article above.



