Binary Converter
Turns text into 0s and 1s and back again, and converts numbers between decimal, binary, hexadecimal and octal.
The conversion runs in your browser; nothing you type is sent to a server. Text is encoded as UTF-8: accented letters and emoji take more than one byte (group of 8).
How to use
- Type the text in the left box; its binary form appears on the right at once.
- To go the other way, paste the 0s and 1s into the right box.
- To convert a number, type in any of the four boxes below; the other three fill in themselves.
- Take the result with the Copy buttons.
How text becomes 0s and 1s
Every character has a number. That number is turned into bytes, and each byte into an eight-digit binary number:
| Character | Number | Binary |
|---|---|---|
| A | 65 | 01000001 |
| a | 97 | 01100001 |
| 0 | 48 | 00110000 |
| space | 32 | 00100000 |
| é | 233 (2 bytes) | 11000011 10101001 |
The tool uses UTF-8: English letters take one byte, accented letters two, emoji four. That's why “é” shows up as two groups of eight.
The four number bases
| Base | Digits | How 255 is written | Where it's used |
|---|---|---|---|
| Decimal (10) | 0–9 | 255 | Everyday life |
| Binary (2) | 0–1 | 11111111 | Hardware, bit operations |
| Hexadecimal (16) | 0–9, A–F | FF | Colour codes, memory addresses, hashes |
| Octal (8) | 0–7 | 377 | Unix file permissions (chmod 755) |
One hex digit stands for exactly 4 bits and one octal digit for exactly 3. That makes converting to and from binary easy: 1111 1111 → F F.
For file and text digests see the hash generator; to embed binary data in text see the Base64 tool.
Limits and common mistakes
- Missing digits: when converting to text, the total number of digits must be a multiple of 8. Don't drop leading zeros: “A” is
01000001, not1000001. - Non-negative whole numbers only: the number section doesn't convert negative or fractional numbers.
- Prefixes are fine: numbers written with
0x,0band0oare accepted. - Binary is not encryption: anyone can turn it back in seconds; it's no way to hide a secret.
Glossary
- Bit
- A single 0 or 1; the smallest unit of information.
- Byte
- 8 bits; holds a number from 0 to 255.
- UTF-8
- The common text encoding that turns each character into 1 to 4 bytes.
- ASCII
- The older table numbering English letters and symbols 0–127; identical to UTF-8 in that range.
- Hex
- Base sixteen; the letters A–F stand for the values 10–15.
Frequently asked questions
What is binary code?
A number system written with only the digits 0 and 1. Computers store everything (text, images, sound) as sequences of those two digits.
How many bits is one letter?
English letters, digits and punctuation take 8 bits (1 byte). Accented letters such as “é” take 16 bits, and emoji take 32.
How do I convert binary to text?
Paste the 0s and 1s into the box on the right. Spaced or unspaced makes no difference, as long as the total number of digits is a multiple of 8.
How is “Hi” written in binary?
01001000 01101001. The first group of eight is “H” (72), the second is “i” (105).
What is hexadecimal used for?
For writing binary numbers compactly. Each hex digit stands for 4 bits, which is why colour codes (#FF8800) and memory addresses are written in hex.
Can I convert very large numbers?
Yes. The number base section has no digit limit; numbers larger than 64 bits convert correctly too.
Are negative and fractional numbers supported?
No, only non-negative whole numbers. The binary form of a negative number depends on how many bits are used.