Binary tools

Turn 0s and 1s into text and numbers, or turn text, pictures and IP addresses into binary. Every tool runs in your browser.

One byte, eight bits
Decimal72
Hex48
CharacterH

Click any bit. Add the place values of the 1s and you get the decimal number.

Runs in your browser. Nothing you type is uploaded.

Text and binary

For binary that is meant to say something.

Binary translatorBinary code to text and back01001000 01101001 → Hi
Text to binaryEncode any text as binaryHi → 01001000 01101001
Binary to ASCII8-bit groups to ASCII characters01000001 → 65, A
ASCII to binaryCharacters to 8-bit ASCII codes65 → 01000001

Binary numbers and other bases

For binary that stands for a quantity.

Binary to decimalBase 2 to base 10, with steps1101 → 13
Decimal to binaryBase 10 to base 2, with steps13 → 1101
Binary to hexGroup bits into hex digits11111111 → FF
Hex to binaryEach hex digit as 4 bitsFF → 11111111
Binary to octalBase 2 to base 8111101101 → 755
Octal to binaryBase 8 to base 2755 → 111101101

Special binary formats

For pictures, network addresses and codes used in hardware.

Image to binaryPictures to 0s and 1s and backphoto.png → rows of 0 and 1
IP to binaryIPv4 addresses in binary192.168.1.1 → 11000000.10101000.00000001.00000001
Gray codeBinary to Gray code and back0111 → 0100
BCD converterBinary-coded decimal59 → 0101 1001

What kind of binary do you have?

Match what you see to a tool before you paste it.

It looks likeExampleIt is probablyTool to use
Groups of 8 digits with spaces01001000 01101001Text, one character per groupBinary translator
Groups of 7 digits1001000 1101001Text from an older 7-bit puzzle or courseBinary translator, which pads each group to 8 bits
One short run of digits101101A number, here 45Binary to decimal
Digits after 0b0b1101A number written in code, here 13Binary to decimal
Four groups of 8 joined by dots11000000.10101000.00000001.00000001An IPv4 address, here 192.168.1.1IP to binary
Groups of 4 that never go above 10010101 1001BCD, one decimal digit per group, here 59BCD converter
Hundreds of rows of the same length00111100
01000010
A small picture drawn in pixelsImage to binary

Which binary tool do you need?

Binary is base 2. Each digit is a bit, and each place is worth twice the one to its right: 1, 2, 4, 8 and so on. Eight bits make a byte, which holds a value from 0 to 255. One byte is enough for one English letter in ASCII, which is why the text tools read binary in groups of eight.

Start from what you have. A long string of 0s and 1s that should say something goes into the translator. A single binary number that stands for an amount goes into binary to decimal. Bytes from a network capture or a file usually arrive as hex, so binary to hex and back is the common next step.

Frequently asked questions

What is binary?

Binary is a way of writing numbers with two digits, 0 and 1. Computers use it because a circuit only has to tell two states apart, on and off. Each digit is a bit, and eight bits make a byte.

How do you read binary?

Give each bit a place value that doubles from the right: 1, 2, 4, 8, 16, 32, 64 and 128. Add the values wherever there is a 1. 01001000 is 64 + 8 = 72, which is the letter H in ASCII. The guide to reading binary has more worked examples.

How are binary and decimal alike, and how are they different?

Both are place-value systems, so a digit is worth more the further left it sits. Decimal uses ten digits and each place is worth ten times the one to its right. Binary uses two digits and each place is worth twice as much. That is why the same number needs more digits in binary: 255 takes three digits in decimal and eight in binary, 11111111.

Scroll to Top