ฐานสิบหกเป็นข้อความ

แปลงการแสดงเลขฐานสิบหกเป็นข้อความได้อย่างง่ายดาย

เครื่องมือแปลง

0 characters

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

กระบวนการแปลง

การแปลงเลขฐานสิบหกเป็นข้อความเกี่ยวข้องกับขั้นตอนต่อไปนี้:

  1. แยกวิเคราะห์อินพุตเลขฐานสิบหกเป็นค่าฐานสิบหกแต่ละค่า โดยพิจารณาว่าคั่นด้วยช่องว่างหรือไม่
  2. Convert each hexadecimal value to its decimal (base-10) equivalent.
  3. Convert each decimal value to its corresponding character using the chosen encoding (ASCII or UTF-8).
  4. รวมอักขระเพื่อสร้างสตริงข้อความสุดท้าย

ตัวอย่าง: แปลงเลขฐานสิบหก "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