Unicode Converter
Convert text to Unicode code points and back. Inspect UTF-8/UTF-16 bytes.
Unicode Converter & Character Inspector — ถอดรหัสตัวอักษรใดก็ตามเป็น code point และ escape sequence
Unicode คือมาตรฐานสากลที่ทำให้ข้อความนานาชาติ, emoji, สัญลักษณ์ทางคณิตศาสตร์ และทุกระบบการเขียนบนโลกทำงานได้อย่างสม่ำเสมอในซอฟต์แวร์ทั้งหมด แต่การทำงานกับ Unicode ในโค้ดมักต้องรู้ code point แน่นอน (U+XXXX), ลำดับ byte UTF-8 หรือรูปแบบ escape ที่ถูกต้องสำหรับภาษาโปรแกรมของคุณ เครื่องมือนี้ครอบคลุม workflow ทั้งสาม: การแปลงข้อความเป็น Unicode code point, ถอดรหัส code point กลับเป็นข้อความ และตรวจสอบรายละเอียดทั้งหมดของทุกตัวอักษร
ในโหมด Text → Unicode ให้พิมพ์หรือวางข้อความใดก็ตาม และเครื่องมือจะแสดง Unicode code point ของแต่ละตัวอักษรในรูปแบบ U+XXXX ทันที พร้อมกับค่าทศนิยม, ลำดับ byte UTF-8 และหมวดหมู่ Unicode block เปลี่ยนรูปแบบ escape โดยใช้ปุ่มเพื่อรับ JavaScript (\u{XXXX}), CSS (\XXXX), HTML (&#xXXXX;) หรือ Python (\uXXXX) escape sequence พร้อมสำหรับการคัดลอก ในโหมด Unicode → Text ป้อน code point คั่นด้วยช่องว่างหรือคอมมาในรูปแบบใดก็ได้ (U+0041, 0041 หรือแค่ 41) และถอดรหัสกลับเป็นตัวอักษรที่อ่านได้
นักพัฒนาที่ทำงานด้าน internationalisation (i18n) ใช้เพื่อยืนยันว่า string มีตัวอักษร Unicode ที่ถูกต้องและไม่ใช่ตัวที่หน้าตาคล้ายกันจาก block อื่น — แหล่งที่มาของ bug ทั่วไปเมื่อคัดลอกข้อความจาก PDF หรือเอกสาร นักวิจัยด้านความปลอดภัยใช้เพื่อตรวจสอบการโจมตีแบบ homoglyph ที่ใช้ตัวอักษรที่มีลักษณะคล้ายกันจาก Unicode block ต่างๆ เพื่อสร้าง URL หรือชื่อผู้ใช้ที่หลอกลวง นักพัฒนา front-end ใช้เพื่อรับค่า CSS content ที่ถูกต้องสำหรับการแทรกตัวอักษรพิเศษใน pseudo-element นักพัฒนา Python และ JavaScript ใช้เมื่อต้องการฝัง non-ASCII character ในซอร์สโค้ดอย่างปลอดภัยโดยไม่ขึ้นกับ encoding ของไฟล์
วิศวกรซอฟต์แวร์ใช้เมื่อ debug ปัญหา encoding ที่ตัวอักษรแสดงผลผิดเพราะสมมติฐาน UTF-8/UTF-16 ที่ไม่ถูกต้อง ผู้เชี่ยวชาญด้าน localisation ใช้เพื่อยืนยันว่าข้อความที่แปลแล้วมีตัวอักษรที่ encode อย่างถูกต้องสำหรับภาษาเป้าหมาย นักพัฒนาเว็บใช้เพื่อรับ HTML entity หรือ CSS escape code สำหรับสัญลักษณ์พิเศษอย่างลูกศร, สัญลักษณ์สกุลเงิน หรือตัวดำเนินการทางคณิตศาสตร์ที่ต้องการใช้โดยไม่ขึ้นกับ font
การวิเคราะห์และแปลง Unicode ทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณโดยใช้ string API ในตัวของ JavaScript — ไม่มีการส่ง input ข้อความหรือข้อมูลตัวอักษรไปยังเซิร์ฟเวอร์ใดๆ
คำถามที่พบบ่อย
- What is a Unicode code point?
- A Unicode code point is a unique number assigned to every character in the Unicode standard. It is written as U+XXXX (e.g., U+0041 for 'A'). There are over 1.1 million possible code points.
- How do I convert Unicode code points back to text?
- Switch to 'Unicode → Text' mode and enter code points separated by spaces or commas. You can use U+0041, 0041, or just 41 — the tool accepts all formats.
- What escape formats are supported?
- The tool outputs JavaScript (\u{XXXX}), CSS (\XXXX), HTML (&#xXXXX;), and Python (\uXXXX or \UXXXXXXXX) escape sequences. Select the format with the buttons next to the Escaped field.
- What does the character inspector show?
- For each character in your text, the inspector shows the glyph, Unicode code point (U+XXXX), decimal value, UTF-8 byte sequence (hex), and Unicode block/category.
- Does this support emoji and non-BMP characters?
- Yes. The tool handles the full Unicode range including emoji, CJK characters, Devanagari, Arabic, and supplementary plane characters (U+10000 and above) using JavaScript's codePointAt API.
เครื่องมือที่เกี่ยวข้อง
- 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