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

Share this tool

Did you like this tool? Help us improve it

Want to tell us more? Contact us

★ Black Friday★ Cyber MondayWeb hosting up to 85% off, checked on each host’s own siteGrab the deals →

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

  1. Write the powers of 2 under each digit from right to left: 1, 2, 4, 8, 16, 32 and so on.
  2. 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

DecimalBinaryHexOctal
0000
510155
101010A12
151111F17
16100001020
25511111111FF377
1024100000000004002000

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.

BinaryDecimalHex
000000
000111
001022
001133
010044
010155
011066
011177
100088
100199
101010A
101111B
110012C
110113D
111014E
111115F

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.

Found this useful? Share it with someone who needs it.

100 Tech Terms ebook cover

Subscribe to our weekly tech newsletter

Free: 100 Tech Terms ebook (worth $2.99)

Unsubscribe anytime. Privacy

Latest Tech Guides