Text to binary

Type any text and turn it into 8-bit binary code, ready to copy.

More options

Each group is one byte, not one character: accented letters take two and most emoji take four. Spaces and line breaks get encoded too. It all runs in your browser: your text is never uploaded.

Example input and result

Hello 👋

Result

01001000
01100101
01101100
01101100
01101111
00100000
11110000
10011111
10010001
10001011

How to convert text to binary code

Type or paste into “Your text” and the binary appears in “Result” as you type. Hi becomes 01001000 and 01101001, one 8-bit group per letter. By default each group sits on its own line. To change that, open “More options” and pick a “Separator”: “New line”, “Space”, “Comma” or “None”. Then use “Copy result” or “Download TXT” to take the code with you.

  • “New line” (default): one byte per line
  • “Space”: 01001000 01101001
  • “Comma”: 01001000, 01101001 (a comma plus a space)
  • “None”: 0100100001101001

Why some characters turn into several bytes

The converter encodes your text as UTF-8, so each group is a byte rather than a visible character. Unaccented letters, digits, and basic punctuation take one byte, accented letters take two and most emoji take four. café gives five groups, not four: 01100011 01100001 01100110 11000011 10101001. Binary to text turns all of it back into the original, accents and emoji included.

Spaces, line breaks and capital letters in binary

The converter doesn't trim anything. Each space becomes 00100000 and each line break 00001010, so a trailing space adds one extra group and the result no longer matches an answer key. Capitals change the code as well: A is 01000001 and a is 01100001. Output tops out at one million characters, which with the default separator covers more than 100,000 plain letters.

Things people write in binary

Binary looks like a secret code to anyone who doesn't know how to read it, which is most of the fun. If the text is going somewhere permanent, like a card, a print or a tattoo, paste the result into Binary to text once to confirm it reads back the way you meant.

  • Your name for a computer science assignment
  • A message like I love you: 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101
  • Text for a card, a drawing, a bracelet or a tattoo
  • A geeky gamer tag or social bio
  • Test data while learning how computers store text

Frequently asked questions

How do I write my name in binary?

Type your name in the box and copy the result. Ana becomes 01000001 01101110 01100001. A name with an accent, like José, gets two groups for the accented letter: 01001010 01101111 01110011 11000011 10101001.

Why does one character give me two or more groups?

Each group is one UTF-8 byte, not one character. Plain letters fit in a single byte, accented letters need two and most emoji need four. That's expected, and Binary to text decodes the full sequence back into the original character.

How do I put spaces between the bytes?

Open “More options” and set “Separator” to “Space”. You can also choose one byte per line, commas, or “None” for one unbroken string of bits. The separator only changes the layout; the bits stay the same.

Is binary different for uppercase and lowercase letters?

Yes. Capital A is 01000001 and lowercase a is 01100001, so only the third bit changes. Hi and hi give different results, so match the capitals your assignment uses if it expects an exact answer.

How do I turn binary back into text?

Use Binary to text: paste the 8-bit groups and you get the original text back, accents and emoji included. It accepts groups separated by spaces, line breaks or commas, so the output from this page pastes in as is.

Copied text!