Convert binary, octal, decimal, hex and any base from 2 to 36.
Type a number in any field and the others update instantly: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16) and a custom base from 2 to 36. The converter uses arbitrary-precision integers, so very large values stay exact, and negative numbers are supported.
Sizes in bytes and bits? See the data storage converter and data transfer rate converter.
Read memory addresses, bit masks, colour codes and flags in hex or binary.
Practise base conversions and understand how integers are stored in bits.
Work with IP and MAC address fragments, registers and byte values.
You may type 0b1010, 0o17 or 0xFF in the matching field, and spaces or underscores are ignored, so 1111_0000 works.
Each hex digit equals exactly four binary digits: 0xF = 1111 and 0xA5 = 1010 0101.
Multiply each bit by its power of two and add the results. For example, 1101 = 8 + 4 + 0 + 1 = 13. Or paste it in the binary field above.
Repeatedly divide by 16 and read the remainders bottom to top, using A-F for 10-15. For example, 255 = FF.
No, this converter works with whole numbers (integers). Fractional base conversion is not supported.
Digits 0-9 followed by letters A-Z, giving 36 symbols.