TextBinary

14 characters · 17 bytes · 136 bits

Character breakdown

UTF-8, 8 bits per byte
CharacterCode pointBytesUTF-8 binary
HU+0048 72101001000
eU+0065 101101100101
lU+006C 108101101100
lU+006C 108101101100
oU+006F 111101101111
,U+002C 44100101100
SpaceU+0020 32100100000
wU+0077 119101110111
oU+006F 111101101111
rU+0072 114101110010
lU+006C 108101101100
dU+0064 100101100100
SpaceU+0020 32100100000
👋U+1F44B 128075411110000 10011111 10010001 10001011
Guide

How to convert text to binary

  1. Take each character and find its Unicode code point. H is number 72, written U+0048.
  2. Encode the code point as UTF-8. Basic English letters, digits and punctuation take one byte. Accented letters usually take two, and most emoji take four.
  3. Write each byte as 8 binary digits, adding leading zeros where needed. 72 becomes 01001000.
  4. Join the bytes, with spaces or another separator to keep them readable.

Worked example

Converting the text Hi!, one character at a time:

CharacterCodeBinary
H7201001000
i10501101001
!3300100001

Hi! → 01001000 01101001 00100001

  • A space is a character too. It's byte 32, or 00100000.
  • UTF-8 matches ASCII for the first 128 characters, so plain English text gives the same binary in both.
  • Most emoji take 4 bytes, which is 32 bits for a single symbol.
Learn

How text to binary conversion works

Character codes, ASCII and UTF-8, and what every byte of your text really means.

A text to binary converter turns letters, digits, punctuation and emoji into the 0s and 1s a computer actually stores. Type anything into the box above and you'll see its binary code instantly, one byte of eight bits at a time, along with a table showing exactly which bytes each character becomes. This guide explains what happens behind the scenes, so you can convert text to binary by hand and understand every result.

Every character is a number

Computers can't store letters directly. Instead, every character is given a number, called its code point, and that number is stored in binary. The capital letter A is number 65, a space is 32 and an exclamation mark is 33. Converting text to binary is really two steps: look up each character's number, then write that number in base 2. For example, the word Hello becomes the numbers 72, 101, 108, 108 and 111, which in binary are 01001000 01100101 01101100 01101100 01101111.

ASCII and UTF-8

The first widely adopted character code was ASCII, published in 1963. It uses 7 bits to describe 128 characters: the English alphabet in upper and lower case, the digits 0 to 9, common punctuation and a set of invisible control codes such as the line feed. ASCII has no room for accented letters, other alphabets or symbols like €, so many incompatible extensions appeared over the years.

Unicode solved that by giving every character in every writing system its own code point, with room for more than a million of them. UTF-8, designed in 1992, is the most common way to store Unicode as bytes, and it's what the vast majority of websites use today. Its key feature is backward compatibility: the first 128 characters are stored exactly as in ASCII, using a single byte. That's why this text to binary converter gives the same result as an ASCII to binary converter for plain English text, while still handling every other character correctly.

How UTF-8 turns characters into bytes

UTF-8 uses between one and four bytes per character, and the first bits of each byte tell a decoder how long the character is. The x positions below hold the bits of the code point itself:

BytesBit patternExample
10xxxxxxxA → 01000001
2110xxxxx 10xxxxxxé → 11000011 10101001
31110xxxx 10xxxxxx 10xxxxxx€ → 11100010 10000010 10101100
411110xxx 10xxxxxx 10xxxxxx 10xxxxxx👋 → 11110000 10011111 10010001 10001011

This design means a decoder can always tell where a character starts, even in the middle of a stream of bytes, and it's why a single emoji can take 32 bits. Look at the character breakdown under the converter to see how many bytes each of your characters uses.

Letters, digits and spaces

A few patterns make binary text easier to read once you know them. Capital letters start at 01000001 and lowercase letters at 01100001. The two cases differ by a single bit, worth 32, so switching between A and a flips just one bit. Digits are characters too: the character 7 is stored as 55, or 00110111, which is different from the number 7 in binary, 111. A space is 00100000, and pressing Enter in the text box adds a line feed, 00001010.

Binary isn't encryption

Turning a message into binary code makes it look unreadable, but it doesn't hide anything. Anyone can paste the bits into a binary to text converter and read the original message in seconds, because the mapping between characters and bytes is public. Binary is great for puzzles, classroom exercises and showing how computers store data, but if you need to keep information private, use real encryption instead.

Where text to binary is useful

  • Learning and teaching. Seeing a name or sentence as bytes makes character encoding concrete for computer science students.
  • Debugging. Developers inspect the exact bytes of a string to track down encoding problems, invisible characters or unexpected line endings.
  • Puzzles and messages. Binary-coded messages are popular in escape rooms, geocaches, gifts and social media posts.
  • Data formats. Network protocols and file formats store text as UTF-8 bytes, so knowing the encoding helps when you read raw data.

Working with the binary output

  • Choose a separator to put spaces, commas or line breaks between bytes, or remove them to get one continuous string of bits.
  • Copy the binary code, then paste it into the binary translator to check that it decodes back to the same text.
  • To see the same bytes in hexadecimal, decimal or octal, use the text converter on the homepage, or convert the result with the binary to hex converter.
  • Everything runs in your browser, so you can convert private text without sending it anywhere.

One rule covers most text: plain English is one byte per character, and anything beyond ASCII takes two to four. Type a word with an accent above and watch the byte count change.

FAQ

Frequently asked questions

Quick answers about the text to binary converter and how it works.

How do I convert text to binary?

Type or paste your text into the Text box. Each character is encoded as UTF-8 bytes, and each byte is written as 8 binary digits. Hi becomes 01001000 01101001.

The character breakdown under the tool shows the code point and bytes of every character.

What is the letter A in binary?

Capital A is character 65, which is 01000001. Lowercase a is 97, or 01100001.

Upper and lowercase letters differ by exactly one bit, the one worth 32.

Why do some characters take more than 8 bits?

UTF-8 uses between 1 and 4 bytes per character. English letters, digits and common punctuation take 1 byte. Most accented letters take 2, so é is 11000011 10101001. Symbols like € take 3, and most emoji take 4.

Is this ASCII or UTF-8?

UTF-8, the encoding used by almost every website and modern program. For the first 128 characters, including all plain English text, UTF-8 and ASCII produce exactly the same bytes, so you get ASCII binary too.

Can I remove the spaces between bytes?

Yes. Use the separator menu to put a space, a comma or a line break between bytes, or no separator at all. The bits themselves don't change.

How do I turn the binary back into text?

Copy the result and paste it into Binary to Text. It reads bytes with or without separators.

Still have a question?Contact us