Science calculator
Binary and hexadecimal.
Convert an exact non-negative integer between binary, decimal and hexadecimal. Letters A–F may be entered in either case.
HexadecimalExact integer
—
base 16
- Binary · base 2
- —
- Decimal · base 10
- —
- Hexadecimal · base 16
- —
- N integer value · dᵢ digit at position i · b number base · i place-value power
Assumptions
- Inputs are non-negative whole numbers; signs, fractions and decimal points are not accepted.
- Binary uses digits 0–1, decimal 0–9, and hexadecimal 0–9 plus A–F.
- Leading zeroes do not change the value and are removed from converted output.
- No signed word size or two's-complement interpretation is applied; conversion is arbitrary-precision integer arithmetic.
How it works
Every digit has a place value equal to a power of its base. Binary places are powers of 2, decimal places powers of 10, and hexadecimal places powers of 16.
Hexadecimal groups binary neatly because one hexadecimal digit represents exactly four binary digits. For example, binary 1010 is hexadecimal A.
Select the input base and type an integer. All three exact representations update together; choose which one is largest on the LCD.
- Free
- No ads
- No tracking
- No account
- Works offline once loaded
From the maker of Ans — a scientific calculator you can own. Same idea: a proper instrument, nothing in the way.