SEO
sitemap.xml Validator
ตรวจสอบ sitemap.xml — ฟิลด์ที่จำเป็น รูปแบบวันที่ ข้อจำกัดของ sitemaps.org URL ที่ซ้ำกัน
หากระบุเฉพาะโดเมน ระบบจะเติม /sitemap.xml ให้ (เป็นธรรมเนียมทั่วไป แต่ไม่ใช่มาตรฐาน — sitemap จริงอาจอยู่ที่อื่น) อาจใช้ไม่ได้กับทุกเว็บไซต์ — บางเว็บไซต์บล็อกคำขอข้ามโดเมน (CORS) หากโหลดไม่สำเร็จ ให้เปิด sitemap.xml ในแท็บใหม่แล้ววางเนื้อหาด้วยตนเอง
Search engines reject a sitemap.xml that doesn't match the sitemaps.org spec — even one invalid date or an exceeded limit can stop the whole file from being processed. This tool checks required fields, date formats, size limits, and duplicate URLs.
How to use it
- Paste the contents of sitemap.xml and required tags (<loc>, valid <lastmod>) are checked instantly.
- Duplicate URLs are detected automatically and flagged separately from other errors.
- The tool checks the file against the sitemaps.org limits: no more than 50,000 URLs and 50MB per file.
Common uses
- Checking a sitemap before submitting it to Google Search Console or Bing Webmaster Tools.
- Debugging why Google Search Console reports errors while processing a sitemap.
- Auditing a sitemap generated automatically by a CMS or plugin for duplicates and malformed dates.
Things to keep in mind
The date in <lastmod> must follow the W3C Datetime format (ISO 8601) — search engines simply ignore an arbitrary text date format.
URL order in a sitemap has no meaning under the spec — search engines process entries regardless of their sequence in the file.
บทความเกี่ยวกับเครื่องมือนี้: Sitemap.xml: เหตุใดเครื่องมือค้นหาจึงต้องการแผนผังเว็บไซต์
คำถามที่พบบ่อย
ขนาดสูงสุดหรือจำนวน URL สูงสุดสำหรับไฟล์ sitemap เดียวคือเท่าไร?
ไฟล์ sitemap เดียวสามารถระบุ URL ได้สูงสุด 50,000 รายการ และต้องไม่ใหญ่กว่า 50MB เมื่อไม่บีบอัด — เว็บไซต์ขนาดใหญ่กว่าต้องใช้ไฟล์ดัชนี sitemap ที่อ้างอิงไปยังไฟล์ sitemap ที่เล็กกว่าหลายไฟล์
ทำไม sitemap ของฉันถึงตรวจสอบไม่ผ่านทั้งที่เปิดในเบราว์เซอร์ได้ดี?
ปัญหาทั่วไปได้แก่ การประกาศ namespace ไม่ถูกต้อง รูปแบบวันที่ไม่ถูกต้องใน <lastmod> (ต้องเป็น W3C Datetime) หรือ URL ที่ไม่ตรงกับโดเมนของ sitemap เอง — เบราว์เซอร์จะยังคงแสดงผล XML ดิบแม้จะมีข้อผิดพลาดเหล่านี้
ไฟล์ sitemap ของฉันถูกอัปโหลดไปที่ไหนเพื่อตรวจสอบหรือไม่?
ไม่ การแยกวิเคราะห์และตรวจสอบทั้งหมดทำงานในเบราว์เซอร์ของคุณ ไม่มีการส่งไปยังเซิร์ฟเวอร์
sitemap.xml สามารถบีบอัดด้วย gzip ได้หรือไม่?
ได้ — ข้อกำหนดของ sitemaps.org อนุญาตให้ส่ง sitemap ในรูปแบบ sitemap.xml.gz และขีดจำกัด 50MB จะวัดจากเวอร์ชันที่ไม่บีบอัด เครื่องมือค้นหาจะตรวจจับและคลายการบีบอัดไฟล์ gzip โดยอัตโนมัติ
ฉันจะแจ้ง Google เกี่ยวกับ sitemap ใหม่ของฉันได้อย่างไร?
คุณสามารถเพิ่มคำสั่ง Sitemap: ใน robots.txt หรือส่งโดยตรงผ่าน Google Search Console — ทั้งสองวิธีทำงานอย่างเป็นอิสระจากกันและสามารถใช้พร้อมกันได้