Binary to Decimal Converter Decimal to Binary, Hex and Octal
Step 1: Type a number in any one box, for example binary 1010
Step 2: the answers fill in the other boxes straight away, and the working is shown in the green box below.
Your answer: how it was worked out
Everything runs in your browser. Nothing you enter is sent to or stored on our server.
© 2004–2026 QuickOnlineTips. Free to use here, but please don’t copy, republish or sell this tool. Terms of use
More converters
About this tool
Convert binary to decimal, decimal to binary, hexadecimal and octal in one place. Type a number in any box and the others update instantly. It handles very large numbers exactly and also converts to any base from 2 to 36.
Quick answer: To convert binary to decimal, multiply each digit by its power of 2 and add them up. 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11. To convert decimal to binary, keep dividing by 2 and read the remainders from bottom to top.
How to use the number base converter
Type in any box: decimal, binary, hexadecimal or octal. The others update immediately. Prefixes such as 0x for hex and 0b for binary are accepted, spaces and underscores are ignored, and negative numbers work. Choose Other base for any base from 2 to 36. Large numbers are handled exactly with no rounding.
Binary to decimal, step by step
- Write the powers of 2 under each digit from right to left: 1, 2, 4, 8, 16, 32 and so on.
- Add the powers where the digit is 1. For 110010: 32 + 16 + 2 = 50.
Decimal to binary, step by step
Divide by 2 and note the remainder until you reach 0. For 13: 13 ÷ 2 = 6 r1, 6 ÷ 2 = 3 r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1. Read the remainders upwards: 1101.
Quick reference
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 5 | 101 | 5 | 5 |
| 10 | 1010 | A | 12 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 255 | 11111111 | FF | 377 |
| 1024 | 10000000000 | 400 | 2000 |
Where each base is used
- Binary (base 2): how computers store everything, as bits that are on or off.
- Hexadecimal (base 16): a compact way to write bytes; one hex digit is 4 bits. Used for colors (#FF8800), memory addresses and MAC addresses.
- Octal (base 8): Unix file permissions such as chmod 755.
To turn text into binary, use the binary translator. For colors, try hex to RGB.
Binary to decimal chart (0000 to 1111)
Every 4-bit binary number with its decimal and hex value. Leading zeros don’t change the value, so 0100, 100 and 00000100 are all 4.
| Binary | Decimal | Hex |
|---|---|---|
| 0000 | 0 | 0 |
| 0001 | 1 | 1 |
| 0010 | 2 | 2 |
| 0011 | 3 | 3 |
| 0100 | 4 | 4 |
| 0101 | 5 | 5 |
| 0110 | 6 | 6 |
| 0111 | 7 | 7 |
| 1000 | 8 | 8 |
| 1001 | 9 | 9 |
| 1010 | 10 | A |
| 1011 | 11 | B |
| 1100 | 12 | C |
| 1101 | 13 | D |
| 1110 | 14 | E |
| 1111 | 15 | F |
FAQ
What is 255 in binary?
11111111, the largest value in one byte.
Why does hex use letters?
Base 16 needs 16 digits, so A to F stand for 10 to 15.
How do I convert binary to decimal?
Write the place values 1, 2, 4, 8, 16, 32, 64, 128 under the digits from right to left, then add the values that sit under a 1. Worked example: 10110 = 16 + 4 + 2 = 22. Another: 0100 = 4, and 0001 = 1, because leading zeros add nothing. Type any binary number in the Binary box above to check your answer instantly.
What is 1010 in decimal?
10. The 1s sit in the 8 and 2 places, and 8 + 2 = 10.

Subscribe to our weekly tech newsletter
Free: 100 Tech Terms ebook (worth $2.99)
Unsubscribe anytime. Privacy







