Number Base Converter
Convert numbers between binary, octal, decimal, hex and any base
Output will appear here...
Convert numbers between binary, octal, decimal, hex and any base
Output will appear here...
Runs in your browser. Everything happens in your browser - the text you enter is never uploaded.
Multiply each bit by its place value (1, 2, 4, 8, 16... from the right) and add them up: 1011 = 8 + 0 + 2 + 1 = 11. Or paste the binary number here (add 0b, or choose Binary as the input base) and read the Decimal column.
Divide by 16 repeatedly and write the remainders from last to first, using A-F for 10-15: 255 ÷ 16 = 15 remainder 15, so 255 = FF. This tool does it instantly for any size of number.
The way computers store negative integers: invert all bits of the positive number and add 1. In 8 bits, -1 is 11111111 and -128 is 10000000. It lets the same circuits add positive and negative numbers.
Because one hex digit maps to exactly four bits, hex is a short, readable way to write binary data - colours (#FF8800), memory addresses, byte values and hashes all use it.
Base 36, which uses the digits 0-9 and the letters A-Z.