Every character on a computer is stored as a number, and a number as a sequence of zeros and ones. The letter "A" in the standard ASCII table is the number 65, and in binary form 01000001. Eight binary digits make up one byte, and for most Latin characters and digits, one byte is enough to encode a character fully. Accented letters and other characters outside ASCII are encoded differently – usually via UTF-8, where one character takes two bytes or more.
The wrong number of digits. A byte is exactly eight digits; if a leading zero is dropped by hand, the number shifts and the code falls out of alignment. Mixing up encodings. The same accented character gives a different binary code in different encodings – it matters which one is meant: ASCII, UTF-8 or another table. Confusing number systems. A number that looks binary at first glance might actually be decimal – there is no way to tell the system for certain without context.
Learning. Understanding how a computer represents numbers and text at a low level. Debugging. Looking at how a specific character or a short string looks bit by bit. Simple message encoding. Showing text in an unfamiliar form – binary code is also used as a kind of puzzle for fun.
No, it is just a different way of writing the same data. Anyone who knows the principle of binary encoding can decode the text with no key at all – there is no secrecy involved here.
Latin letters and digits fit into a single byte in ASCII encoding, while a letter such as é in UTF-8 takes two bytes and an emoji takes four – hence the difference in the length of the final binary string for the same number of letters.
Usually each character is represented by eight digits (one byte) and separated from its neighbor by a space – that way the tool can tell exactly where the code for one letter ends and the next one begins.
Yes, a number is converted to binary the same way as any other character – it is represented by digits, which are also encoded in ASCII or handled as a numeric value.
Choose a direction – "Text to binary" or "Binary to text" – paste the content into the "Content" field and press "Convert". The conversion works both ways.
| System | Base | Digits | Example: number 26 |
|---|---|---|---|
| Decimal | 10 | 0–9 | 26 |
| Binary | 2 | 0–1 | 11010 |
| Octal | 8 | 0–7 | 32 |
| Hexadecimal | 16 | 0–9, A–F | 1A |
Converting from one number system to another only changes the way it is written, not the number itself: 26, 11010, 32 and 1A are the same value in four different systems.
Hexadecimal is convenient because four binary digits collapse into exactly one hexadecimal digit, which is why it is often used as a compact way of writing binary data – for example, in HEX color codes.
For color HEX codes, which are also built on the hexadecimal system, the color converter fits. For a different way to reversibly encode text or a file, there is Base64 encoding.