Calc.Digital
Smart Financial Calculators

Number Base Converter: Binary, Decimal, Hex

Convert numbers between binary, octal, decimal and hexadecimal, or any base from 2 to 36, exactly for numbers of any size.

255 in decimal is 11111111 in binary and FF in hex.

Frequently asked questions

How do I convert a negative number to binary or hex?

Computers store negative integers in two's complement: invert the bits of the positive number and add 1. −5 in 8 bits is 1111 1011 (hex FB). The converter shows this for 8, 16, 32 and 64 bits, and can read a two's complement pattern back as a signed number.

How do I convert binary to decimal?

Multiply each digit by its power of 2 and add them: 1011 = 8 + 0 + 2 + 1 = 11.