Calc9 Logo
← Back to Calc9

Number Base Converter

Math

Convert instantly between binary, octal, decimal, hexadecimal, and any custom base (2–36). Type in any field and all others update in real time.

BINBase 2
Binary
OCTBase 8
Octal
DECBase 10
Decimal
HEXBase 16
Hexadecimal
Decimal: 42Bit width: 6 bitsSingle byte ✓

Bit Pattern Visualizer

0
0
1
0
1
0
1
0
Byte 1
1 byte = 8 bits · blue = 1, gray = 0

Custom Base

Quick Examples

Quick Reference Table (0–15)

DECBINOCTHEX
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Click any row to load that value

Conversion Tips

  • HEX ↔ BIN: each hex digit = 4 binary digits
  • OCT ↔ BIN: each octal digit = 3 binary digits
  • 0xFF = 255 = 11111111₂ = max single byte
  • 0x10 = 16 = 10000₂ (2 to the power of 4)

Real-world Uses

  • Color codes: #FF5733 → R=255, G=87, B=51
  • IP addresses: each octet is decimal (0–255)
  • Unix permissions: chmod 755 → rwxr-xr-x
  • Memory addresses: 0x7FFF… seen in debuggers