Number Base Converter — BIN, DEC, HEX
Binary, octal, decimal and hexadecimal.
The number base converter translates a number between binary (BIN), octal (OCT), decimal (DEC), hexadecimal (HEX), and BASE36. Type a value into any field and the other representations update instantly. Prefixes 0b, 0o, and 0x are accepted.
Converting between bases comes up constantly for programmers and students alike: HEX is used for web colors (#ff8800), memory addresses, bytes, and bitmasks; BIN is used for bitwise operations, flags, and logic; BASE36 (digits plus letters) is handy for short identifiers. For example, decimal 255 is 0xFF in HEX and 11111111 in binary.
Everything is calculated right in your browser, instantly, with no data sent anywhere. It's a handy companion for debugging, learning computer science, and working with low-level data.