Number Base Converter

Convert between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36.

Advertisement

Number Base Systems

A number base (or radix) determines how many unique digits are used to represent numbers. Our decimal system uses 10 digits (0–9). Computers use binary (base 2) — only 0s and 1s — because electronic circuits have two states: on (1) and off (0).

Common Number Bases

BaseNameDigits UsedCommon Use
2Binary0, 1Computer hardware, processors
8Octal0–7Unix file permissions, older systems
10Decimal0–9Everyday arithmetic
16Hexadecimal0–9, A–FColors, memory addresses, debugging

Conversion Reference (Decimal → Binary)

DecimalBinaryOctalHex
0000000
81000108
15111117F
16100002010
25511111111377FF
256100000000400100
1024100000000002000400
Embed this calculator
You can use this calculator on your own website.