Text to binary converter
Letters to ones and zeros — and back again.
Output
Paste or type above to see the result here.
Your files stay on your device
This tool runs entirely in your browser. What you paste is processed on your device and is never sent to a server, so it is safe to use with tokens, keys and unpublished text.
Example
Example: “Hello” in binary, and binary back to text
Type Hello with “Text → code” and Binary chosen. Each plain letter is one byte in UTF-8, written as eight binary digits.
- Text → code, Binary, a space between bytes: Hello → 01001000 01100101 01101100 01101100 01101111.
- With Nothing between bytes it is one run of 40 digits: 0100100001100101011011000110110001101111.
- The other way: paste 01001100 01101111 01110110 01100101, choose “Code → text”, and it reads Love.
| Letter | Decimal | Binary | Hex |
|---|---|---|---|
| H | 72 | 01001000 | 48 |
| e | 101 | 01100101 | 65 |
| l | 108 | 01101100 | 6C |
| l | 108 | 01101100 | 6C |
| o | 111 | 01101111 | 6F |
Five letters make five bytes, 40 binary digits. An accented letter takes two bytes (é = 11000011 10101001) and an emoji four.
How it works
- Type or paste text and keep “Text → code”, or paste binary, hex, octal or decimal and choose “Code → text”.
- Choose the code: binary (8 digits a byte), hexadecimal, octal or decimal.
- Copy the result. If pasted code doesn’t fit the chosen base, it is read in the one that fits, with a note.
Frequently asked questions
- How is text turned into binary?
- Each character is stored as one or more bytes in UTF-8, and each byte is written as eight binary digits: H is 72, which is 01001000, and i is 105, 01101001.
- Why does é take two bytes?
- UTF-8 uses one byte for plain A–Z letters and digits, two for most accented letters (é = 11000011 10101001), three for Japanese or Korean characters and four for emoji — so every language round-trips.
- Can I paste binary without spaces?
- Yes — a continuous run is cut into groups of 8 (binary), 2 (hex) or 3 (octal). Prefixes such as 0b and 0x are understood.
- What do hexadecimal, octal and decimal show?
- The same bytes in other bases. “Hi!” is 01001000 01101001 00100001 in binary, 48 69 21 in hexadecimal, 110 151 041 in octal and 72 105 33 in decimal. Hexadecimal is how programmers usually read raw data.
- Can it convert a number like 25 to binary?
- It converts what you type as text, so 25 becomes 00110010 00110101 — the bytes of the characters 2 and 5. To write the number 25 itself in binary (11001), use the number base converter.
- How do I translate binary to English?
- Paste the binary and choose “Code → text”: 01001100 01101111 01110110 01100101 reads Love. Spaces between the bytes are optional — a run of digits is cut into groups of eight. If Hexadecimal is still chosen, it sees that the digits are binary and reads them as binary, with a note.
- Is my text sent anywhere?
- No. It is converted in your browser.
Related tools
∿ Developer tools Number base converter 0x2F is 47, and nobody remembers that. ∿ Developer tools Base64 Convert text to Base64 and back, with correct UTF-8 handling and an optional URL-safe alphabet. ∿ Morse code translator Dots and dashes, both directions. ⌘ Caesar cipher Shift the alphabet — or try every key at once.