十六進位到文本

輕鬆將十六進位表示轉換為文本

轉換器工具

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,這意味著前 128 個 UTF-8 字元與 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