Type words and get their binary code, eight bits per byte, with hex and decimal alongside.
Common phrases in binary
| hi | 01101000 01101001 |
| hello | 01101000 01100101 01101100 01101100 01101111 |
| I love you | 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101 |
| yes | 01111001 01100101 01110011 |
| no | 01101110 01101111 |
| thank you | 01110100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101 |
| happy birthday | 01101000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 |
| A | 00001010 |
| a | 00001010 |
| 0 | 00000000 |
Printable ASCII table (32–126): character, decimal, hex, binary
Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
About
What the Text to Binary does
Text to Binary turns words into the 0s and 1s a computer stores: each character becomes one or more bytes, and each byte is written as eight bits. Hi becomes 01001000 01101001. Letters, digits, spaces and punctuation take one byte each in UTF-8; accented letters take two and most emoji four. The same bytes appear in hex, decimal, octal and Base64 below.
Steps
How to use it
- 1Type or paste your text into the Input panel. This page starts with the input set to Text.
- 2Press Translate (or Cmd/Ctrl+Enter). The binary appears on the right, one group of eight bits per byte.
- 3Copy the binary, or read the hex, decimal, octal and Base64 versions of the same bytes below.
- 4Press Swap to paste the binary back into the input and check that it returns your original text.
Example
A real run
Input
Hi, Texas!
Output
01001000 01101001 00101100 00100000 01010100 01100101 01111000 01100001 01110011 00100001
Ten characters, ten bytes: the comma is 00101100, the space 00100000 and the exclamation mark 00100001. The hex view shows the same bytes as 48 69 2c 20 54 65 78 61 73 21.
Options
Every setting, and when to use it
- Input is
- Text on this page. Switch to Detect automatically to paste binary, hex or decimal and get text back, or use the full Binary Translator for every direction.
- Delimiter
- A space between bytes (01001000 01101001) is easiest to read; none gives one long string; a custom separator such as a comma suits code and spreadsheets.
- 8-bit padding
- Keeps every byte at eight digits, so A is 01000001 rather than 1000001. Leave it on unless an exercise asks for the shortest form.
- Encoding: UTF-8 or 7-bit ASCII
- UTF-8 handles every character, including é and emoji, and is what websites and files use. 7-bit ASCII covers only the 128 basic characters and replaces anything else with ? (00111111).
Good to know
Common problems and limits
Input is limited to 1 MB of text. Binary is a longer way of writing the same bytes, about eight characters of output for every byte.
Binary is an encoding, not encryption: anyone can turn it back into text with this page or the Binary Translator.
In 7-bit ASCII mode, characters outside the basic set (é, ñ, emoji, curly quotes) become ? and cannot be recovered. Use UTF-8 when the text is not plain English.
For hex codes instead of bits, the Hex to Text page shows the same bytes in base 16.
Audience
Who uses it
- StudentsCheck homework that converts names or short words to binary, byte by byte.
- TeachersShow how letters map to ASCII codes and then to bits, with the decimal and hex columns side by side.
- Puzzle and gift makersWrite a hidden message in 0s and 1s for a card, a bracelet or an escape room clue.
- DevelopersSee the exact UTF-8 bytes of a string with accents or emoji before debugging an encoding problem.
FAQ
Frequently asked
What is hello in binary?
Lowercase hello is 01101000 01100101 01101100 01101100 01101111: five letters, five bytes. h is 104 in decimal and 01101000 in binary. A capital H is 01001000, so case changes the bits.
What is A in binary?
Capital A is 01000001 (65 in decimal) and lowercase a is 01100001 (97). The two differ in a single bit, which is true of every upper and lowercase letter pair in ASCII.
How do I convert text to binary by hand?
Look up each character's code in an ASCII table (H is 72), then write that number in base 2 by subtracting powers of two from 128 down to 1: 72 is 64 + 8, so 01001000. Repeat for every character and keep each byte eight digits long.
Why is each letter eight bits?
A byte is eight bits, and ASCII and UTF-8 store each basic letter, digit and symbol in one byte. Eight bits allow 256 values, enough for the 128 ASCII characters with room to spare.
How are emoji and accents converted to binary?
In UTF-8 they take several bytes. é is two bytes, 11000011 10101001, and the grinning face emoji is four, 11110000 10011111 10011000 10000000. Choose UTF-8 encoding so nothing is lost.
How do I convert binary back to text?
Press Swap: the binary moves into the input and comes back as text. You can also paste binary into the Binary Translator, which detects the format on its own. 01001000 01101001 reads Hi.
Automation: an MCP tool translate_binary(input, "text", encoding) → binary and an n8n node are planned for this tool.