🔐 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 |