💾 Text to Binary Translator
Translate text to binary code and binary back to text, with full UTF-8 so emoji and accents work. Also shows hex, decimal and octal bytes.
7 bytes · 4 characters · 56 bits
Character by character
| Char | Code point | UTF-8 binary | Hex |
|---|---|---|---|
| H | U+0048 (72) | 01001000 | 48 |
| i | U+0069 (105) | 01101001 | 69 |
| ␠ | U+0020 (32) | 00100000 | 20 |
| 👋 | U+1F44B (128075) | 11110000 10011111 10010001 10001011 | F0 9F 91 8B |
What Text to Binary Translator Does
This binary translator converts text to binary and binary back to text in one box. It uses UTF-8, the encoding behind nearly every web page, so accented letters, other alphabets and emoji translate correctly instead of turning into question marks.
You can switch the number format to hex, decimal or octal to see the same bytes another way, and the character table breaks the text down one character at a time: the Unicode code point, the UTF-8 bytes in binary, and the same bytes in hex. It is a quick way to see why “A” takes one byte and “é” takes two.
When decoding, the translator is strict: it says exactly which group is not valid binary, when the total is not a whole number of bytes, or when the bytes are not valid UTF-8 — rather than silently printing garbage.
How to Use Text to Binary Translator
- Choose Text → Binary or Binary → Text
- Pick the number format: binary, hex, decimal or octal
- Type or paste your text or bytes
- Copy the result, or swap direction to check it
- Use the character table to see each character’s code point and bytes
Formula Used by Text to Binary Translator
Text → binary
character → Unicode code point → UTF-8 bytes → each byte as 8 binary digits
Worked example
The text “Hi”.
- H = U+0048 = byte 72
- 72 = 64 + 8 = 01001000
- i = U+0069 = byte 105 = 01101001
Result: 01001000 01101001
Reading a byte
value = Σ bitₖ × 2ᵏ, with k = 7 for the leftmost bit down to 0
Worked example
01000011
- 0×128 + 1×64 + 0×32 + 0×16 + 0×8 + 0×4 + 1×2 + 1×1
- = 64 + 2 + 1
Result: 67, which is the letter C.
How Many Bytes a Character Takes in UTF-8
| Code points | Bytes | Binary pattern | Examples |
|---|---|---|---|
| U+0000 – U+007F | 1 | 0xxxxxxx | A–Z, a–z, 0–9, punctuation |
| U+0080 – U+07FF | 2 | 110xxxxx 10xxxxxx | é, ñ, ü, Greek, Cyrillic, Hebrew, Arabic |
| U+0800 – U+FFFF | 3 | 1110xxxx 10xxxxxx 10xxxxxx | €, most Chinese, Japanese and Korean characters |
| U+10000 – U+10FFFF | 4 | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | Most emoji, such as 👋 and 😀 |
Letters in Binary
| Letter | Binary | Letter | Binary |
|---|---|---|---|
| A | 01000001 | a | 01100001 |
| B | 01000010 | b | 01100010 |
| C | 01000011 | c | 01100011 |
| H | 01001000 | h | 01101000 |
| O | 01001111 | o | 01101111 |
| Z | 01011010 | z | 01111010 |
| Space | 00100000 | 0 (digit) | 00110000 |
How to Read Your Result
Uppercase and lowercase differ by one bit
In ASCII, and therefore UTF-8, a lowercase letter is its uppercase letter plus 32 — the third bit from the left. A is 01000001 and a is 01100001. Early software used this to change case with a single bit operation.
Why decoding can fail
Multi-byte characters must arrive complete and in order. If you copy only part of the binary for an emoji, or a digit is mistyped so a byte no longer matches the UTF-8 patterns above, the text cannot be decoded. Fixing the byte count is usually enough.
Limitations & Accuracy Notes
- Only UTF-8 is supported for decoding; text saved in older encodings such as Windows-1252 or UTF-16 will not decode correctly.
- The character table lists the first 40 characters.