Number Base Converter

Convert integers between decimal, hexadecimal, binary, and octal instantly.

Decimalbase 10

chars: 0–9

Hexadecimalbase 16

chars: 0–9, A–F

Binarybase 2

chars: 0–1

Octalbase 8

chars: 0–7

The Number Base Converter converts integers between Decimal (base 10), Hexadecimal (base 16), Binary (base 2), and Octal (base 8) in real time. Select your input base, type a value, and all four representations update instantly.

Common prefixes (0x, 0b, 0o) are stripped automatically. Each output card has its own copy button and displays the appropriate prefix so you can paste directly into code.