Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Binary translator, ones and zeros, read.

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

Letters to bytes, bytes to bits.

01 / Bytes

UTF-8

Each letter becomes one to four bytes. Plain English letters are one byte each, the same as ASCII.

02 / Bits

Eight per byte

A byte is a number from 0 to 255, written with eight ones and zeros. "A" is 65, or 01000001.

03 / Bases

Same number, other digits

Hex writes a byte in two digits (41), octal in three (101), decimal as usual (65).

Guide

How to translate binary to text, and read it by hand.

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.

How to use the binary translator

  1. Type or paste words into the Text box to see them as binary, hex, octal and decimal.
  2. To read binary, paste it into the Binary box. Groups of eight separated by spaces work, and so does one long run of digits, as long as its length is a multiple of eight.
  3. Paste hex, octal or decimal into its own box in the same way. Prefixes such as 0x and 0b are ignored, and commas work as separators.
  4. Untick A space between bytes for one unbroken run of binary, hex or octal. Tick Hex in capitals for 4A instead of 4a.
  5. Read the status line. It shows the number of bytes, or says what is wrong with the input and which byte it is.
  6. Look at Byte by byte under the boxes: each character with its Unicode number, how many bytes it takes, and those bytes in binary and hex.
  7. Press Copy above any box to take its contents.

The two format switches are remembered in this browser. Your text is not stored.

How to read a byte of binary by hand

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 value1286432168421
H, 0100100001001000
i, 0110100101101001

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.

Patterns worth knowing

  • Capitals start with 010. A is 01000001 (65) and Z is 01011010 (90).
  • Small letters start with 011. A small letter is its capital plus 32, which is one extra bit. a is 01100001 (97), only one digit away from A.
  • Digits start with 0011. The character 0 is 00110000 (48), and the last four bits give the digit: 5 is 00110101.
  • A space is 00100000 (32). In a long run of binary, it is often the easiest byte to spot, which tells you where words break.

Letters beyond English and emoji

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.

CharacterBytesHexBinary
A14101000001
é2c3 a911000011 10101001
😀4f0 9f 98 8011110000 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.

When the text shows �

  • The bytes are not valid UTF-8. A byte is missing, one has a wrong digit, or the binary was made from a different text encoding. The text box shows � where the bytes stop making sense, the status line names the first byte that does not fit, and the table marks it as not valid.
  • A run is the wrong length. One long run must divide evenly into groups of 8 for binary, 2 for hex and 3 for octal. The box gets a red edge, the status line says how long the run is, and the other boxes keep the last good value. Add spaces between bytes if you are not sure.
  • A number is too big. One byte holds 0 to 255, which is 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

Good to know.

What is "hello" in binary?

01101000 01100101 01101100 01101100 01101111. Type it in the Text box to see each letter's byte.

Why does an emoji make four bytes?

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.

Why does the text show � after I pasted binary?

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.

Can I see which bytes belong to which letter?

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.

How many bits are in one letter?

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.

Can I paste binary without spaces?

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.

What is the difference between binary and hex?

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.

What is ASCII, and is it the same as this?

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.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch