Text to binary converter

Type or paste any text and get its binary code instantly. Each character is converted to its UTF-8 byte value and written as 8 bits — for example, “A” is 65, which is 01000001.

How text is turned into binary

  1. Find each character’s code. Every character has a number. “A” is 65, “a” is 97, a space is 32 (see the ASCII table).
  2. Write that number in base 2. 65 = 64 + 1, so it is 1000001.
  3. Pad to 8 bits. Add a leading zero to make a full byte: 01000001.

“Hi” therefore becomes 01001000 01101001. For characters beyond ASCII, UTF-8 uses two to four bytes, and the generator writes each one.

Output options

  • Separator: space (easiest to read), none (one long run), comma or new line.
  • Format: binary, hexadecimal, decimal or octal — handy for programming, CTF puzzles and classroom work.
  • Copy, download or share: the share link reloads this page with your text already filled in.

Uppercase vs lowercase in binary

Uppercase and lowercase letters differ by exactly one bit — the 32s place (the third bit from the left). A is 01000001 and a is 01100001. Flip that bit and you change the case. See every letter in the binary alphabet chart.

Frequently asked questions

How do you write your name in binary?

Write each letter as its 8-bit code. For example, “Sam” is S = 01010011, a = 01100001, m = 01101101, so Sam is 01010011 01100001 01101101. Type your name into the converter to get yours instantly.

What is “hello” in binary?

hello is 01101000 01100101 01101100 01101100 01101111. With a capital H it starts 01001000 instead.

Is text to binary the same as ASCII to binary?

For English letters, numbers and punctuation, yes — ASCII and UTF-8 give the same single byte. They differ only for characters above 127, where UTF-8 uses several bytes.

How many bits is one letter?

One ASCII letter is one byte, which is 8 bits. Accented letters use 16 bits in UTF-8, and most emoji use 32 bits.

Keep going

Last reviewed 28 November 2026. Conversions run entirely in your browser.