เข้ารหัสและถอดรหัสแบบเปอร์เซ็นต์สำหรับ URL และส่วนประกอบ URL ปลอดภัยกับ UTF-8
วิธีใช้ เข้ารหัส URL
วางข้อความหรือ URL ของคุณ
เลือกเข้ารหัสหรือถอดรหัส และขอบเขตส่วนประกอบหรือ URL เต็ม
คัดลอกผลลัพธ์
URLs are only allowed to contain a limited set of characters, so anything outside that set, spaces, accented letters, and reserved symbols like & ? / =, has to be escaped. Percent-encoding replaces each such byte with a percent sign and its two-digit hexadecimal value, so a space becomes %20 and an ampersand becomes %26.
This tool encodes text and URLs to percent-encoded form and decodes them back. It is built on the browser's standard encodeURIComponent and encodeURI functions, so the output matches exactly what your own JavaScript would produce, and it is UTF-8 safe for international text.
Encoding and decoding run entirely in your browser, so nothing you paste is sent to a server, which is reassuring when a URL contains tokens or query parameters you would rather not share.
The scope toggle matters. Component mode (encodeURIComponent) escapes reserved characters like & = ? / and is what you want for a single query-string value or path segment. Full-URL mode (encodeURI) leaves the structural characters intact so a complete URL stays usable.
A common mistake is encoding an entire URL with component mode, which escapes the :// and ? and breaks the link. Another is double-encoding, where an already-encoded string is encoded again and %20 turns into %2520. When in doubt, decode first to see the raw value.
There is also a historical quirk in query strings: form submissions encode a space as a plus sign, while percent-encoding uses %20. Both are seen in the wild, so decoders generally accept either.
คำถามที่พบบ่อย
'ส่วนประกอบ' (encodeURIComponent) หลีกอักขระสงวนอย่าง & = ? / สำหรับค่าคิวรี 'URL เต็ม' (encodeURI) คงโครงสร้าง URL ไว้
ลำดับเปอร์เซ็นต์ที่ผิดรูป (เช่น % โดดๆ) ถอดรหัสไม่ได้ ตรวจสอบข้อมูลหรือเข้ารหัสใหม่ก่อน
ฝังเครื่องมือนี้
เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ
<iframe src="https://monu.tools/embed/th/url-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>เครื่องมือที่เกี่ยวข้อง
เข้ารหัสข้อความเป็น Base64 หรือถอดรหัส Base64 กลับเป็นข้อความ ปลอดภัยกับ UTF-8 พร้อมตรวจจับทิศทางอัตโนมัติ
ถอดรหัส JSON Web Token เพื่อตรวจสอบส่วนหัวและข้อมูล พร้อมแสดงเวลาหมดอายุและเวลาออกในรูปแบบที่อ่านได้ ทำงานทั้งหมดในเบราว์เซอร์ของคุณ ไม่มีการอัปโหลด token
สร้างแฮช SHA-1, SHA-256, SHA-384 และ SHA-512 ของข้อความใดก็ได้ ในเบราว์เซอร์ของคุณ
สร้าง HMAC สำหรับข้อความและคีย์ความลับโดยใช้ SHA-1, SHA-256, SHA-384 หรือ SHA-512 ในเบราว์เซอร์ของคุณ