Every letter on this page is, underneath, a row of switches. When you press the H key, your computer does not store the shape of the letter. It stores the number 72, as eight tiny switches, some on and some off: 01001000. That is binary code, and once you see how the counting works, you can read and write it yourself.

This guide builds the idea from one switch up to full words, using the free Text to Binary Converter on Ovatly to verify each step. It also covers where the simple picture stops working: accented letters and emoji, which UTF-8 handles and single-byte tables do not.

Contents

  • Quick answer
  • A bit is one switch
  • Eight bits make a byte
  • How a byte becomes a letter
  • Worked example: turning "Hi" into binary by hand
  • Where ASCII ends and UTF-8 begins
  • How to convert text to binary and back, step by step
  • Limitations and honest edges
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Binary code is a way of writing numbers using only the digits 0 and 1. One digit is a bit; eight bits grouped together are a byte, and a byte can hold any value from 0 to 255. Text is stored by giving each character a number: H is 72, which in binary is 01001000. To convert your own text, open the Text to Binary Converter, choose Text to binary, type or paste your text, and read the 8-bit groups it produces. Choose Binary to text and paste the groups back, and you get your original text returned, because the converter works on UTF-8 bytes and handles accented letters and emoji correctly.

A bit is one switch

A bit is the smallest piece: a single position that is either 0 or 1, off or on. One bit can only say two things, which is not much. The power comes from grouping. Two bits give four combinations: 00, 01, 10 and 11. Three bits give eight. Every extra bit doubles the number of combinations, so eight bits give 256 different patterns, enough for every letter, digit and punctuation mark, with room to spare.

Eight bits make a byte

A group of eight bits is a byte, and you read it using place values, the same idea as ordinary decimal counting but with twos instead of tens. Reading from left to right, the eight positions are worth 128, 64, 32, 16, 8, 4, 2 and 1. To read a byte, add up the values of the positions that hold a 1. To write a number as a byte, work from the left: take the largest place value that fits, mark a 1 in that position, and continue with what is left over. Positions you skip get a 0; the leading zeros keep every byte eight bits wide.

How a byte becomes a letter

Numbers alone are not text. The bridge is an agreed table that assigns a number to each character. In the table plain text still uses today, capital H is 72, lowercase i is 105 and a space is 32. When software displays the byte 72, it looks the number up and draws an H. When you type an H, it stores 72. Nothing about the shape of the letter is stored at all, which is why the same stored byte can appear in any font you choose.

Worked example: turning "Hi" into binary by hand

Take the word "Hi". H is byte 72. Build 72 from the place values: 128 does not fit, so the first bit is 0. 64 fits and leaves 8, so the second bit is 1. 32 and 16 do not fit into what remains, so those bits are 0. 8 fits exactly, so that bit is 1, and the last three bits are 0. The byte is 01001000. Check it by adding the marked places: 64 + 8 = 72.

The second letter, i, is byte 105. 64 fits and leaves 41. 32 fits and leaves 9. 16 does not fit. 8 fits and leaves 1. 4 and 2 do not fit. 1 fits. The marked places are 64, 32, 8 and 1, which add to 105, and the byte is 01101001.

So "Hi" in binary is:

01001000 01101001

Paste that binary into the reverse direction of the converter and you get "Hi" back. Decoding is the same table read the other way: each 8-bit group becomes a byte value, and each byte value becomes its character.

Where ASCII ends and UTF-8 begins

The original table, ASCII, covers English letters, digits and common punctuation, and it fits in one byte per character. For plain English text, UTF-8 uses exactly the same bytes, so an ASCII binary chart gives the right answer for a word like "Hi". The two part ways at anything beyond that set. An accented letter has no ASCII byte at all; in UTF-8 it takes two bytes, so it produces two 8-bit groups. Most emoji take four bytes, so one emoji produces four groups, 32 bits in total. A converter that assumes one byte per character breaks on exactly this kind of text. One that works on UTF-8 bytes, as the Ovatly converter does, handles it correctly.

How to convert text to binary and back, step by step

  1. Open the Text to Binary Converter and choose a direction: Text to binary or Binary to text.
  2. Type or paste the input. For binary input, write 8-bit groups separated by spaces. A single unbroken run also works, as long as its total length is a multiple of 8.
  3. Read the converted output. If something is wrong with the input, the tool explains the problem in plain words instead of producing a partial result.
  4. Copy or download the result. To check your work, paste the output into the opposite direction and confirm you get your starting text back.

Limitations and honest edges

The converter reports invalid byte sequences as an error instead of replacing them with placeholder characters. That is the honest behaviour, but it means one wrong digit in a long paste can stop a decode until you find the group that is wrong. Binary is also not a way to hide text: the mapping is public and fixed, so anyone can convert it back in seconds. And while the place-value method works for any byte, converting long text by hand is slow and invites mistakes. By hand is for learning and for checking; the tool is for volume. For a practical use of all this, see How to Write Your Name in Binary, which turns a name into a poster-ready design.

Common mistakes

  • Dropping the leading zeros. A byte is always eight bits. Writing 72 as 1001000, seven bits, breaks the grouping, and a decoder reading in eights will slice everything after it in the wrong places.
  • Losing the spaces when copying by hand. The spaces are how you, and the tool, keep the byte boundaries straight. An unbroken run only decodes when its total length is a multiple of 8.
  • Assuming one character always means one group. Accented letters take two groups and most emoji take four, so counting characters instead of groups gives the wrong length for the whole message.
  • Reading the byte right to left. Place values run from 128 down to 1, left to right. Reversing the order turns 01001000 into a different number entirely.

FAQs

What is the difference between a bit and a byte? A bit is a single 0 or 1, the smallest unit of binary code. A byte is eight bits grouped together, which gives 256 possible values, from 00000000 to 11111111. Characters are stored as byte values, so the letter H is the byte 72, written as 01001000.

Why does one emoji produce 32 bits? Most emoji are four bytes in UTF-8, and each byte becomes one 8-bit group when converted, so a single emoji shows as four groups, which is 32 bits. The converter works on UTF-8 bytes, so emoji convert correctly instead of breaking the way they do in single-byte converters.

Is binary code the same as an ASCII chart? For plain English letters, digits and punctuation, yes: UTF-8 and ASCII agree on those bytes, so H is 72 in both. They differ once text includes accented letters or emoji, which ASCII cannot represent at all and UTF-8 stores in two to four bytes.

Can I type binary without spaces between the groups? Yes, if the total length is a multiple of 8. The converter splits an unbroken run into bytes automatically. Mixed or odd lengths are rejected with an explanation, because there is no reliable way to guess where the byte boundaries fall.

What happens if the binary I paste is not valid? The converter reports the invalid byte sequence as an error instead of replacing it with placeholder characters. When you decode by hand, that tells you a group is wrong instead of silently producing a wrong letter.

Conclusion

Try it yourself: open the converter, type your initials, and read the groups it gives you. Then switch to Binary to text, paste the groups back, and watch your initials return. That round trip is the whole system in miniature: characters become byte values, byte values become 0s and 1s, and the same steps in reverse give you the characters back. More guides in this series are collected under Text and Writing Tools.