Paste or type
Enter it in the box; the direction is already set.
Type any text and get its binary code, eight bits per character, ready to copy. Good for names, messages, cards and lessons. UTF-8, so accents and emoji work.
100% private — the calculation is done in your browser and nothing is sent to any server.
Enter it in the box; the direction is already set.
The result appears as you type.
Use the copy button, or switch the direction to convert back.
To convert text to binary, type or paste it in the converter above. Each character is looked up in ASCII or UTF-8 and written as eight bits: for example, the word Dock becomes 01000100 01101111 01100011 01101011, which is 32 bits for 4 characters. Copy the result or switch the direction to translate back.
A computer stores every character as a number: H is 72, e is 101, l is 108 and o is 111. That number is then written in base 2 with eight digits, padding on the left with zeros. Seventy-two is 64 + 8, so its binary is 01001000.
| Character | Decimal (ASCII/UTF-8) | Binary |
|---|---|---|
D | 68 | 01000100 |
o | 111 | 01101111 |
c | 99 | 01100011 |
k | 107 | 01101011 |
In ASCII and UTF-8, each basic letter, digit and punctuation mark takes one byte, so eight binary digits. A text with 20 characters is 160 bits. Accented letters, other alphabets and emoji take two to four bytes in UTF-8, so they produce 16 to 32 bits each.
The conversion runs in your browser, so what you type is never sent to a server.
More utilities that also run without leaving your browser.