Text to Binary

Convert text to binary code — every character becomes an 8-bit byte instantly, with full Unicode and emoji support via UTF-8. Free binary translator.

🔒 100% Client-Side Processing

Your data is processed entirely in your browser and never transmitted to any server.

Example

Input

Hi

Output

01001000 01101001

Each character becomes one 8-bit byte: H = 01001000, i = 01101001.

0 / 100M Limit

Common Use Cases

Teaching how computers store text

Show students the actual 8-bit patterns behind letters — the classic classroom demonstration of character encoding.

Creating binary-themed content

Encode names or messages into binary for T-shirts, tattoos, puzzles, and geek-culture designs that spell something real.

Verifying encoder implementations

Generate known-correct binary output to test your own text-to-binary conversion code against.

Frequently Asked Questions

Why is each letter 8 binary digits?
The text is first encoded as UTF-8 bytes, then each byte is shown as an 8-bit group — "A" (65) becomes 01000001. Every group is always exactly 8 bits, even for non-Latin scripts and emoji: those characters just take more than one UTF-8 byte (and so more than one 8-bit group) each, the same way they would in any UTF-8 text file. The space-separated groups make the output easy to read and decode back.
How do I convert the binary back to text?
Use the companion Binary to Text decoder: paste the space-separated 8-bit groups and each is parsed as a base-2 number and converted back to its character. Working with hex instead? Browse all data converters.
How do you write "hi" in binary?
Lowercase hi is 01101000 01101001, because h is byte 104 and i is byte 105. Capitalising it changes both groups: Hi comes out as 01001000 01101001, since uppercase letters sit exactly 32 below their lowercase counterparts in ASCII. That offset is a single bit, the one worth 32, which is why the only difference between H and h is the third digit from the left.
What letter is 01101001?
The letter i. Read the eight positions as place values 128, 64, 32, 16, 8, 4, 2 and 1, then add the ones that carry a 1: 64 + 32 + 8 + 1 comes to 105, and byte 105 is lowercase i. The same arithmetic decodes any group here, and the Binary to Text decoder does it in bulk if you have a long string.
How do I convert text to binary in Python?
One line does it: ' '.join(format(b, '08b') for b in 'Hi'.encode('utf-8')) returns 01001000 01101001, matching this page exactly. Encoding to UTF-8 first is the part people skip, and it is what makes the result correct for text outside ASCII; iterating the string directly gives you code points rather than bytes.
Why does my binary differ from another converter I tried?
Almost always because the other tool reads code units instead of encoding to bytes. Take the single character é: this page encodes it as UTF-8 and returns two groups, 11000011 10101001, while a converter built on JavaScript's charCodeAt returns one group, 11101001, for code point 233. Neither is a bug, but only the byte form round-trips through a file or a network socket, which is why this page uses it.
Is my data private when I use this tool?
Yes. This tool runs entirely in your browser using client-side JavaScript — nothing you type is transmitted to, logged by, or stored on any server. You can safely process confidential text, tokens, or code.