Text to Slug Generator
Convert any title or text into a clean, SEO-friendly URL slug.
อะไรทำให้ URL slug ดี?
แนวทางปฏิบัติที่ดีที่สุดสำหรับ slug
Hyphen vs underscore: ควรใช้อะไร?
URL slug ที่ออกแบบมาอย่างดีช่วยปรับปรุงทั้ง SEO และประสบการณ์ผู้ใช้ search engine อ่าน slug เป็นสัญญาณที่แข็งแกร่งเกี่ยวกับเนื้อหาหน้า และ slug ที่อธิบายได้ดีได้รับอัตราคลิกสูงขึ้นในผลการค้นหาเพราะผู้ใช้เข้าใจหัวข้อหน้าก่อนคลิก
สำหรับ URL สาธารณะและบล็อกโพสต์ ให้ใช้ hyphen (-) เสมอ Hyphen เป็นมาตรฐานสำหรับ URL เว็บและ search engine รู้จักเป็นตัวคั่นคำ Underscore เหมาะสำหรับ identifier ทางเทคนิคภายใน (field ในฐานข้อมูล, query parameter ของ API) ที่ SEO ไม่ใช่ข้อกังวล
นักเขียนบล็อกแปลงชื่อโพสต์เป็น slug ก่อนเผยแพร่บน WordPress, Ghost หรือ Webflow นักพัฒนาสร้าง slug สำหรับ URL แค็ตตาล็อกสินค้าใน e-commerce platform อย่าง Shopify บรรณาธิการ CMS ใช้สร้าง URL หมวดหมู่และ tag ที่สะอาด ทีม localization แปลงชื่อหน้าที่แปลแล้วเป็น URL-safe slug สำหรับเว็บไซต์หลายภาษา นักออกแบบ API สร้าง slug จากชื่อที่ผู้ใช้ส่งมาเพื่อสร้าง resource identifier ที่ไม่ซ้ำและแชร์ได้
เมื่อ URL ถูก index แล้ว การเปลี่ยน slug จะทำลายลิงก์ที่มีอยู่และอาจทำให้อันดับลดลง หากต้องเปลี่ยน slug ให้ตั้ง 301 permanent redirect จาก URL เก่าไปยัง URL ใหม่ หากไม่มี redirect ลิงก์ขาเข้าและ search equity ทั้งหมดจาก URL เก่าจะสูญหาย แนวทางปฏิบัติที่ดีที่สุด: เลือก slug สุดท้ายก่อนหน้าเว็บไซต์จะเปิดตัวและถือว่าถาวร ใช้เครื่องมือนี้เมื่อวางแผน slug ล่วงหน้าก่อนเผยแพร่
อักขระที่มีสำเนียง (é, ü, ñ, ō) และอักษรที่ไม่ใช่ ASCII (Devanagari, จีน, อาหรับ) ต้องจัดการอย่างระมัดระวังใน slug เครื่องมือนี้ใช้ Unicode NFD normalisation เพื่อแยกอักขระที่มีสำเนียงออกเป็นตัวอักษรพื้นฐาน — ดังนั้น 'café' กลายเป็น 'cafe' อักษรที่ไม่ใช่ Latin จะถูกลบออกเนื่องจากเซิร์ฟเวอร์เว็บและ CMS platform ส่วนใหญ่คาดหวัง ASCII slug หากคุณต้องการ Unicode slug (ทั่วไปสำหรับเนื้อหาภาษาฮินดีหรือภาษาภูมิภาค) ให้ตรวจสอบว่าเซิร์ฟเวอร์และ CMS ของคุณรองรับ URL แบบ encoded
- ใช้ตัวพิมพ์เล็กเท่านั้น
- คั่นคำด้วย hyphen (ไม่ใช่ underscore)
- ลบอักขระพิเศษและเครื่องหมายวรรคตอน
- ให้ไม่เกิน 60 ตัวอักษร
- รวม keyword หลัก
- ลบ stop word ที่ไม่จำเป็น (a, an, the, and, or, but)
- หลีกเลี่ยงวันที่ยกเว้นเนื้อหาขึ้นอยู่กับเวลา
คำถามที่พบบ่อย
- What is a URL slug?
- A URL slug is the part of a URL that identifies a specific page in a human-readable way. For example, in the URL example.com/blog/how-to-build-great-products, the slug is 'how-to-build-great-products'. Slugs are lowercase, use hyphens instead of spaces, and contain only alphanumeric characters.
- Why do slugs use hyphens instead of spaces or underscores?
- Google's John Mueller has confirmed that hyphens are treated as word separators in URLs, making individual words identifiable by search engines. Underscores are treated as word joiners (combining words into one). Spaces are percent-encoded (%20) which is less readable. Hyphens are the SEO-recommended separator for most CMS platforms including WordPress, Ghost, and Shopify.
- How long should a URL slug be?
- There is no hard limit, but SEO best practice is to keep slugs under 60 characters. Shorter, more descriptive slugs tend to rank better and are easier to share. Remove stop words like 'a', 'an', 'the', 'and', 'or' to keep slugs concise without losing meaning.
- Should I use lowercase for URL slugs?
- Yes — always use lowercase for URL slugs. Mixed-case URLs can cause duplicate content issues if the server treats /Blog/Post and /blog/post as the same page but Google indexes them as separate URLs. Most web servers and CMS platforms enforce lowercase slugs by default.
- What happens to special characters in slugs?
- Characters outside the safe URL set (letters, digits, hyphens, underscores) should be removed or replaced. Accented characters (é, ü, ñ) are first normalized to their base ASCII equivalent (e, u, n) using Unicode normalization (NFD decomposition). Punctuation, symbols, and non-Latin scripts are stripped out.
เครื่องมือที่เกี่ยวข้อง
- JSON Formatter, Validator & Repair Tool
Format, minify, validate, and repair JSON instantly in your browser. Sort keys alphabetically, auto-format on paste, download as file, escape/unescape strings — free, no sign-up, 100% client-side.
- ตัวสร้าง QR Code
สร้าง QR code สำหรับ URL ข้อความ Wi-Fi และอื่นๆ ดาวน์โหลดเป็น PNG
- ตัวสร้างรหัสผ่าน
สร้างรหัสผ่านสุ่มที่แข็งแกร่งด้วยความยาวและชุดอักขระที่กำหนดเอง
- Base64 เข้ารหัส / ถอดรหัส
เข้ารหัสข้อความเป็น Base64 หรือถอดรหัสกลับเป็นข้อความธรรมดา
- URL เข้ารหัส / ถอดรหัส
เข้ารหัสหรือถอดรหัส URL และ query strings ด้วย percent-encoding