เข้ารหัสข้อความเป็น HTML entities หรือถอดรหัส entities กลับเป็นข้อความ ปลอดภัยกับ UTF-8 และทำงานฝั่งไคลเอนต์
วิธีใช้ HTML Encoder
วางข้อความหรือ HTML ของคุณ
เลือก Encode (escape ตัวพิเศษ HTML), Encode all (รวมถึง escape ตัวอักษรที่ไม่ใช่ ASCII) หรือ Decode
คัดลอกผลลัพธ์
An HTML entity encoder and decoder for escaping special characters so they display as text instead of being interpreted as markup. It converts characters like < and & into entities such as < and &, and decodes them back again.
Encoding and decoding are UTF-8 safe and run entirely in your browser, so nothing you paste is uploaded.
Encoding always escapes the five characters that have special meaning in HTML: & < > " and '. That is what stops a stray < from being read as the start of a tag, or text from accidentally breaking out of an attribute.
An Encode all option additionally turns every non-ASCII character into a numeric entity, which is useful for legacy systems, some email pipelines, or anywhere you need to be sure the output is pure ASCII.
Decoding understands all three entity forms: named entities like & and ©, decimal entities like é, and hexadecimal entities like €. Sequences it does not recognize are left untouched rather than mangled.
Escaping the HTML specials is the core defense against HTML injection and cross-site scripting (XSS): any untrusted text should be encoded before it is placed into a page, so it renders as harmless characters instead of active markup.
คำถามที่พบบ่อย
Encode escape เฉพาะห้าอักขระที่ต้อง escape ใน HTML (& < > " ') Encode all ยังแปลงทุกอักขระที่ไม่ใช่ ASCII เป็น numeric entity ด้วย ซึ่งมีประโยชน์สำหรับระบบเดิมหรืออีเมล
Named entities เช่น & และ ©, decimal entities เช่น é, และ hexadecimal entities เช่น € ลำดับที่ไม่รู้จักจะไม่เปลี่ยนแปลง
การเข้ารหัสตัวพิเศษ HTML เป็นการป้องกันหลักต่อการแทรก markup ควร encode ข้อความที่ไม่น่าเชื่อถือเสมอก่อนวางใน HTML
ฝังเครื่องมือนี้
เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ
<iframe src="https://monu.tools/embed/th/html-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 พร้อมตรวจจับทิศทางอัตโนมัติ
เข้ารหัสและถอดรหัสแบบเปอร์เซ็นต์สำหรับ URL และส่วนประกอบ URL ปลอดภัยกับ UTF-8
ถอดรหัส JSON Web Token เพื่อตรวจสอบส่วนหัวและข้อมูล พร้อมแสดงเวลาหมดอายุและเวลาออกในรูปแบบที่อ่านได้ ทำงานทั้งหมดในเบราว์เซอร์ของคุณ ไม่มีการอัปโหลด token
สร้างแฮช SHA-1, SHA-256, SHA-384 และ SHA-512 ของข้อความใดก็ได้ ในเบราว์เซอร์ของคุณ