Text to Binary Converter — UTF-8 Safe
Convert text to binary (one byte per character, UTF-8 encoded), or decode binary back to text. Choose how the binary is separated. Live update.
What text-to-binary means
Computers store all text as bytes — sequences of 1s and 0s. Each character in your text corresponds to one or more bytes; this tool reveals exactly which bytes. The conversion uses UTF-8 — the modern web standard encoding — which represents ASCII characters as a single byte (8 bits) and non-ASCII characters (emojis, accents, CJK scripts) as 2-4 bytes.
Example: A → 01000001 (decimal 65). ! → 00100001. The emoji ❤ → 11100010 10011101 10100100 (3 bytes).
Common uses
- Learning computer science — visualising how strings become bytes.
- Debugging encoding issues — seeing the actual bytes makes "weird character" bugs obvious.
- Embedded systems — preparing string constants for low-level code.
- Puzzles, capture-the-flag challenges, crypto puzzles.
- Cryptography practice — converting input to bit-level for XOR demonstrations.
- Curiosity — seeing your name as 1s and 0s.
Tips
- The separator only affects display — without spaces, "Hi" is
0100100001101001. - UTF-8 is variable-length: ASCII = 1 byte, most accented Latin = 2 bytes, most CJK = 3 bytes, supplementary emojis = 4 bytes.
- For binary representing single characters in a different encoding (UTF-16, Latin-1), this tool won't decode correctly. Convert to UTF-8 first.
FAQs
Why are emojis multiple bytes?
UTF-8 uses more bytes for characters above the ASCII range. Emojis are above the Basic Multilingual Plane and use 3-4 bytes each.
Is anything uploaded?
No.
Can it decode arbitrary binary?
Yes — as long as the input bytes are valid UTF-8.