Text to Binary Converter

Type text to see it as binary (UTF-8 bytes), or switch direction to decode 0s and 1s back into text.

Input
Output
Ready

How text becomes binary

Computers store text as numbers, and numbers as bits. Converting text to binary takes two steps: each character is turned into one or more bytes using a character encoding, and each byte is written as eight binary digits. This converter uses UTF-8, the encoding used by about 98% of websites, so the output matches what is actually stored in files and sent over the network.

Examples

CharacterUTF-8 bytesBinary
A101000001
a101100001
space100100000
é211000011 10101001
€311100010 10000010 10101100
👋411110000 10011111 10010001 10001011

Basic English letters, digits and punctuation take one byte each and match the old 7-bit ASCII codes, which is why "A" is 65 (01000001) in both. Everything else uses two to four bytes. Many simple converters get this wrong and output 16 bits or garbage for an emoji; this one encodes it correctly.

Reading binary back as text

Switch the direction to Binary → Text and paste the bits. Spaces, line breaks and any other characters between the digits are ignored, so you can paste 01001000 01101001 or 0100100001101001. The total number of bits must be a multiple of eight, and the bytes must form valid UTF-8, otherwise the tool tells you what is wrong instead of producing random symbols.

Why convert text to binary?

Frequently asked questions

What is "hello" in binary?
01101000 01100101 01101100 01101100 01101111 — one byte (8 bits) per letter, because all five letters are basic ASCII characters.
Why do some characters produce more than 8 bits?
UTF-8 uses 1 byte for ASCII characters and 2 to 4 bytes for everything else, such as accented letters, Chinese characters and emoji.
Is this ASCII or UTF-8?
UTF-8. For plain English text the result is identical to ASCII, because UTF-8 was designed to be backwards compatible.
Why does decoding say "not a multiple of 8"?
Each byte needs exactly 8 bits. A missing or extra digit somewhere shifts every following byte, so check the binary you pasted.

Related tools

Text to Hex, Base64 Encode/Decode, Hash Generator, URL Encode/Decode.