Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal bases.

bits
digits
digits
digits

Other Bases

Binary Operations

AND:
OR:
XOR:
SHL:

Character Representation

Number Base Reference

Binary (Base 2)

Digits: 0, 1 | Prefix: 0b | Example: 0b1010 = 10

Octal (Base 8)

Digits: 0-7 | Prefix: 0o | Example: 0o12 = 10

Decimal (Base 10)

Digits: 0-9 | No prefix | Example: 10

Hexadecimal (Base 16)

Digits: 0-9, A-F | Prefix: 0x | Example: 0xA = 10

Examples

Convert decimal to binary for programming

Transform hexadecimal colors

Convert between different numeral systems