Binary, Hex & Decimal Converter

Convert numbers between binary, octal, decimal and hexadecimal in one step.

How to use: Type a number in one base (binary, octal, decimal or hex) and see it in the others.

How to use the Binary, Hex & Decimal Converter

Computers store everything as binary digits, but people prefer decimal, and programmers often meet hexadecimal and octal as compact ways to write binary values. This tool translates between all of them instantly.

Type a number, choose the base it is written in, and the table shows the same value in binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), base 32 and base 36. Prefixes such as 0x, 0b and 0o are accepted, and spaces and underscores are ignored so you can paste grouped values like 1111_0000.

Each base has its own digits. Binary uses 0 and 1, octal uses 0 to 7, and hexadecimal uses 0 to 9 plus the letters A to F for ten to fifteen. If you type a digit that does not exist in the chosen base, such as 2 in binary, the tool points out the problem. Conversion is done with big integers, so values with dozens of digits stay exact, which ordinary calculators cannot do.

A handy fact: one hexadecimal digit represents exactly four bits, so the byte 11111111 is simply FF, and 255 in decimal. That relationship is why hex is used for memory addresses, color codes and network settings. The tool works with whole numbers only, including negatives.

Frequently asked questions

How do I convert binary to decimal?

Multiply each digit by 2 raised to its position, counting from zero on the right, and add the results. For 1011 that is 8 + 0 + 2 + 1 = 11.

Why is hexadecimal used?

It is a compact way to write binary: each hex digit equals four bits.

Does it handle huge numbers?

Yes. It uses arbitrary-precision integers, so very long values convert exactly.