Text to Binary Converter
Turn text into binary (0s and 1s), hexadecimal, decimal or octal bytes, or decode them back to text.
How to use the Text to Binary Converter
- Choose a directionText → Code turns letters into bytes. Code → Text turns bytes back into readable text.
- Pick the formatBinary uses 8 digits per byte, hex 2, octal 3 and decimal 1 to 3. Pick how bytes are separated.
- Copy the resultThe result updates as you type. Copy it with one click.
Example
Hi! in binary is 01001000 01101001 00100001: 3 characters, 3 bytes, 24 bits. In hex it is 48 69 21.
The Bangla letter হ takes 3 bytes in UTF-8: E0 A6 B9, and the emoji 👋 takes 4 bytes.
Frequently asked questions
How is text turned into binary?
Each character is first turned into bytes using UTF-8, the encoding used by the web. Each byte (0–255) is then written in base 2 as 8 digits. English letters use 1 byte; Bangla and Hindi letters use 3; most emoji use 4.
Can I paste binary without spaces?
Yes, for binary, hex and octal. The tool splits the digits into groups of 8, 2 or 3. Decimal bytes always need a separator because they have different lengths.
What does 0b or 0x mean?
They are prefixes programmers use: 0b for binary and 0x for hex. The tool removes them when decoding, so 0x48 0x69 works.