ฐานสิบหกเป็นข้อความ
แปลงการแสดงเลขฐานสิบหกเป็นข้อความได้อย่างง่ายดาย
เครื่องมือแปลง
Enter hexadecimal values to convert to text. Choose between UTF-8 (supports all characters) and ASCII (only 128 characters). Specify if hex values are separated by spaces and whether to ignore invalid characters.
ตารางการแปลง:
Hex Value | Decimal | Character |
---|
เกี่ยวกับการแปลงเลขฐานสิบหกเป็นข้อความ
การเข้ารหัสข้อความ
อักขระข้อความจะแสดงด้วยตัวเลขในคอมพิวเตอร์ ระบบการเข้ารหัสที่แตกต่างกันใช้ตัวเลขที่แตกต่างกันสําหรับอักขระ:
ASCII
The ASCII (American Standard Code for Information Interchange) encoding uses 7 bits to represent 128 characters, including English letters (both uppercase and lowercase), digits, and common punctuation symbols. Each ASCII character can be represented by a unique number between 0 and 127.
UTF-8
UTF-8 เป็นการเข้ารหัสอักขระที่มีความยาวตัวแปรซึ่งสามารถแสดงอักขระทุกตัวในมาตรฐาน Unicode ใช้ 1 ถึง 4 ไบต์ต่ออักขระ UTF-8 เข้ากันได้กับ ASCII แบบย้อนหลัง ซึ่งหมายความว่าอักขระ UTF-8 128 ตัวแรกจะเหมือนกับ ASCII
กระบวนการแปลง
การแปลงเลขฐานสิบหกเป็นข้อความเกี่ยวข้องกับขั้นตอนต่อไปนี้:
- แยกวิเคราะห์อินพุตเลขฐานสิบหกเป็นค่าฐานสิบหกแต่ละค่า โดยพิจารณาว่าคั่นด้วยช่องว่างหรือไม่
- Convert each hexadecimal value to its decimal (base-10) equivalent.
- Convert each decimal value to its corresponding character using the chosen encoding (ASCII or UTF-8).
- รวมอักขระเพื่อสร้างสตริงข้อความสุดท้าย
ตัวอย่าง: แปลงเลขฐานสิบหก "48 69" เป็นข้อความ
ขั้นตอนที่ 1: แยกค่าเลขฐานสิบหก:
48 and 69
ขั้นตอนที่ 2: แปลงค่าเลขฐานสิบหกแต่ละค่าเป็นทศนิยม:
48 (hex) → 72 (decimal)
69 (hex) → 105 (decimal)
Step 3: Convert each decimal value to a character (ASCII):
72 → H
105 → i
ขั้นตอนที่ 4: รวมอักขระ:
Hi
หมายเหตุการใช้งาน
- Each hexadecimal value should be a valid 2-digit hex number (00-FF).
- When using ASCII encoding, any hexadecimal value outside the 7-bit ASCII range (00-7F in hex) will be converted to a question mark (?).
- การเข้ารหัส UTF-8 รองรับอักขระ Unicode ทั้งหมด รวมถึงสัญลักษณ์พิเศษ อิโมจิ และอักขระจากภาษาที่ไม่ใช่ภาษาอังกฤษ
- ค่าเลขฐานสิบหกบางค่าอาจแสดงถึงอักขระที่ไม่สามารถพิมพ์ได้ ซึ่งจะแสดงเป็นช่องว่างหรือสัญลักษณ์พิเศษ
Related Tools
Pantone เป็น CMYK
แปลงสี Pantone เป็นค่า CMYK สําหรับการออกแบบการพิมพ์
RGB เป็น Pantone
แปลงสี RGB ดิจิทัลเป็นสี Pantone® ที่ใกล้เคียงที่สุด
Pantone เป็น RGB
แปลงสี Pantone เป็นค่า RGB สําหรับการออกแบบดิจิทัล
เครื่องสร้างปุ่ม CSS ฟรี
Erstellen Sie ansprechende, responsive Schaltflächen für Ihre Website. Wählen Sie aus über 70 vorgefertigten Stilen oder passen Sie Ihre eigenen mit unseren erweiterten Steuerelementen an.
ข้อความเป็น ASCII
แปลงข้อความเป็นรหัส ASCII ได้อย่างง่ายดาย
ตัวแปลง CSS เป็น SCSS
แปลงโค้ด CSS ของคุณเป็น SCSS ด้วยตัวแปร การซ้อน และอื่นๆ รวดเร็ว ง่ายดาย และปลอดภัย