1. Expand place values
Multiply each digit by a power of its base, starting with power zero at the right.
1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 11₁₀
In hexadecimal, A represents ten: 2A₁₆ = 2×16 + 10 = 42₁₀.
Bases, notation & place value
A positional number system uses a base to determine each digit’s value. Compare binary, octal, decimal and hexadecimal, then follow the steps to see why their written forms differ.
Exact whole numbers, up to 64 input digits. Optional +/− sign; 0b, 0o and 0x prefixes are accepted with their matching base. No fractions or separators. Leading zeros are normalized.
4210 = 4210. All four forms below represent the same integer.
Read the magnitude from left to right. Multiply the running total by 10 and add the next digit’s value. All arithmetic in these steps is decimal.
Divide the nonnegative magnitude by 2 until the quotient is zero. Read the remainders from bottom to top.
Result: 1010102.
Divide the nonnegative magnitude by 8 until the quotient is zero. Read the remainders from bottom to top.
Result: 528.
Divide the nonnegative magnitude by 16 until the quotient is zero. Read the remainders from bottom to top. Remainders 10–15 become A–F.
Result: 2A16.
This guide is about notation: how numbers are written. In other mathematical contexts, “number systems” can mean collections such as the integers, rational numbers, real numbers or complex numbers. Those collections are a separate topic from a numeral’s base.
Three ideas are useful here: base controls place value; a digit script supplies the visible symbols; and grouping or naming conventions organize large values. Arabic-Indic and Devanagari digits can both write base-10 numbers. Indian lakh/crore notation changes grouping and names, not the base. Roman numerals use a different, non-positional structure.
| System | Base | Digits | Decimal 42 | Typical use |
|---|---|---|---|---|
| Binary | 2 | 0–1 | 101010₂ | Bits and digital logic |
| Octal | 8 | 0–7 | 52₈ | Unix permissions |
| Decimal | 10 | 0–9 | 42₁₀ | Everyday quantities |
| Hexadecimal | 16 | 0–9, A–F | 2A₁₆ | Byte values and color codes |
| Vigesimal | 20 | 20 digit values | 22₂₀ | Base-20 numeral study |
22₂₀ uses ordinary digit shapes to label a base-20 value: 2 × 20 + 2 = 42. It does not illustrate Mayan or Kaktovik glyphs; see the dedicated base-20 guide.
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 17 | 10001 | 21 | 11 |
| 18 | 10010 | 22 | 12 |
| 19 | 10011 | 23 | 13 |
| 20 | 10100 | 24 | 14 |
Multiply each digit by a power of its base, starting with power zero at the right.
1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 11₁₀
In hexadecimal, A represents ten: 2A₁₆ = 2×16 + 10 = 42₁₀.
To write 42 in base 8, divide by 8: 42 ÷ 8 gives quotient 5 and remainder 2. Then 5 ÷ 8 gives quotient 0 and remainder 5.
Read remainders upward: 52₈. The last remainder is the leftmost digit. The converter shows this process for your own input.
One octal digit represents three bits; one hexadecimal digit represents four. Start at the right and pad the left with zeros when necessary.
101010₂ → 101 010 → 52₈
101010₂ → 0010 1010 → 2A₁₆
These methods describe whole-number magnitudes. A minus sign can be kept separately, as in −25₁₀ = −11001₂. Fractions need an additional method for positions to the right of the radix point. Computer representations with a fixed bit width also require rules for signedness and overflow; the converter above does not infer those settings.
A base-b positional system has digit values from zero through b−1. Binary accepts only 0 and 1; octal stops at 7. Hexadecimal needs six additional values, conventionally written A through F. The character A therefore means ten as a digit, rather than an unknown algebraic variable, when the notation is explicitly hexadecimal.
The sequence 10 is not enough to determine a quantity. It means two in binary, eight in octal, ten in decimal and sixteen in hexadecimal. A subscript makes the distinction visible. Programming prefixes such as 0b and 0x can also identify a base, but conventions depend on the language or file format. A string containing only zeros and ones is not automatically binary.
When every available digit value has been used, the next count starts a new place. Binary goes from 1 to 10; octal goes from 7 to 10; hexadecimal goes from F to 10. Zero keeps a place when that column contributes nothing. The 0–20 chart lets you compare these transitions without memorizing a long list.
Changing a base changes the weights assigned to the digit positions. Changing a script can leave those weights untouched: १२ and 12 can both represent one ten and two units. Likewise, 10,000,000 and 1,00,00,000 group the same decimal quantity differently. None of these changes alters the underlying number. This is why a base converter, a digit-script converter and a number-to-words tool answer different questions.
Twelve can be written as 12 in decimal, 1100₂ in binary, C₁₆ in hexadecimal or XII in Roman notation. Arabic-Indic ١٢ and Devanagari १२ show another distinction: their digit shapes differ, while their place values remain decimal.
Explore and copy numeral symbols →Symbols, subtractive rules, examples, and a 1 to 100 chart.
Digit sets and additional number symbols from writing systems around the world.
Vigesimal systems including Mayan and Kaktovik numeral patterns.
Western, Eastern Arabic, and Persian digit forms with Unicode references.
The digits ०–९, Hindi context, Unicode values, and a 1 to 100 table.
Lakh, crore, Indian place values, and comma-grouping rules.
Conversions use exact integer arithmetic on digit strings. No floating-point rounding is applied. Examples and converter behavior reviewed November 1, 2026.
A number system is an organized way to represent numbers. It may define a base, a set of digits or symbols, place-value rules, and conventions for combining those symbols.
The four systems most often compared in computing are binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
The terms often overlap. In careful use, a number system can also mean a mathematical collection such as the integers or real numbers, while a numeral system is specifically a notation for writing numbers.
No. Arabic and Devanagari digit sets can both write ordinary base-10 positional numbers. The visible symbols change, but the place-value structure can remain decimal.
Modern Indian notation is decimal. Its distinctive feature is grouping and naming large place values, such as lakh and crore, rather than changing the base from 10.
Base 16 needs sixteen single-digit values. After 0 through 9, the letters A through F conventionally represent decimal values 10 through 15.
No. Modern decimal and binary are positional and use zero as a digit. Standard Roman numerals are non-positional and have no standard zero symbol.
Digital computers represent low-level states with binary. Octal and hexadecimal are compact ways for people to read groups of binary digits, while decimal remains common in user-facing values.