Text to Binary Translator

Type words and get binary code back — with spaces, commas or no separator, in 8-bit or 7-bit.

Try:

how it works

How Text to Binary Conversion Works

Every character has a number. The letter A is 65, a is 97 and a space is 32. Writing that number in base 2 and padding it to eight digits gives one byte: 65 becomes 01000001. A word is simply its letters' bytes one after another, so “Hi” is 01001000 01101001.

To go the other way, paste the binary into the binary translator. To look up single letters, use the binary alphabet.

options

Separator and Bit Options

  • Space (default) — one byte per group, easiest to read: 01001000 01101001.
  • None — one continuous string, common in puzzles: 0100100001101001.
  • Comma — handy for pasting into code or spreadsheets: 01001000, 01101001.
  • 7-bit (ASCII) — drops the leading 0 of each byte: 1001000 1101001. English characters only.

examples

English to Binary Examples

Text8-bit binary7-bit ASCII
A010000011000001
Hello01001000 01100101 01101100 01101100 011011111001000 1100101 1101100 1101100 1101111
Good luck01000111 01101111 01101111 01100100 00100000 01101100 01110101 01100011 011010111000111 1101111 1101111 1100100 0100000 1101100 1110101 1100011 1101011
202600110010 00110000 00110010 001101100110010 0110000 0110010 0110110

by hand

Convert a word by hand, step by step

  1. Start with the exact letters in “Cat”, including the capital C. Look up each character's decimal code: C is 67, a is 97 and t is 116. These ASCII codes are also their Unicode code points; in UTF-8, each takes one byte.
  2. Work left to right through the place values below. If the value fits into the remaining number, write 1 and subtract it; otherwise write 0. For C: 128 does not fit into 67, so write 0; 64 fits, so write 1 and leave 3. Skip 32, 16, 8 and 4, then use 2 and 1 to reach zero. Keep all eight positions.
  3. Repeat for a and t. Check that the places marked 1 add up to each character's decimal code, then join the bytes in the original letter order.

Compare 36 tested UTF-8 byte cases to check why combining accents, emoji sequences, or a byte-order mark can produce different bytes.

CharacterDecimal code1286432168421Sum of places with a 18-bit byte
C670100001164 + 2 + 101000011
a970110000164 + 32 + 101100001
t1160111010064 + 32 + 16 + 401110100

The finished word is 01000011 01100001 01110100: three characters, three bytes, 24 bits. The spaces between these groups make them readable; they are not extra characters in “Cat”.

phrase reference

Common words and phrases in binary

Match the spelling and punctuation exactly. “Hello!” adds one byte to “Hello”; “ABC” and “abc” have different bytes. In multi-word phrases, each space in the original text becomes its own byte.

Text (case-sensitive)8-bit UTF-8 / ASCII (space-separated bytes)
Hello01001000 01100101 01101100 01101100 01101111
Hello!01001000 01100101 01101100 01101100 01101111 00100001
ABC01000001 01000010 01000011
abc01100001 01100010 01100011
I love you01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101
Hello World01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100
Thank you01010100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101
Yes01011001 01100101 01110011
No01001110 01101111

character details

Uppercase, lowercase, digits and spaces

For ASCII letters A–Z, the lowercase code is 32 more than the uppercase code. Only the bit worth 32 changes: A (65) is 01000001, while a (97) is 01100001. This rule is for ASCII letters, not every alphabet.

The digit character “7” has code 55, so its text encoding is 00110111. The numeric value 7 written in base 2 is 111. This page encodes the character you type.

Likewise, “2026” as text is four characters: 00110010 00110000 00110010 00110110. As a single number, 2026 in base 2 is 11111101010 (1024 + 512 + 256 + 128 + 64 + 32 + 8 + 2). These represent different things.

A space has code 32: 00100000. In “Hello World” above, it is the sixth byte. Removing that byte changes the message to “HelloWorld”; removing only the printed separators leaves the bytes intact.

common mistakes

Common mistakes

  • Dropping leading zeros. C needs all eight bits in 01000011. Removing a leading zero before joining bytes into a continuous 8-bit message shifts the byte boundaries.
  • Mixing 7-bit and 8-bit groups. In the earlier examples table, each row shows two separate formats. Pick one width for the whole message rather than combining columns.
  • Leaving out the space byte. The printed gap between bytes is a separator. A space between words needs its own 00100000 byte, as in “I love you” above.
  • Converting a number instead of its digits. For the text “2026”, encode each of the four digit characters. The single-number result is not their text encoding.
  • Changing case or punctuation. ABC and abc differ in every byte. Keep the exclamation mark when copying “Hello!” or the message loses its last byte.

faq

Frequently asked questions

How do I convert English to binary?

Type or paste your English text into the box. Each character is turned into its 8-bit code straight away, with a space between bytes. Change the separator or switch to 7-bit if your teacher or puzzle asks for it, then copy or download the result.

Should I use 8-bit or 7-bit binary?

Use 8-bit unless you were told otherwise: it is the standard byte and works for any character, including emoji. 7-bit is plain ASCII, the original code for English letters, digits and punctuation, and some textbooks write it that way. 7-bit cannot represent accented letters or emoji.

Why does an emoji or accented letter turn into several bytes?

UTF-8 stores English characters in one byte but needs two to four bytes for everything else. For example, é takes two bytes and 😀 takes four. Decoding the bytes together gives the character back.

Is a space converted to binary too?

Yes. A space is character 32, which is 00100000 in binary. The separator option only controls what goes between the bytes in the output; it does not change the bytes themselves.

Is my text uploaded?

No. Everything is converted in your browser. Your text is not sent to our server or saved anywhere.

more tools