How to use the ASCII to binary converter
- 1Choose Input: Characters to type text, or Decimal codes to enter numbers such as
72 101 108. - 2Set Bits per code to 8 bits (one byte per character) or 7 bits (strict ASCII).
- 3Copy the binary from the Binary box, or read each character's values in the breakdown table.
- 4Search the ASCII table (0–127) with Find a character or code: a character, a decimal or hex code, 8 bits, or a name such as “tab”.
Example
Cat
01000011 01100001 01110100
C = 67, a = 97, t = 116. With Bits per code set to 7 bits, “OK” becomes 1001111 1001011.
ASCII codes and binary
ASCII gives each of 128 characters a number from 0 to 127. Converting a character to binary means writing its code in base 2:
| Character | Decimal | Hex | 8-bit binary |
|---|---|---|---|
| space | 32 | 20 | 00100000 |
| 0 | 48 | 30 | 00110000 |
| A | 65 | 41 | 01000001 |
| Z | 90 | 5A | 01011010 |
| a | 97 | 61 | 01100001 |
| z | 122 | 7A | 01111010 |
The layout is deliberate: digits 0–9 are 48–57, so subtracting 48 gives the digit's value, and lower-case letters are exactly 32 above their capitals.
7-bit vs 8-bit output
ASCII was designed as a 7-bit code, so every value fits in seven bits and the highest code, 127, is 1111111. Computers store characters in 8-bit bytes, so most tools, including this one by default, add a leading 0: 01000001 rather than 1000001.
Use 7 bits when a textbook or exercise asks for “7-bit ASCII”, or when you are working with serial protocols and old systems that transmit seven data bits. The values are the same; only the leading zero changes.
ASCII table (0-127)
The searchable table under the converter lists all 128 codes with decimal, hex and 8-bit binary values. Type a single character to find its code, a number (decimal or hex such as 0x41) to find its character, a full byte such as 01000001, or part of a control character's name (“escape”, “line feed”).
Printable characters run from 32 (space) to 126 (~). The rest are control characters.
Control characters
Codes 0–31 and 127 are not printable; they were instructions for teleprinters and terminals. A few are still used every day:
| Code | Binary | Name | Used for |
|---|---|---|---|
| 9 | 00001001 | TAB | Tab key, tab-separated files |
| 10 | 00001010 | LF | New line on Linux and macOS |
| 13 | 00001101 | CR | Windows new line is CR + LF |
| 27 | 00011011 | ESC | Terminal colour codes |
| 0 | 00000000 | NUL | End of a string in C |
Typing a tab or new line in the input converts it like any other character, and the breakdown names it.
ASCII vs Unicode
Unicode includes ASCII as its first 128 code points, so A is 65 in both. Beyond 127 they diverge: “extended ASCII” is not one standard but many code pages (Windows-1252, ISO 8859-1 and others) that assign 128–255 differently. Modern text uses Unicode, stored as UTF-8. This converter rejects characters above 127 and tells you which ones; convert those with text to binary (UTF-8) or look up their code points in the Unicode converter.
Is my text private?
This tool runs entirely in your browser. Your text is not uploaded to our servers.
