ASCII to Binary Converter
Type characters, or ASCII codes separated by spaces, and get the binary. The converter tells you which way it read your input.
ASCII to binary
Characters or codes
If your input is only numbers, like 72 105, the converter reads them as ASCII codes and writes each in binary. Anything else, like Hi, is read as characters and each one is looked up first. Both of those examples give 01001000 01101001.
Choose 8-bit for bytes as computers store them, or 7-bit for classic ASCII without the leading 0. Codes above 127 are not ASCII, so the converter skips them and says how many. For accented letters and emoji, use the text to binary converter, which writes UTF-8.
Example: ASCII to binary for "Hi"
Each character has an ASCII code, and each code is written as 8 bits.
| Character | ASCII code | Binary |
|---|---|---|
| H | 72 | 01001000 |
| i | 105 | 01101001 |
Result01001000 01101001
Common symbols in binary
Punctuation and symbols have ASCII codes too. The ASCII table lists all 128.
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| space | 00100000 | 32 | 20 |
| ! | 00100001 | 33 | 21 |
| " | 00100010 | 34 | 22 |
| # | 00100011 | 35 | 23 |
| $ | 00100100 | 36 | 24 |
| % | 00100101 | 37 | 25 |
| & | 00100110 | 38 | 26 |
| ( | 00101000 | 40 | 28 |
| ) | 00101001 | 41 | 29 |
| * | 00101010 | 42 | 2A |
| + | 00101011 | 43 | 2B |
| , | 00101100 | 44 | 2C |
| - | 00101101 | 45 | 2D |
| . | 00101110 | 46 | 2E |
| / | 00101111 | 47 | 2F |
| : | 00111010 | 58 | 3A |
| ; | 00111011 | 59 | 3B |
| ? | 00111111 | 63 | 3F |
| @ | 01000000 | 64 | 40 |
Frequently asked questions
What is ASCII 65 in binary?
ASCII 65 is the capital letter A, and in binary it is `01000001`. In 7-bit form it is `1000001`.
How do I convert ASCII codes to binary?
Type the codes separated by spaces or commas, like `72 105`. Each one becomes its binary value. By hand, divide the code by 2 repeatedly and read the remainders from the bottom up, padding to 8 bits.