HomeBlogNumber Systems Guide
Developer Tools · 5 min read

Binary, Decimal & Hexadecimal — Number Systems Explained

Everything in a computer is ultimately 0s and 1s. Understanding binary, hex, and octal unlocks how computers think — and why your HTML color is #FF5733.

Number Systems at a Glance

SystemBaseDigitsCommon Use
Binary20, 1Hardware, CPU instructions
Octal80–7File permissions (Unix: chmod 755)
Decimal100–9Everyday numbers
Hexadecimal160–9, A–FColor codes, memory addresses

The Same Number in 4 Bases

DecimalBinaryOctalHex
0000
10101012A
15111117F
16100002010
25511111111377FF

Frequently Asked Questions

Binary maps to physical electrical states — 0 = off, 1 = on. Every transistor in a CPU is essentially a switch with two states.
Hex represents binary data compactly — 1 hex digit = 4 binary bits. Used for color codes, memory addresses, and debugging machine code.
Multiply each bit by 2 to the power of its position (right to left from 0): 1101 = 8+4+0+1 = 13.
Use PickConverter's free Number Base Converter. Convert binary, decimal, hex, and octal instantly.
01

Convert between number bases — free

Binary ↔ Decimal ↔ Hex ↔ Octal. Instant. No sign-up.

Open Base Converter →