Numbers wearing different outfits: binary, hex, and Roman numerals
Decimal isn't the only way to write a number. Here's how computers, website colors, and even clock faces quietly use completely different counting systems.
The number "13" isn't special — it's just decimal's way of writing a quantity. That same quantity is 1101 to a computer, D on a clock face, and 0D in hexadecimal. None of these are more "correct" than another; they're just different agreements about how to group and label the same amount.
Here's what's actually happening underneath each of these, and where you run into them without realizing it.
1. Why Computers Only Count in Two Digits
A computer's memory is built from switches that are either on or off — there's no natural way to represent a "7" electrically, but "on" and "off" is trivial. Binary is what happens when you build an entire number system out of just those two states.
Every binary digit represents a power of two. Move the slider and watch which "switches" turn on to build that number.
Try it — decimal to binary
Once you're past a handful of bits, doing this conversion by hand gets tedious fast — a binary calculator handles it instantly in both directions, including binary arithmetic.
2. One Number, Several Valid Ways to Write It
Binary (base 2), octal (base 8), and hexadecimal (base 16) all describe the exact same value — they just group digits differently. Programmers lean on hex constantly because it converts to binary far more cleanly than decimal does.
Try it — the same number, four bases
Switching between these by hand means repeatedly dividing by the base and tracking remainders — easy to get wrong past two or three digits. A number base converter does all four at once, which is also the fastest way to sanity-check a manual conversion.
3. Where Hex Quietly Runs the Internet
Every color on a website is a hex code — three pairs of digits for red, green, and blue, each ranging from 00 to FF. This site's own blue accent color is #2563eb: 25 red, 63 green, EB blue.
Try it — build a color from hex
Every pair of hex digits above is just 0-255 written in base 16 instead of base 10 — the same conversion logic as the binary example, just grouped differently. A hex converter is the fast path between a color code, a decimal value, and binary, without redoing the math by hand each time.
4. Roman Numerals: A Number System With No Zero
Roman numerals were built for carving into stone and counting on fingers, not for arithmetic — and it shows. There's no symbol for zero, no place value, and multiplication or long division in Roman numerals is genuinely painful, which is part of why the system eventually lost out to the Hindu-Arabic numerals we use today.
Try it — number to Roman numeral
Roman numerals never fully disappeared — clock faces, movie sequels, book chapters, and monarch names still use them today, mostly for a formal or traditional feel rather than any practical advantage. Our Roman numeral converter handles the conversion instantly in both directions, including the subtractive-notation edge cases that trip up manual conversion.
Common Mistakes With Number Systems
- Reading a binary number left to right as if it were decimal — each position is a power of 2, not a power of 10.
- Forgetting hex uses letters A-F for 10-15 — there's no digit above 9 in any base, so letters fill the gap once you pass base 10.
- Assuming any smaller-before-larger pair works in Roman numerals — only specific pairs (like IV, IX, XL) are valid subtractive combinations.
- Dropping leading zeros when a fixed bit-length matters, like in binary color values or memory addresses.
Frequently asked questions
Explore the tools
The Bigger Picture
Every number system here is solving the same problem in a different way: how do you group and label quantity so it's easy to work with for a specific purpose? Binary is easy for switches, hex is easy for humans reading binary, decimal is easy because we have ten fingers, and Roman numerals were easy to carve. The number itself never changes — only the outfit it's wearing.