Home › Ciphers › Binary Translator
Binary Translator
Binary is the alphabet computers actually think in: every letter you type is stored as bytes, and every byte is eight bits — eight 0s and 1s. This translator converts text to its binary form (H becomes 01001000) and, just as usefully, converts strings of binary back into the text they represent — the direction puzzle trails, computing classes and CTF beginner tiers actually need.
Binary translation writes each character as the bits of its bytes: a character becomes one or more bytes through UTF-8 (plain English letters use one byte each, equal to their ASCII code), and each byte is written in base 2 as eight digits. It is a representation, not a cipher — there is no key, and the mapping is public. Groups are spaced byte by byte purely so humans can keep their place; real binary data has no spaces in it.
Looking at binary and want the compact form instead? Every four bits are one hex digit. Not sure the string in front of you is binary at all? The Cipher Identifier will say.
Text to binary, or binary to text
Everything runs in your browser — nothing is uploaded.
Eight place values make a byte
Binary counts in powers of two. Inside a byte, the eight bit positions are worth 128, 64, 32, 16, 8, 4, 2 and 1, and a byte's value is the sum of the positions holding a 1. The letter H has code 72, and 72 = 64 + 8, so its bits are 01001000 — the 64 and 8 positions switched on, everything else off. Lowercase i is 105 = 64 + 32 + 8 + 1, giving 01101001. Decoding reverses it: read each group of eight as a number, collect the bytes, and interpret them as UTF-8 text.
| Bit position | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| H = 72 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| i = 105 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
The case bit, and other gifts of the layout
Look at the two rows: capitals begin 010 and lowercase letters begin 011. The third bit is the case bit — flip it and A (65, 01000001) becomes a (97, 01100001). That single-bit difference is a beloved exam question, a handy way to eyeball binary at speed, and the deep reason ASCII sorts all capitals before all lowercase letters. The Reference section below collects more of these landmarks.
When one character needs several bytes
ASCII's 128 codes cover plain English and no more. UTF-8 — the encoding the whole web now uses — keeps those bytes identical and adds a scheme for everything else: characters beyond ASCII take two, three or four bytes, with the leading bits of the first byte announcing how many. The é in café is two bytes, 11000011 10101001; an emoji is four. This translator works on the real UTF-8 bytes in both directions, so accented letters and emoji survive the round trip exactly.
Leibniz's arithmetic becomes the machine's alphabet
Binary arithmetic was described in print by Gottfried Wilhelm Leibniz in 1703, in his paper Explication de l'arithmétique binaire. Leibniz was struck by the correspondence between his 0s and 1s and the broken and unbroken lines of the Chinese I Ching hexagrams, which he took as evidence the idea was ancient. For two and a half centuries binary remained a mathematical elegance; it became infrastructure when electronic computers needed a notation matching their two-state circuits — a switch is on or off, a bit is 1 or 0.
The other half of this page's story is the character code. ASCII, first published in 1963 and revised in 1967, fixed the numbers 0–127 for English letters, digits and punctuation — the table every byte in this page's examples still obeys. UTF-8, designed by Ken Thompson and Rob Pike in 1992 and presented in 1993, extended that table to every writing system while leaving ASCII bytes untouched — the reason a 1963 letter code and a modern emoji can live in the same string of bits.
- 1703 — Leibniz publishes binary arithmetic.
- 1963 / 1967 — ASCII fixes codes 0–127 for English text.
- 1992–93 — Thompson and Pike design UTF-8; ASCII bytes remain valid within it.
- Today — the overwhelming majority of web pages are encoded in UTF-8.
Reading binary by eye: the ASCII landmarks
Nobody reads raw binary for pleasure, but five patterns make it scannable — and exam-friendly:
| Pattern | Meaning |
|---|---|
| 010xxxxx | A capital letter (A = 01000001). All capitals live in 01000001–01011010. |
| 011xxxxx | A lowercase letter (a = 01100001). The third bit is the case bit: flip it and A ↔ a. |
| 0011xxxx | A digit: 0 is 00110000, 9 is 00111001 — the low half is the digit's own value. |
| 00100000 | The space (32) — the most common byte in real text, so long binary strings visibly “breathe” every few groups. |
| 110 / 1110 / 11110… | UTF-8 multi-byte characters: the leading bits announce the byte count (2, 3 or 4), and continuation bytes all start 10 — an emoji is four groups deep. |
With those five, a binary string stops being noise: you can pick out the spaces, guess the case runs, and spot the non-English bytes before decoding a thing.
The alphabet in binary
The capital letters, generated from the same byte table the translator uses — print the page and this strip becomes a pocket decoder:
A–Z in binary (ASCII 65–90)
Two conversions, byte by byte
Example 1 — Hi
H is ASCII 72: 64 + 8 → bits 01001000. Lowercase i is ASCII 105: 64 + 32 + 8 + 1 → 01101001. Notice the pattern from the landmarks table in action — the capital starts 010, the lowercase letter starts 011, and only the case bit and the letter's own offset differ.
Example 2 — café, four letters, five bytes
c, a and f are plain ASCII (99, 97, 102). The é (U+00E9) is beyond ASCII's 127, so UTF-8 writes it as the two bytes 11000011 (195) and 10101001 (169) — the first begins 110, announcing “two bytes”, and the second begins 10, marking it as a continuation. Decode the string above and the é comes back whole; a tool that treated each byte as its own character would show you two junk symbols instead.
Lost bits fail loudly here
Binary is unforgiving of copying errors: lose a single bit and every byte after it shifts, turning the rest into nonsense. So this decoder is strict on purpose, and names what is wrong:
- A group that is not eight bits: the error names the group and its length. A group of seven means a bit was dropped in copying — there is no honest way to guess which one, so the tool refuses rather than inventing it.
- A bit count that is not a whole number of bytes: unspaced binary must divide by eight exactly; the error tells you how many bits are over or under.
- A character that is not 0 or 1: the string is not binary, or the paste picked up extra text — the error names the character.
- It decodes to byte-soup: the bits were a binary file, compressed data or encrypted data — valid bytes, never text.
And the standing disclaimer: binary is a spelling, not a lock. Anyone can translate it back; it protects nothing. Its honest jobs are teaching, debugging and puzzle layers.
Binary among its neighbours
| Relative | How it differs | Solve it with |
|---|---|---|
| Hex | The same bytes at a quarter of the length: each hex digit is exactly four bits, so hex can be read off binary without arithmetic | The Hex Converter |
| Base64 | Six bits per character instead of one — the transport encoding built for channels binary cannot cross | The Base64 Decode page |
| Morse code | Also a two-symbol code, but variable-length and timed: dots and dashes carry structure in their gaps, not in fixed groups of eight | The Morse Code Translator |
| A1Z26 | Letters as decimal positions (A=1 … Z=26) — the pencil-and-paper cousin, readable without any machinery | The A1Z26 page |
Where binary earns its keep
Binary translation is a staple of three worlds. In computing classes it is the moment the abstraction becomes concrete: students encode their own initials, discover the case bit, and stop believing computers store “letters”. In puzzle hunts and CTFs, a wall of 0s and 1s is the classic doormat layer — intimidating at a glance, mechanical once recognised, and usually wrapped around something more interesting, which is why the Cipher Solver tries binary early in its chain. And in real systems work, thinking in bits is unavoidable: file permissions are three-bit groups (read, write, execute — 111 is all three, which is why chmod 7 means “everything”), network masks are bit patterns, and every file format begins with bytes you will meet in binary sooner or later. The translator's job in all three worlds is the same: make the machine's alphabet legible to the humans nominally in charge of it.
One to decode, one to encode
Practice 1 — decode
Reveal the answer
“OK” — 01001111 is 79 (O), 01001011 is 75 (K). Both start 010: two capitals, as the landmarks predict.
Practice 2 — encode
Reveal the answer
01000111 01101111 — G is 71 (64 + 4 + 2 + 1), o is 111 (64 + 32 + 8 + 4 + 2 + 1). Watch the third bit flip between the capital and the lowercase letter.
The printable cipher cheat sheet keeps the binary alphabet beside hex and Base64 for classrooms and puzzle kits.
Binary is this page. The neighbours:
Frequently asked questions
Is binary a code or a cipher?
Neither, strictly — it is the base-2 spelling of bytes. Codes replace meanings (a code word for a phrase), ciphers transform letters under a key; binary just writes numbers in the only alphabet machines have. It feels like a secret code because it is illegible at a glance, but the mapping is public and fixed.
Why does binary travel in groups of eight?
Because the byte — eight bits — is the unit modern computers address, and character codes are assigned per byte. A group of seven or nine in pasted binary means the copy is damaged; this tool names the faulty group instead of guessing, because one lost bit garbles everything downstream of it.
Can binary hold emoji and accented letters?
Yes — through UTF-8. Anything with a Unicode code point becomes a sequence of bytes (two for é, four for most emoji), and each byte becomes eight bits. This translator uses the real UTF-8 bytes in both directions, so café and 😀 round-trip exactly.
Why is my binary string so long?
Eight digits per byte is the least compact spelling there is — a sentence becomes a paragraph. That is the honest price of showing every bit. If you only need the bytes shorter, hex quarters the length and Base64 shrinks it further; the information is identical in all three.
Who invented binary?
Leibniz published binary arithmetic in 1703 and saw a precedent in the I Ching's hexagrams. It stayed a mathematical curiosity until electronic computers — built from two-state switches — made it the machine's native notation, and ASCII (1963) plus UTF-8 (1992) fixed what the bytes mean as text.
Does my text leave my device?
No. The translation runs entirely in your browser.