XML Sitemap Generator
Create an XML sitemap with URLs, priorities, and change frequencies.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-06-20</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-06-20</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2026-06-20</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
</urlset>Upload to https://yourdomain.com/sitemap.xml and submit in Google Search Console.
Sitemap Generator ทำงานอย่างไร
Sitemap generator สร้าง XML sitemap ที่ถูกต้องตามโปรโตคอล sitemaps.org เพิ่ม URL ของคุณ กำหนดวันที่ lastmod ค่า changefreq และคะแนน priority — จากนั้นดาวน์โหลด sitemap.xml ที่พร้อมอัปโหลดไปยัง server root ของคุณและส่งให้ Google Search Console, Bing Webmaster Tools และ search engine อื่นๆ ไม่ต้องเขียนโค้ด
XML sitemap ใช้ schema ที่เข้มงวด: root element เป็น urlset ที่มี xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" ประกอบด้วย url elements แต่ละอันที่มี loc tag ที่จำเป็น (URL ของหน้า) และ optional lastmod (วันที่แบบ ISO 8601), changefreq (always/hourly/daily/weekly/monthly/yearly/never) และ priority (0.0–1.0) Generator จะตรวจสอบ input ทั้งหมดกับ schema นี้ก่อนสร้างไฟล์ output
Priority บอกความสำคัญสัมพัทธ์ของหน้าภายในไซต์ของคุณ — ไม่ได้ส่งผลต่อการจัดอันดับเมื่อเทียบกับไซต์อื่น กำหนด homepage เป็น 1.0 หน้า category หลักเป็น 0.8 และบทความหรือผลิตภัณฑ์แต่ละชิ้นเป็น 0.5-0.6 Changefreq เป็นเพียงคำแนะนำ ไม่ใช่การรับประกัน — Google crawl ตามตารางของตัวเอง ใช้ daily สำหรับข่าวหรือหน้าที่อัปเดตบ่อย weekly สำหรับบล็อกโพสต์ monthly สำหรับเนื้อหา evergreen และ yearly สำหรับหน้า terms และ privacy
โปรโตคอล sitemap ของ Google จำกัดแต่ละไฟล์ที่ 50,000 URL และขนาดไฟล์สูงสุด 50 MB เมื่อไม่ได้บีบอัด ไซต์ขนาดใหญ่แบ่ง URL ออกเป็นหลายไฟล์ sitemap ที่อ้างอิงโดยไฟล์ sitemap index (รูปแบบ XML ของ sitemapindex) Generator จัดการเรื่องนี้โดยอัตโนมัติ — เมื่อจำนวน URL เกิน 500 รายการ (เกณฑ์ในทางปฏิบัติสำหรับการจัดการด้วยตนเอง) จะแบ่งออกเป็นไฟล์ sitemap ที่มีหมายเลขและสร้างไฟล์ index ที่อ้างอิงทั้งหมด
หลังจากอัปโหลด sitemap.xml ไปยัง domain root ให้ส่ง URL (https://yourdomain.com/sitemap.xml) ใน Google Search Console ใต้ Indexing → Sitemaps Google จะดึง sitemap ใหม่เป็นระยะเพื่อค้นพบ URL ใหม่หรือที่อัปเดต คุณยังสามารถเพิ่ม sitemap URL ลงในไฟล์ robots.txt ของคุณ (Sitemap: https://yourdomain.com/sitemap.xml) เพื่อให้ crawler ทั้งหมดที่ปฏิบัติตาม robots.txt พบมันโดยอัตโนมัติโดยไม่ต้องส่งด้วยตนเอง
คำถามที่พบบ่อย
- What is an XML sitemap?
- An XML sitemap is a file that lists all the important URLs on your website, along with metadata like last modified date, change frequency, and priority. It helps search engines discover and crawl all your pages efficiently.
- How do I submit a sitemap to Google?
- Go to Google Search Console → Sitemaps → enter your sitemap URL (e.g. https://yourdomain.com/sitemap.xml) → Submit. Google will crawl and index the sitemap within a few days.
- What should I set for priority?
- Priority (0.0–1.0) indicates the relative importance of URLs within your site. Homepage: 1.0, main category pages: 0.8, blog posts: 0.6–0.7, utility pages: 0.4–0.5. Note: Google treats priority as a hint, not a directive.
- What is changefreq?
- changefreq is a hint to crawlers about how often the page content changes. Values: always, hourly, daily, weekly, monthly, yearly, never. Google uses it as a hint but determines actual crawl frequency based on its own signals.
- Do I need a sitemap if my site is small?
- Sitemaps are most beneficial for large sites (500+ pages), sites with complex navigation, new sites with few external links, or sites with rich media content. Small sites with good internal linking usually get crawled fine without one.
เครื่องมือที่เกี่ยวข้อง
- UTM Builder — Free UTM Link Generator with QR Code
Free UTM link builder with QR code, campaign presets, and URL history. Generate GA4-ready tracking URLs for Google Ads, Facebook, Email, LinkedIn & more — instantly, no sign-up.
- Schema Markup Generator
Generate JSON-LD schema markup for Article, Product, FAQ, and more.
- Meta Tag Preview
Preview how your page looks in Google Search and social shares.
- robots.txt Generator
Generate a robots.txt file with bot blocking and sitemap URL.
- Keyword Density Checker
Analyse keyword frequency and density for any text.