Conversion

Number system converter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a number system

A number system is a way of writing numbers using a specific set of symbols and rules. All the numbers we commonly use are written in the decimal number system, which uses 10 digits (from 0 to 9). However, there are many other systems, each having its own base (or radix). The base of a system shows the number of distinct symbols used to represent numbers.

For example:

  • In the binary system — 2 symbols: 0 and 1. Used in computing.
  • In the octal system — 8 symbols: from 0 to 7.
  • In the decimal system — 10 symbols: from 0 to 9. Used in everyday life and is the most common system.
  • In the hexadecimal system — 16 symbols: from 0 to 9 and from A to F, where A = 10, B = 11, …, F = 15. Common in modern computers. For example, colors are often specified in hexadecimal. The color blue is #0000FF.

In more extended systems (for example, base-36) digits and Latin letters are used, where: A = 10, B = 11, …, Z = 35.

How conversion between number systems works

To convert a number from decimal to a base bb system:

  1. Divide the source number by the base bb.
  2. Record the remainder of the division.
  3. Repeat division on the integer quotient until it becomes zero.
  4. Write the recorded remainders in reverse order — that is the result.

To convert a number from one base to another, it is common to first convert the number to decimal, and then to the desired base.

How to convert step by step

Step 1. Convert to the decimal system

Suppose we have the number 10110210110_2.

Calculate using the formula:

101102=0×20+1×21+1×22+0×23+1×24=221010110_2 = 0×2^0 + 1×2^1 + 1×2^2 + 0×2^3 + 1×2^4 = 22_{10}

Step 2. Convert from decimal to octal

Let’s convert 221022_{10} to octal.

DivisionInteger quotientRemainder
22 ÷ 826
2 ÷ 802

Result:

2210=26822_{10} = 26_8

Main number systems

BaseNameSymbols usedExample
2Binary0, 11011₂ = 11₁₀
8Octal0–7127₈ = 87₁₀
10Decimal0–9245₁₀
12Duodecimal0–9, A, B1A₁₂ = 22₁₀
16Hexadecimal0–9, A–F1F₁₆ = 31₁₀
36Base-360–9, A–ZZ₃₆ = 35₁₀

Table of symbols for bases up to 36

ValueSymbolValueSymbolValueSymbol
0012C24O
1113D25P
2214E26Q
3315F27R
4416G28S
5517H29T
6618I30U
7719J31V
8820K32W
9921L33X
10A22M34Y
11B23N35Z

Example 1. Convert a decimal number to hexadecimal

DivisionInteger quotientRemainder
120 ÷ 1678
7 ÷ 1607

Divide 120 by base 16 and write down the remainders until the quotient is zero. Write the remainders in reverse order:

12010=7816120_{10} = 78_{16}

Example 2. Convert 12345₁₀ to base-36

DivisionInteger quotientRemainder
12345 ÷ 3634233 → X
342 ÷ 36918 → I
9 ÷ 3609

Now write the sequence of remainders in reverse order:

1234510=9IX3612345_{10} = 9IX_{36}

Example 3. Conversion between arbitrary bases

Convert 110121101_2 to hexadecimal.

  1. First find the decimal value:
11012=1×23+1×22+0×21+1×20=13101101_2 = 1×2^3 + 1×2^2 + 0×2^1 + 1×2^0 = 13_{10}
  1. Convert 13₁₀ to hexadecimal: Remainder of dividing 13÷16=13D13 ÷ 16 = 13 → D

Result:

11012=D161101_2 = D_{16}

Historical fact

The first number systems appeared long before our era.
The ancient Sumerians used a sexagesimal system (base 60) — this is why there are 60 minutes in an hour and 60 seconds in a minute.
Later, the Egyptians and Romans used decimal and vigesimal (base-20) systems in their records, and the idea of positional notation was fully developed in India and transmitted to Europe by Arabic scholars.

Notes

  • When entering a number, use only the symbols allowed for the chosen base.
  • Letter values for digits start with A=10, B=11 up to Z=35.
  • The converter automatically checks the validity of the entered data and instantly provides the result with a detailed explanation in tabular form.

Frequently Asked Questions

How to convert the number 255 from decimal to hexadecimal?

DivisionInteger quotientRemainder
255 ÷ 1615F
15 ÷ 160F

Result:

25510=FF16255_{10} = FF_{16}

How to convert 101010₂ to decimal?

1010102=0×20+1×21+0×22+1×23+0×24+1×25=4210101010_2 = 0×2^0 + 1×2^1 + 0×2^2 + 1×2^3 + 0×2^4 + 1×2^5 = 42_{10}

How to convert 42₁₀ to octal?

DivisionInteger quotientRemainder
42 ÷ 852
5 ÷ 805

Result:

4210=52842_{10} = 52_8

How to represent 999₁₀ in base-12?

DivisionInteger quotientRemainder
999 ÷ 12833
83 ÷ 12611 → B
6 ÷ 1206

Result:

99910=6B312999_{10} = 6B3_{12}

What is the maximum base supported by this converter?

This converter supports conversions for number systems from 2 to 36.
This covers all possible combinations of digits and Latin letters (0–9, A–Z).

Report a bug

This field is required.