How to use the Binary Converter
- Choose Text → binary, Binary → text, Number → binary or Binary → number.
- Type or paste your input – several numbers can go on separate lines.
- Copy the converted output.
About this tool
This binary converter works four ways: text to binary, binary to text, number to binary and binary to number. Computers store everything as binary digits (bits): text as bytes of eight bits, and numbers in base 2. This tool translates between that binary code and what people read.
For text it uses UTF-8, the encoding used by almost every website, so accented letters and emoji convert correctly into several bytes. Choose whether to separate the bytes with spaces, and paste binary with or without spaces to decode it back to text. For numbers, type one or more whole numbers – one per line, or separated by spaces or commas – to get their binary values, or paste binary numbers to turn them back into decimal. Very large numbers convert exactly.
Text to binary: a worked example
Each character becomes its UTF-8 byte value, and each byte is written as eight bits.
| Character | Code | Binary |
|---|---|---|
| H | 72 | 01001000 |
| i | 105 | 01101001 |
| ! | 33 | 00100001 |
So "Hi!" in binary is 01001000 01101001 00100001. A space is 32 (00100000), and capital letters start at A = 65 (01000001).
Number to binary: how it works
Binary is base 2. Each position is worth double the one to its right: 1, 2, 4, 8, 16, 32, 64, 128 and so on. To write 45 in binary, find the powers of 2 that add up to it:
45 = 32 + 8 + 4 + 1, so 45 = 101101.
Reading it back, add the place values wherever there is a 1: 32 + 0 + 8 + 4 + 0 + 1 = 45. The Binary to Decimal and Decimal to Binary converters show every step of the working, which helps with homework and exams.
Why some characters take more than 8 bits
UTF-8 uses one byte for the 128 basic ASCII characters (English letters, digits and common symbols), and two to four bytes for everything else. "é" takes 2 bytes, most Chinese characters take 3, and emoji such as 👋 take 4. That is why a short message with emoji produces a much longer string of binary. For more background, read what is ASCII and how to convert text to binary.
Common uses
- Checking computer science homework and exam answers
- Decoding binary messages in puzzles, escape rooms and secret notes
- Learning how text and numbers are stored and sent between computers
- Converting values for programming, networking and electronics
Working with other number systems? The Number Base Converter converts between binary, octal, decimal and hexadecimal in one place, and the ASCII Converter shows the code of every character.