Binary translator
Translate text to binary and binary back to text in real time. Switch between binary, decimal, hex, and octal output, and encode any language safely because every character is converted through its UTF-8 bytes. Everything runs in your browser, no signup.
UTF-8 safe: accents, CJK, and emoji are encoded byte-by-byte.
About the Binary translator
The binary translator converts between human text and the number bases a computer actually stores. Encode a message and each character is turned into its UTF-8 bytes, then each byte is written out in the base you pick: binary (base 2), decimal (base 10), hexadecimal (base 16), or octal (base 8). Decode and the process runs in reverse, reading whitespace-separated byte values back into readable text. Because the round trip goes through UTF-8, accented letters, Chinese or Arabic script, and emoji all survive intact instead of breaking, which is where naive character-code converters usually fail.
Reach for it when you are learning how computers represent text, checking a homework answer, decoding a binary puzzle or escape-room clue, or just satisfying the curiosity of seeing your own name as ones and zeros. It runs entirely in the browser, so nothing you paste is uploaded anywhere.
How to use it
- Pick a direction with the tabs: 'Text to Binary' to encode, or 'Binary to Text' to decode.
- Choose the number base — binary, decimal, hex, or octal — from the dropdown; it controls both how output is written and how input is read.
- Type or paste into the left panel. When decoding, separate each byte with a space (binary may also be one unbroken run that is a multiple of eight bits).
- Read the converted result on the right, where it updates live as you type.
- Use 'Swap' to push the result into the input and flip the direction to verify a round trip.
- Click 'Copy' to grab the output, or 'Clear' to reset both panels.
Examples
Encode a two-letter word to binary
Type Hi and pick binary. The output is 01001000 01101001 — H is 72 (01001000) and i is 105 (01101001). Each byte is padded to a full eight bits, which is why both groups are exactly eight digits long even though the numbers differ. That fixed width is what lets the decoder split a long run back into bytes.
Read the same letter across bases
The capital A is code point 65. In binary it is 01000001, in decimal 65, in hex 41, and in octal 101. Switching the base dropdown while 'A' is in the input shows all four side by side, which makes the relationship between the bases concrete instead of abstract.
Decode emoji without corruption
A single emoji is not one byte; it is several UTF-8 bytes. Encode a smiley and you get four byte values; decode those exact four back and the emoji returns whole. A converter that treats each character as a single 8-bit code would mangle it, because no value above 255 fits in one byte.
Frequently asked questions
- Why is each binary group eight digits long?
- A byte is eight bits, and modern text is stored as bytes. Padding every value to eight binary digits (or two hex digits, or three octal digits) keeps the byte boundaries visible, so the decoder can chop a long string back into individual characters without guessing where each one ends.
- What is UTF-8 and why does it matter here?
- UTF-8 is the dominant way to store text as bytes. Plain English letters take one byte each, but accented and non-Latin characters take two to four. Encoding through UTF-8 is what lets this tool handle any language and emoji correctly, rather than only basic ASCII.
- Can I paste binary as one long string with no spaces?
- Yes, as long as the total number of bits is a multiple of eight. The decoder will split it into eight-bit bytes automatically. For decimal, hex, and octal you must separate the byte values with spaces, since those tokens are not fixed width.
- What does an 'out of byte range' error mean?
- Each token has to fit in one byte, meaning a value from 0 to 255. If a number you pasted is larger — for example a decimal 300 — it cannot be a single byte, so the tool flags it rather than producing wrong text.
- Is binary the same as ASCII?
- Not quite. ASCII is a table that maps characters to numbers from 0 to 127; binary is just the base-2 way of writing any number. This tool shows the byte numbers (UTF-8, which extends ASCII) in whichever base you choose, so binary and ASCII are related layers, not the same thing.
Good to know
Computers store everything — text, images, sound — as numbers, and at the lowest level those numbers are binary, because a transistor is either on or off, one or zero. Hexadecimal and octal exist mainly as shorthand for humans: one hex digit packs exactly four bits and one octal digit exactly three, so a byte that takes eight binary digits needs only two hex digits. That is why memory dumps, colour codes, and byte-level debugging tools almost always use hex, even though the hardware underneath is pure binary.
A common confusion is mixing up a character's code point with its bytes. The letter A has code point 65, and in UTF-8 that happens to be a single byte, so the two look identical. But a character like é has code point 233 and is stored as two UTF-8 bytes, and an emoji can be four. This tool always works at the byte level so the round trip is exact, which is the right choice for encoding and transport. If you only want a character's numeric code point rather than its storage bytes, that is a different lookup. Everything here stays on your device, so even sensitive text is safe to convert.