What Does "Base" Actually Mean?
The base of a number system is just a count of how many distinct digits it offers before it has to roll into a new column. You already live in base 10: ten digits, 0 through 9, and once you've used all of them a fresh column opens up - ones, then tens, then hundreds.
Binary follows that same rule with only two digits, 0 and 1, which makes it base 2. Hex goes the other direction with sixteen symbols (0 through 9, then A through F), so it's base 16. There's no trick to any of it, just bigger or smaller buckets in each column.
The Four Systems You'll Actually Run Into
| Name | Base | Digits Used | Common Use |
|---|---|---|---|
| Decimal | 10 | 0-9 | Everyday counting and arithmetic |
| Binary | 2 | 0, 1 | Computer hardware and logic circuits |
| Octal | 8 | 0-7 | Unix file permissions, some older systems |
| Hexadecimal | 16 | 0-9, A-F | Web colors, memory addresses, debugging |
Binary, Base 2
The reason computers run on binary comes down to hardware: a transistor is a switch with exactly two states, on or off. Call one of them 1 and the other 0, and any piece of data at all, text, a photo, a song, can be spelled out as a long string of those two digits.
Each digit in that string is called a bit. Instead of columns representing powers of 10 the way they do in decimal, binary columns represent powers of 2.
Binary place values: ... 8 4 2 1
Binary 1011 = (1×8) + (0×4) + (1×2) + (1×1)
= 8 + 0 + 2 + 1 = 11 in decimal
Turning a Decimal Number Into Binary
By hand, the fastest route is repeated division by 2, writing down the remainder at each step, then reading those remainders back in reverse once you hit zero.
25 ÷ 2 = 12 remainder 1
12 ÷ 2 = 6 remainder 0
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Read bottom to top: 11001
Check: 16 + 8 + 0 + 0 + 1 = 25 ✓
Hexadecimal, Base 16
Hex calls for sixteen distinct symbols, but our number line only supplies ten digits. The workaround borrows letters: A through F cover the values 10 through 15.
| Decimal | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|
| Hex | A | B | C | D | E | F |
Every column in a hex number stands for a power of 16 - 1, 16, 256, 4096, and up from there.
Hex FF = (15 × 16) + (15 × 1) = 240 + 15 = 255
Notice that FF works out to 255 - that's not a random coincidence. 255 is the highest value a single 8-bit byte can store, which is exactly why RGB color values max out at 255. A hex color like #FF0000 is just shorthand for "red maxed out, green and blue at zero": pure red.
Converting Hex Back to Decimal
3 × 16² + A × 16¹ + 7 × 16⁰
= 3 × 256 + 10 × 16 + 7 × 1
= 768 + 160 + 7
= 935
Jumping Straight From Binary to Hex
Here's what makes hex genuinely convenient: one hex digit always lines up with exactly four binary digits, a group called a nibble. That means converting between the two skips arithmetic entirely - split the binary into chunks of four and translate each chunk on its own.
| Binary | Hex | Decimal |
|---|---|---|
| 0000 | 0 | 0 |
| 0001 | 1 | 1 |
| 0100 | 4 | 4 |
| 1000 | 8 | 8 |
| 1010 | A | 10 |
| 1111 | F | 15 |
Split into groups of 4: 1101 0110
1101 = 13 = D
0110 = 6
Result: D6
That's the entire reason programmers use hex instead of writing binary out longhand: D6 is quicker to read, say out loud, and type correctly than 11010110, even though the two describe the exact same value.
Octal, Base 8
Octal works with digits 0 through 7 and columns based on powers of 8. It saw far more use in early computing than it does now, and these days its main foothold is Unix and Linux file permissions.
That's the logic behind a command like chmod 755: each octal digit encodes a permission set, where 7 covers read, write, and execute (4+2+1) and 5 covers read plus execute (4+1). Anyone who's set permissions on a server has used octal, whether they realized it or not.
Quick Reference: The Same Values Across All Four Systems
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 255 | 11111111 | 377 | FF |
When to Just Let a Tool Do It
Doing these conversions by hand builds real intuition, but once you need a fast, reliable answer, the base converter on SolverCalc, a handy calcsolver-style tool for exactly this, handles decimal, binary, octal, and hex instantly. Type in the number, pick the base it's currently in, and it does the rest.
The Takeaway
Every system here rests on one shared idea: place value tied to a fixed base. Once you see each column as the next power of whatever base you're working in, none of these stay confusing for long. Binary is the language hardware speaks natively, hex is the shorthand humans use to read binary without losing their minds, decimal is what your brain defaults to, and octal survives mostly in corners like file permissions. If you keep only one shortcut in your back pocket, make it binary-to-hex - that clean 4-bit relationship comes up constantly in web and systems work.