| Name | Description | Radix |
|---|---|---|
| Binary (Base 2) | The Binary (Base 2) is a numeral system that uses only two digits: 0 and 1. Each digit
in a binary number is called a bit (short for binary digit).
Features:
Common Uses:
| 2 |
| Octal (Base 8) | The Octal (Base 8) numeral system, also known as the octal system, uses eight digits: 0, 1, 2, 3,
4, 5, 6 and 7. Each digit in an octal number represents a power of 8.
Features:
Common Uses:
| 8 |
| Decimal (Base 10) | The Decimal (Base 10) system is the base-10 numeral system, which uses ten digits: 0, 1, 2, 3, 4, 5,
6, 7, 8 and 9. It is the standard system for denoting integer and non-integer
numbers and is the most widely used number system in everyday life.
Features:
Common Uses:
| 10 |
| Hexadecimal (Base 16) | The Hexadecimal (Base 16) number system uses sixteen digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B,
C, D, E, F, where A through F represent the values 10 to 15.
Features:
Common Uses:
| 16 |
Every one of these systems works the same way. Each digit position carries a weight that is a power of the base, and the value of the number is the sum of each digit multiplied by its position's weight. Only the base changes.
In decimal, 237 means 2×10² + 3×10¹ + 7×10⁰. In binary, 1101 means 1×2³ + 1×2² + 0×2¹ + 1×2⁰, which comes to 13. The mechanism is identical; the digits available and the multiplier differ.
That is why the same quantity looks so different across bases. The number thirteen is 13 in decimal, 1101 in binary, 15 in octal, and D in hexadecimal — one value, four representations.
Two digits, 0 and 1, matching the two states a circuit can reliably distinguish: current or no current. Everything a computer stores is ultimately binary; the other bases here are conveniences for humans reading that data.
Eight digits, each one standing for exactly three bits. Its most visible survival is Unix file permissions, where chmod 755 encodes three groups of three permission bits — read, write, execute — as three octal digits.
Ten digits, near-universal among humans for the obvious anatomical reason. It has no special relationship to computer hardware, which is exactly why conversion is needed so often.
Sixteen digits — 0-9 then A-F — each representing exactly four bits, so one byte is always two hex digits. This tidy mapping is why memory addresses, color codes, and byte dumps are written in hex: it is far more compact than binary while still lining up cleanly with the underlying bits.
The first sixteen values in each base:
Notice that four binary digits map onto exactly one hex digit. Converting between binary and hexadecimal is therefore just grouping bits into fours, with no arithmetic required — which is the whole reason programmers prefer hex to binary.
#FF8800 is three bytes: red 255, green 136, blue 0. 0755 is not seven hundred fifty-five. This has caused real bugs. 2F the F is the value fifteen, not a letter. 0b marks binary, 0o octal, and 0x hexadecimal. They label the notation and are not part of the value. ff and FF are the same value, though a given codebase usually settles on one. Reliability. Distinguishing two voltage states is straightforward and resists noise; distinguishing ten distinct levels in every circuit would be far more error-prone and expensive. Two states also map directly onto Boolean logic.
Because it is a quarter the length and converts to bits without any arithmetic. A 32-bit address is 32 binary digits, which is hard to read and easy to miscount, or 8 hex digits, which is not.
It marks the value as hexadecimal. Without it, 10 is ambiguous — sixteen in hex, ten in decimal, two in binary. The prefix removes the ambiguity and is not part of the number itself.
This tool handles non-negative integers, which covers the great majority of practical cases. Negative values in real systems are usually represented in two's complement, whose meaning depends on the word width in use.
Mostly in one place: Unix file permissions, where its three-bits-per-digit grouping fits the permission model exactly. It was more widespread on older hardware whose word sizes were multiples of three bits.
The website uses cookies for essential functionality. With your consent, we also use them for analytics, personalization, and personalized ads. Ads are shown either way — without consent they are non-personalized.