DevToolBoxฟรี
บล็อก
Ad Space

ตัวเข้ารหัส / ถอดรหัส URL

เข้ารหัสหรือถอดรหัส URL และคอมโพเนนต์ URI รองรับ encodeURIComponent และ encodeURI

เกี่ยวกับการเข้ารหัส URL

การเข้ารหัส URL จะแทนที่อักขระ ASCII ที่ไม่ปลอดภัยด้วย "%" ตามด้วยเลขฐานสิบหก 2 ตัว สิ่งนี้จำเป็นสำหรับการส่งอักขระพิเศษใน URL พารามิเตอร์ query และข้อมูลฟอร์ม ใช้ encodeURIComponent สำหรับพารามิเตอร์ query และ encodeURI สำหรับ URL เต็มรูปแบบ

Ad Space

วิธีใช้งาน

  1. Enter text in the input field
  2. Choose between URI Component or Full URI encoding mode
  3. Click 'Encode' or 'Decode'
  4. Copy the result

กรณีการใช้งาน

  • Encoding query parameters in URLs
  • Encoding form data for submission
  • Handling special characters in API requests
  • Debugging URL encoding issues

คำถามที่พบบ่อย

Ad Space