Binary, hex and decimal converter
Convert whole numbers between decimal, binary, octal and hexadecimal.
Whole, non-negative numbers of any size.
How this calculator works
Each place is worth the base raised to a power. In binary 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11.
Worked example: 255 in decimal is 11111111 in binary and FF in hex. That's the largest value one byte can hold, which is why colour codes like #FF8800 use pairs of hex digits.
You may also like…
🧮
Length converter
Convert between millimetres, centimetres, metres, kilometres, inches, feet, yards and mile…
🧮
Weight converter
Convert between grams, kilograms, ounces, pounds, stone and tonnes.
🧮
Temperature converter
Convert between Celsius, Fahrenheit and Kelvin.
🧮
Aspect ratio calculator
Calculate image or video dimensions maintaining 16:9, 4:3, 1:1 or custom aspect ratio.
🧮
Roman numeral converter
Convert standard numbers to Roman numerals and vice versa.
🧮
Ring size converter
Convert ring diameter (mm) to Australian/UK letter sizes and US numbers.