A two-way binary text translator that converts plain text to 8-bit binary and back, and also to and from the decimal and hexadecimal values of every character. It is built for students learning how computers store text, developers debugging byte streams, and anyone who wants to turn a message into 0s and 1s — or read a binary string someone sent them. The preview updates live in both directions, so you can type into either side and instantly see the matching output.
How it works
Under the hood, every character you type is converted into its Unicode code point — the
numeric identity each character is assigned in the Unicode standard. The capital letter A is
code point 65, a space is 32, and the digit 0 is 48. Once a character is a number, it can be
written in any base. In binary it becomes a string of 0s and 1s; standard ASCII characters
fit neatly into eight bits, which is why A shows as 01000001. In decimal it stays as a
familiar base-10 number, and in hex it is written in base 16, so A becomes 41.
Because each step is just a change of numeral base, the whole process is perfectly reversible. Decoding reads each group, parses it back to a code-point number, and rebuilds the original character. The decoder is forgiving about layout: it accepts groups separated by spaces, commas or newlines, and it can also read a continuous binary stream whose length is a multiple of eight, or continuous hex pairs. If a group is not valid for the chosen base, the tool tells you exactly which one is wrong instead of silently producing garbage.
You also get a few extras: a Swap button that flips input and output, a list showing all three representations of the same text at once, per-variant Copy buttons, and a fun Beep bits button that plays the binary as tones using the Web Audio API — a high pitch for 1 and a low pitch for 0.
Example
Take the word Gera. Each letter is converted to its code point, then to binary:
| Letter | Decimal | Hex | Binary (8-bit) |
|---|---|---|---|
| G | 71 | 47 | 01000111 |
| e | 101 | 65 | 01100101 |
| r | 114 | 72 | 01110010 |
| a | 97 | 61 | 01100001 |
So Gera encodes to 01000111 01100101 01110010 01100001 in binary, 71 101 114 97 in
decimal, and 47 65 72 61 in hex. Paste any of those back in, choose the matching numeral
system, and the translator returns Gera exactly. Every figure is computed in your browser —
nothing is uploaded or stored.