Skip to content

Text to Binary Converter

A Unicode-aware text-to-binary converter that exposes the actual UTF-8 bytes, bit count, character count, and hexadecimal representation.

Text becomes bytes before it becomes bits

Computers encode text as bytes. This tool uses UTF-8, the dominant Unicode encoding, then writes every byte as an 8-bit binary group.

Plain ASCII characters occupy one byte. Other characters can occupy two, three, or four UTF-8 bytes, which is why an emoji does not fit into one 8-bit group.

byteb7b6b5b4b3b2b1b0byte\rightarrow b_7b_6b_5b_4b_3b_2b_1b_0

Examples

ASCII example

Input

A

Show result

Result

01000001

Word example

Input

Hi

Show result

Result

01001000 01101001

Frequently Asked Questions

Is this ASCII or Unicode?

It uses UTF-8. ASCII characters keep their familiar one-byte values, while the rest of Unicode is encoded with multiple bytes as needed.

Are spaces included?

Yes. A space is UTF-8 byte 00100000.

References

Related Tools