Binary and hex
Convert numbers between binary, decimal and hexadecimal as fast as you can. If you need it, turn on the bit helper and add up the weights until you get the number.
How to play
- Choose a level: 4 bits (0–15), 1 byte (0–255) or 16 bits (0–65535).
- A number appears with its base in small print (₂ binary, ₁₀ decimal, ₁₆ hexadecimal) and the base you must convert it to.
- Type the answer: when it’s right, the next one appears. If you get it wrong, press Check to see the solution.
- You have 60 seconds. Answers in a row multiply your points.
The three bases
Binary (base 2)
Only 0 and 1. Each position is worth double the one to its right: 1, 2, 4, 8, 16, 32, 64, 128… So 1010₂ = 8 + 2 = 10.
Decimal (base 10)
The everyday one: each position is worth ten times the one to its right.
Hexadecimal (base 16)
Uses 0–9 and A–F (A = 10 … F = 15). Each hex digit is exactly 4 bits, which is why computing uses it so much: FF₁₆ = 1111 1111₂ = 255.
Tips
Binary to hex, four at a time
Group the bits in fours from the right and convert each group: 1010 0101₂ → A and 5 → A5₁₆.
Decimal to binary by subtracting powers
Find the largest power of 2 that fits, subtract it and set a 1 in that position. Repeat with the rest. The bit helper makes this visible.
Learn the 16 nibbles
Knowing 0000 to 1111 (0 to F) by heart turns any binary into hex instantly.
FAQ
Can I type 0x or 0b in front?
Yes, 0x and 0b prefixes, lowercase and spaces between bit groups are all accepted.
What is this useful for?
Binary and hex show up in programming, networking (IP and MAC addresses), web colours (#FF8800) and electronics.