Base Converter guide

Binary, Decimal, Octal and Hex Conversion Chart

The first sixteen values run 0 to 15 in decimal, 0000 to 1111 in binary, 0 to 17 in octal, and 0 to F in hexadecimal. Those sixteen rows cover one hex digit and four binary digits, which is the pattern everything else is built from.

The first sixteen values

This is the table worth knowing by heart. Everything larger is built out of these.

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Powers of two

These are the place values in binary, and the reason computing numbers look the way they do.

PowerValuePowerValue
2⁰12⁸256
22⁹512
42¹⁰1024
82¹¹2048
2⁴162¹²4096
2⁵322¹⁶65536
2⁶642²⁰1048576
2⁷1282³²4294967296

Byte boundaries worth recognising

DecimalHexBinaryWhat it is
15F1111One hex digit, four bits
161010000Hex rolls over
1277F1111111Largest signed byte
1288010000000Top bit set
255FF11111111Largest unsigned byte
256100100000000Needs a second byte
65535FFFF16 onesLargest 16-bit value

Numbers you will keep meeting

255 turns up everywhere because it is the largest value in one byte. Colour channels run 0 to 255. Network masks use it. If you see 255, a byte is involved.

1024 is 2¹⁰, which is why a kilobyte is 1024 bytes rather than 1000. The same logic gives 1024 KB to a megabyte.

65535 is the largest 16-bit value, which is why there are 65535 usable network ports and why older games so often capped scores or item counts at that number.

4294967295 is the largest 32-bit value — around 4.3 billion. It is the reason 32-bit systems could not address more than 4GB of memory.

FAQ

Related questions

Why is 255 so common in computing?

It is the largest number that fits in one byte of eight bits. Anything measured per byte — colour channels, character codes, network mask octets — tops out there.

Why is a kilobyte 1024 bytes and not 1000?

Because 1024 is 2¹⁰, and memory is addressed in powers of two. Storage manufacturers often use 1000, which is why a drive shows less capacity than the box claims.

How many binary digits are in one hex digit?

Exactly four. That is why binary and hex convert into each other by simple substitution, with no arithmetic.

Take Base Converter with you

The app adds plain-English AI explanations, dark mode, and works offline — useful when there is no signal or the exam hall has no Wi-Fi.

Free to download. AI explanations and dark mode are part of the optional PRO subscription.