01 / Bytes
UTF-8
Each letter becomes one to four bytes. Plain English letters are one byte each, the same as ASCII.
Free tool
Type text and see it as binary, hexadecimal, octal and decimal bytes, or paste ones and zeros and read the words they spell. Every box is live: change any one and the rest follow. Emoji and letters from any language work too, written as UTF-8, the way computers store text on the web, and a table shows each character byte by byte with the bits that hold it together.
Need a custom tool, app or website? Contact us →Byte by byte
Purple bits say where a character starts and how many bytes it has: 0 for one byte, 110 for two, 1110 for three, 11110 for four, and 10 for each byte that follows.
Format
Paste numbers with spaces, commas or as one long run: binary in groups of 8, hex in pairs. 0x and 0b in front are fine.
Everything happens in your browser. Nothing is uploaded.
How it works
01 / Bytes
Each letter becomes one to four bytes. Plain English letters are one byte each, the same as ASCII.
02 / Bits
A byte is a number from 0 to 255, written with eight ones and zeros. "A" is 65, or 01000001.
03 / Bases
Hex writes a byte in two digits (41), octal in three (101), decimal as usual (65).
Guide
A binary translator turns text into the ones and zeros a computer stores, and turns ones and zeros back into text. Each character becomes one or more bytes, and each byte is written as eight binary digits, called bits. This one also shows the same bytes in hexadecimal, octal and decimal, and every box is live, so you can type or paste into any of the five and the other four follow.
0x and 0b are ignored, and commas work as separators.4A instead of 4a.The two format switches are remembered in this browser. Your text is not stored.
Each of the eight positions in a byte has a value. Reading from the left, they are worth 128, 64, 32, 16, 8, 4, 2 and 1. Add up the values where there is a 1 and you have the number, then look up which character that number stands for.
| Position value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| H, 01001000 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| i, 01101001 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
For H, 64 + 8 is 72. For i, 64 + 32 + 8 + 1 is 105. In the standard character table that English text uses, 72 is H and 105 is i, so 01001000 01101001 spells Hi. You can check it by pasting those two bytes into the Binary box.
01000001 (65) and Z is 01011010 (90).01100001 (97), only one digit away from A.00110000 (48), and the last four bits give the digit: 5 is 00110101.00100000 (32). In a long run of binary, it is often the easiest byte to spot, which tells you where words break.The translator uses UTF-8, the way almost all text on the web is stored. Plain English letters, digits and common punctuation take one byte each. Other characters take two, three or four bytes, and the first bits of each byte say how many belong together.
| Character | Bytes | Hex | Binary |
|---|---|---|---|
| A | 1 | 41 | 01000001 |
| é | 2 | c3 a9 | 11000011 10101001 |
| 😀 | 4 | f0 9f 98 80 | 11110000 10011111 10011000 10000000 |
A first byte starting with 110 means two bytes, 1110 means three and 11110 means four, and every following byte starts with 10. The Byte by byte table shows those marker bits in purple, so you can see where each character starts. That is why the status line says, for example, 6 bytes for 5 characters when your text includes an é. The table lists the first 64 characters; the boxes always hold all of them.
11111111 in binary, ff in hex and 377 in octal. The status line names the byte that is too big and where it is.If you have ever seen é turn into é on a web page, this is the cause in reverse: the two UTF-8 bytes of é were read as two separate one-byte characters. Paste c3 a9 into the Hex box to see the bytes behind it.
For text sent as dots and dashes instead of ones and zeros, try the Morse code translator. To decode text written in Base64, use Base64 decode.
Questions
01101000 01100101 01101100 01101100 01101111. Type it in the Text box to see each letter's byte.
UTF-8 uses more bytes for characters further along the Unicode list: one for basic Latin letters, two for most accented and Greek, Cyrillic or Arabic letters, three for most Asian scripts, and four for emoji.
The bytes do not make valid UTF-8, often because a byte is missing or a digit is wrong. The status line says which byte is the first that does not fit. Check that the binary comes in groups of eight.
Yes. The Byte by byte table under the boxes lists each character with its Unicode number and its UTF-8 bytes in binary and hex, with the start bits in purple.
An English letter is one byte, which is 8 bits. Accented letters use 16 bits, many Asian characters 24 and emoji 32, because they take two, three and four bytes in UTF-8.
Yes. One long run of ones and zeros is split into groups of eight for you. If the length is not a multiple of eight, the status line tells you so.
They are two ways to write the same byte. Binary uses eight digits that are 0 or 1, and hex uses two digits from 0 to 9 and a to f, so hex is four times shorter and easier to read.
ASCII is the older table for English letters, digits and punctuation, using the numbers 0 to 127. UTF-8 gives those characters exactly the same single bytes, so plain English text is identical in both.