Byte to ASCII Converter
Convert byte values (0-255) to ASCII characters, hex, octal, and binary. Supports space, comma, and continuous byte input with full ASCII reference table.
About
Every byte maps to exactly one value in the 0 - 255 range. The original ASCII standard defines 128 code points (0 - 127): 33 non-printing control characters (0 - 31 plus 127) and 95 printable glyphs. Extended ASCII (128 - 255) is encoding-dependent and not universally portable. Misinterpreting a single byte - confusing a carriage return (CR, byte 13) with a line feed (LF, byte 10) - corrupts file parsing, breaks network protocols, and produces silent data errors that propagate downstream. This tool decodes raw decimal byte sequences into their ASCII representations, including standard mnemonics for all 33 control characters. It assumes input values are unsigned 8-bit integers. Values outside the 0 - 255 range are rejected.
Formulas
The conversion from a decimal byte value to its ASCII character is a direct lookup defined by the ASCII standard (ANSI X3.4-1986). The mapping function is:
For representation in alternate bases, the following conversions apply:
Where byte is the unsigned 8-bit integer input (0 - 255), char is the resulting character glyph or control mnemonic, hex is the hexadecimal representation (base 16), oct is octal (base 8), and bin is binary (base 2). Printable characters occupy the range 32 - 126. Control characters (0 - 31, 127) are rendered using their standard three-letter mnemonics (NUL, SOH, STX, etc.).
Reference Data
| Dec | Hex | Oct | Char | Description |
|---|---|---|---|---|
| 0 | 0x00 | 000 | NUL | Null |
| 1 | 0x01 | 001 | SOH | Start of Heading |
| 2 | 0x02 | 002 | STX | Start of Text |
| 3 | 0x03 | 003 | ETX | End of Text |
| 4 | 0x04 | 004 | EOT | End of Transmission |
| 5 | 0x05 | 005 | ENQ | Enquiry |
| 6 | 0x06 | 006 | ACK | Acknowledge |
| 7 | 0x07 | 007 | BEL | Bell (Alert) |
| 8 | 0x08 | 010 | BS | Backspace |
| 9 | 0x09 | 011 | HT | Horizontal Tab |
| 10 | 0x0A | 012 | LF | Line Feed (Newline) |
| 11 | 0x0B | 013 | VT | Vertical Tab |
| 12 | 0x0C | 014 | FF | Form Feed |
| 13 | 0x0D | 015 | CR | Carriage Return |
| 14 | 0x0E | 016 | SO | Shift Out |
| 15 | 0x0F | 017 | SI | Shift In |
| 16 | 0x10 | 020 | DLE | Data Link Escape |
| 17 | 0x11 | 021 | DC1 | Device Control 1 (XON) |
| 18 | 0x12 | 022 | DC2 | Device Control 2 |
| 19 | 0x13 | 023 | DC3 | Device Control 3 (XOFF) |
| 20 | 0x14 | 024 | DC4 | Device Control 4 |
| 21 | 0x15 | 025 | NAK | Negative Acknowledge |
| 22 | 0x16 | 026 | SYN | Synchronous Idle |
| 23 | 0x17 | 027 | ETB | End of Transmission Block |
| 24 | 0x18 | 030 | CAN | Cancel |
| 25 | 0x19 | 031 | EM | End of Medium |
| 26 | 0x1A | 032 | SUB | Substitute |
| 27 | 0x1B | 033 | ESC | Escape |
| 28 | 0x1C | 034 | FS | File Separator |
| 29 | 0x1D | 035 | GS | Group Separator |
| 30 | 0x1E | 036 | RS | Record Separator |
| 31 | 0x1F | 037 | US | Unit Separator |
| 32 | 0x20 | 040 | SP | Space |
| 33 | 0x21 | 041 | ! | Exclamation Mark |
| 48 | 0x30 | 060 | 0 | Digit Zero |
| 65 | 0x41 | 101 | A | Latin Capital Letter A |
| 97 | 0x61 | 141 | a | Latin Small Letter A |
| 127 | 0x7F | 177 | DEL | Delete |