merge pdf

Number Base Converter

Convert between Binary, Octal, Decimal and Hexadecimal instantly

Type a number in any box — all other boxes update automatically

Binary (Base 2)
Digits: 0, 1
Octal (Base 8)
Digits: 0–7
Decimal (Base 10)
Digits: 0–9
Hexadecimal (Base 16)
Digits: 0–9, A–F
Quick Reference: 0–20 in all bases
DecimalBinaryOctalHex

How to Convert Between Number Bases

Just type any number into the corresponding field and all other fields update automatically. No need to press a button.

Number Systems Explained

BaseNameDigits UsedCommon Use
2Binary0, 1CPU instructions, bit flags, memory addressing
8Octal0–7Unix file permissions (chmod 755)
10Decimal0–9Everyday numbers
16Hexadecimal0–9, A–FColors (#FF5733), memory addresses, encoding

FAQ

Binary 1111 = 8+4+2+1 = 15 in decimal, and F in hexadecimal.

255 in binary is 11111111 — eight 1-bits. This is the maximum value of one byte and is commonly seen as 0xFF in hex or #FFFFFF in CSS colors.

One hex digit represents exactly 4 binary bits (a nibble). Two hex digits represent a full byte. This makes hex much more compact and readable than binary — e.g. FF vs 11111111.