十六进制转文本

轻松将十六进制表示转换为文本

转换器工具

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 字符,包括特殊符号、表情符号和非 E 字符英语。
  • 某些十六进制值可能表示不可打印的字符,这些字符将显示为空格或特殊符号。

Related Tools