🔐 Binary / Hex to ASCII
Paste a continuous bit or hex string and choose the radix to decode it into ASCII text (8 bits or 2 hex digits per character).
📐 工作原理与说明
按 8 位一字节解析:ASCII 编码范围 0 至 127,如 01000001 = 65 = 字母 A、00110000 = 48 = 数字 0;十六进制每位对应 4 位二进制(0x41 = 01000001);可打印字符为 32 至 126,其余为控制字符(0x0A 换行、0x0D 回车);无分隔时按 8 位分组,含空格分隔时按分隔符切分后逐组转十进制再映射字符。
Formula & Standard References
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Bit width | Standard ASCII uses 7 bits but is stored as one 8-bit byte | ANSI X3.4-1986 American Standard Code for Information Interchange |
| Hex mapping | Every two hex digits encode one byte, so n bytes need 2n characters | ISO/IEC 646 International Reference Version (IRV) |
| Printable range | Printable characters span 0x20–0x7E; the rest are controls or extended bytes | ANSI X3.4-1986 §2 Character set and coding |
⚠️ 使用说明与注意事项
- 二进制每组 8 位对应一个字节;十六进制每 2 位对应一个字节,空格、换行会被自动忽略。
- 仅覆盖 ASCII(0–127)。非 ASCII(如中文 UTF-8)是多字节编码,需先做 UTF-8 字节拆解再逐字节转,本工具不直接支持。
- 若结果出现乱码,多半是位数不对或混入了其他字符,请先清理输入。
📋 示例
| 字符 | 二进制 | 十六进制 |
|---|---|---|
| A | 01000001 | 41 |
| B | 01000010 | 42 |
| a | 01100001 | 61 |
| 0 | 00110000 | 30 |