Binary, Hex & Decimal Converter

Convert between number bases

About this calculator

Type a number, choose its base and see it in decimal, binary, hexadecimal and octal. Handy for programming, networking and electronics.

The formula

Value = Σ digit × base^position
Worked exampleDecimal 255 = binary 11111111 = hex FF = octal 377.

Frequently asked questions

Why does hex use letters?

Base 16 needs 16 symbols, so A–F represent 10–15.

Can it handle negatives?

Yes, with a leading minus sign.

How big a number can I use?

Very large integers are supported using BigInt.