🔢

Number Base Converter

Convert between Binary, Octal, Decimal, and Hexadecimal in real-time. Edit any field to update all others.

🟦 Decimal (Base 10)
Digits: 0–9
🟪 Hexadecimal (Base 16)
Digits: 0–9, A–F
🟩 Binary (Base 2)
Digits: 0, 1
🟧 Octal (Base 8)
Digits: 0–7
Bit Visualization (8-bit / 32-bit)
Common Values Reference
${[ ['0', 'Zero'], ['1', 'One'], ['8', 'Byte range start (1 byte has 8 bits)'], ['16', '0x10'], ['32', '0x20'], ['64', '0x40'], ['128', '0x80'], ['255', '0xFF — max uint8'], ['256', '2^8'], ['1024', '1 KB'], ['65535', '0xFFFF — max uint16'], ['16777215', '0xFFFFFF — max color'], ].map(([n, desc]) => `
${n}
${desc}
`).join('')}
Advertisement