Binary to Decimal Converter

Convert numbers between binary, decimal, hexadecimal and octal.

About this tool

Computers store numbers in binary, people usually write them in decimal, and programmers often use hexadecimal and octal as shorthand. This tool converts a whole number between all four systems at once.

How to use it

Type a number, then choose the system it is written in: decimal, binary, hexadecimal or octal. The tool shows the same value in all four. Hexadecimal letters can be upper or lower case. Very large numbers work, because the conversion uses arbitrary size integers.

What binary is

Binary uses only the digits 0 and 1. Each position is a power of two, counting from the right: 1, 2, 4, 8, 16 and so on. The binary number 1101 means 8 plus 4 plus 0 plus 1, which is 13 in decimal.

Converting by hand

To go from decimal to binary, divide the number by 2 again and again and write down the remainders from last to first. For 13: 13 divided by 2 is 6 remainder 1, 6 divided by 2 is 3 remainder 0, 3 divided by 2 is 1 remainder 1, and 1 divided by 2 is 0 remainder 1. Read upward and you get 1101.

Hexadecimal and octal

Hexadecimal uses sixteen symbols, 0 to 9 and A to F. One hex digit equals exactly four bits, so it is a short way to write binary: the byte 11111111 is FF. Web colors such as 3366CC are hex. Octal uses digits 0 to 7, and each digit equals three bits. You see it in Unix file permissions such as 755.

Where this is useful

Students use it for computer science homework. Developers use it to read memory values, flags and network masks. Electronics hobbyists use it to set bits in a register.

Limits

The tool handles whole, non negative numbers. It does not convert fractions or two's complement negative numbers.

Privacy

All conversions happen in your browser.

Frequently asked questions

Is the binary to decimal converter free to use?

Yes. The binary to decimal converter on QuickKit is free, needs no signup and has no usage limit.

Is my data safe when I use the binary to decimal converter?

Yes. The binary to decimal converter runs in your browser. What you enter is processed on your device and is not uploaded to a server.

Does the binary to decimal converter work on a phone?

Yes. The page is built to work on phones, tablets and desktop browsers without installing anything.

More free tools