Bytes to ASCII Converter
Convert byte values (decimal, hex, binary) to ASCII text instantly. Supports multiple input formats, non-printable character display, and bulk conversion.
About
Byte-to-character mapping errors cause silent data corruption in serial protocols, file parsers, and network packet inspection. A single off-by-one in a 0x0D0x0A (CR LF) sequence breaks line parsing across platforms. This tool converts raw byte values in decimal (0 - 255), hexadecimal (0x00 - 0xFF), or binary (00000000 - 11111111) to their corresponding ASCII and extended ASCII characters. Non-printable control codes below 0x20 and DEL (0x7F) are rendered with their standard abbreviations (NUL, SOH, STX, etc.) rather than invisible glyphs. The converter handles the full 8-bit range per ISO/IEC 8859-1. Note: bytes above 127 map to extended ASCII and may render differently depending on your system's code page.
Formulas
Each byte B is an unsigned 8-bit integer with valid range:
The mapping function from byte to character is:
For hexadecimal input tokens, the decimal value is recovered via base conversion:
where di is the i-th hex digit from the right, and n is the total digit count. For binary input, the same formula applies with base 2:
where bi β {0, 1}. Non-printable characters are those where B < 32 or B = 127. These are displayed using their standard control code abbreviations (NUL, SOH, STX, ETX, etc.) per ANSI X3.4-1986.
Reference Data
| Dec | Hex | Binary | Char | Description |
|---|---|---|---|---|
| 0 | 0x00 | 00000000 | NUL | Null character |
| 7 | 0x07 | 00000111 | BEL | Bell / Alert |
| 8 | 0x08 | 00001000 | BS | Backspace |
| 9 | 0x09 | 00001001 | HT | Horizontal Tab |
| 10 | 0x0A | 00001010 | LF | Line Feed (Unix newline) |
| 13 | 0x0D | 00001101 | CR | Carriage Return |
| 27 | 0x1B | 00011011 | ESC | Escape |
| 32 | 0x20 | 00100000 | SP | Space |
| 48 | 0x30 | 00110000 | 0 | Digit zero |
| 57 | 0x39 | 00111001 | 9 | Digit nine |
| 65 | 0x41 | 01000001 | A | Uppercase A |
| 90 | 0x5A | 01011010 | Z | Uppercase Z |
| 97 | 0x61 | 01100001 | a | Lowercase a |
| 122 | 0x7A | 01111010 | z | Lowercase z |
| 127 | 0x7F | 01111111 | DEL | Delete |
| 128 | 0x80 | 10000000 | β¬ | Euro sign (Windows-1252) |
| 160 | 0xA0 | 10100000 | NBSP | Non-breaking space |
| 169 | 0xA9 | 10101001 | Β© | Copyright sign |
| 176 | 0xB0 | 10110000 | Β° | Degree symbol |
| 181 | 0xB5 | 10110101 | Β΅ | Micro sign |
| 188 | 0xBC | 10111100 | ΒΌ | Vulgar fraction one quarter |
| 191 | 0xBF | 10111111 | ΒΏ | Inverted question mark |
| 192 | 0xC0 | 11000000 | Γ | Latin capital A with grave |
| 223 | 0xDF | 11011111 | Γ | Latin small sharp S (Eszett) |
| 233 | 0xE9 | 11101001 | Γ© | Latin small E with acute |
| 241 | 0xF1 | 11110001 | Γ± | Latin small N with tilde |
| 252 | 0xFC | 11111100 | ΓΌ | Latin small U with diaeresis |
| 255 | 0xFF | 11111111 | ΓΏ | Latin small Y with diaeresis |