Text to Binary Converter
Instantly convert any text message into binary code. Free, private, and fast — encoding runs entirely in your browser.
A text to binary converter encodes each character as UTF-8 and writes every byte as eight bits.
Example: A = 01000001
This tool uses UTF-8 encoding. Letters and digits in English use one byte each; other characters can use two, three, or four bytes.
Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).
How to convert text to binary by hand
A text to binary converter maps each character to its numeric code (via UTF-8), then writes that number in base 2 with eight bits per byte.
- Pick a character (example: H).
- Find its ASCII code — H = 72. Use the ASCII table if needed.
- Convert 72 to binary with powers of 2: 64+8 = 72 →
01001000. - Repeat for every character and join the bytes with spaces.
Longer walkthrough: complete text to binary guide.
Text to binary examples
| Text | Binary |
|---|---|
| A | 01000001 |
| a | 01100001 |
| 0 | 00110000 |
| (space) | 00100000 |
| Hi | 01001000 01101001 |
| OK | 01001111 01001011 |
| Hello | 01001000 01100101 01101100 01101100 01101111 |
| Love | 01001100 01101111 01110110 01100101 |
| Binary | 01000010 01101001 01101110 01100001 01110010 01111001 |
Character to ASCII code to binary
Take the word Hi! one character at a time. The ASCII code is the decimal number in the ASCII table. The binary column is that number written with eight bits. 72 is H, 105 is i, and 33 is the exclamation mark.
| Character | ASCII code | Binary |
|---|---|---|
| H | 72 | 01001000 |
| i | 105 | 01101001 |
| ! | 33 | 00100001 |
Hi! = 01001000 01101001 00100001
Binary alphabet
Uppercase and lowercase are different codes. A is 65 (01000001) and a is 97 (01100001). The full chart, including digits and controls, is the ASCII table.
A–Z uppercase
| Letter | ASCII | Binary |
|---|---|---|
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| C | 67 | 01000011 |
| D | 68 | 01000100 |
| E | 69 | 01000101 |
| F | 70 | 01000110 |
| G | 71 | 01000111 |
| H | 72 | 01001000 |
| I | 73 | 01001001 |
| J | 74 | 01001010 |
| K | 75 | 01001011 |
| L | 76 | 01001100 |
| M | 77 | 01001101 |
| N | 78 | 01001110 |
| O | 79 | 01001111 |
| P | 80 | 01010000 |
| Q | 81 | 01010001 |
| R | 82 | 01010010 |
| S | 83 | 01010011 |
| T | 84 | 01010100 |
| U | 85 | 01010101 |
| V | 86 | 01010110 |
| W | 87 | 01010111 |
| X | 88 | 01011000 |
| Y | 89 | 01011001 |
| Z | 90 | 01011010 |
a–z lowercase
| Letter | ASCII | Binary |
|---|---|---|
| a | 97 | 01100001 |
| b | 98 | 01100010 |
| c | 99 | 01100011 |
| d | 100 | 01100100 |
| e | 101 | 01100101 |
| f | 102 | 01100110 |
| g | 103 | 01100111 |
| h | 104 | 01101000 |
| i | 105 | 01101001 |
| j | 106 | 01101010 |
| k | 107 | 01101011 |
| l | 108 | 01101100 |
| m | 109 | 01101101 |
| n | 110 | 01101110 |
| o | 111 | 01101111 |
| p | 112 | 01110000 |
| q | 113 | 01110001 |
| r | 114 | 01110010 |
| s | 115 | 01110011 |
| t | 116 | 01110100 |
| u | 117 | 01110101 |
| v | 118 | 01110110 |
| w | 119 | 01110111 |
| x | 120 | 01111000 |
| y | 121 | 01111001 |
| z | 122 | 01111010 |
ASCII, UTF-8, and emoji
ASCII is 128 codes, from 0 to 127, and each one fits in a single byte. UTF-8 stores those same codes as the same single byte, then uses two, three, or four bytes for everything else. An emoji is not one “extra ASCII character”; it is a Unicode character whose UTF-8 form is four bytes.
| Text | Encoding | Bytes | Hex | Binary |
|---|---|---|---|---|
| A | ASCII and UTF-8 | 1 | 41 | 01000001 |
| Hi | ASCII and UTF-8 | 2 | 48 69 | 01001000 01101001 |
| é | UTF-8 only | 2 | C3 A9 | 11000011 10101001 |
| 😀 | UTF-8 only | 4 | F0 9F 98 80 | 11110000 10011111 10011000 10000000 |
é looks like one letter and uses two bytes (C3 A9). The grinning face uses four bytes (F0 9F 98 80). Splitting those bytes apart and reading each one as its own ASCII letter produces garbage, not the original character.
Convert text to binary in code
Both snippets encode with UTF-8 and print each byte as eight bits. They match this site for the letter A.
JavaScript
const text = "A";
const bytes = new TextEncoder().encode(text);
const binary = [...bytes].map((byte) => byte.toString(2).padStart(8, "0")).join(" ");
// A → 01000001Python
text = "A"
binary = " ".join(f"{byte:08b}" for byte in text.encode("utf-8"))
# A → 01000001Frequently Asked Questions
How do I convert text to binary online?
Does text to binary support special characters?
Is this text to binary tool free?
What is the binary for “Hello”?
How do I convert text to binary by hand?
Related tools & guides
Decode 0s and 1s back to characters.
Decode English words from binary.
Binary, hex, decimal, and octal.
Letters A–Z in binary at a glance.
Step-by-step encoding tutorial.
Float / double to binary bits.