Conversion

Decimal 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 decimal number system?

The decimal number system, also known as the base-10 number system, is the most common numeral system used in everyday life. It is a positional notation system that uses ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each position in a number represents a power of ten, depending on its place value. For example, in the number 3,472, each digit holds a specific weight: 2 is in the units place, 7 is in the tens place, 4 is in the hundreds place, and 3 is in the thousands place.

The decimal system is intuitive and straightforward for humans because it is likely related to our use of ten fingers for counting. It is the foundation of arithmetic and forms the basis of mathematical operations and measurement systems in most of the world.

However, different number systems exist—such as binary (base 2), octal (base 8), and hexadecimal (base 16)—each suitable for specific purposes, particularly in computer science and digital electronics. The decimal converter allows you to take numbers written in any of these systems (from base 2 up to base 36) and convert them to their equivalent decimal form.

Overview of number systems

A number system defines how numbers are represented using different symbols and positional weights. The base or radix of a number system determines how many unique digits it uses.

  • Binary system (base 2): uses digits 0 and 1. Commonly used in computer programming since all digital logic operates using two states, represented as off (0) and on (1).
  • Octal system (base 8): uses digits 0 to 7. Was used in older computers for compact representation.
  • Decimal system (base 10): uses digits 0 to 9. This is our standard counting system.
  • Hexadecimal system (base 16): uses digits 0 to 9 and letters A to F to represent values from 10 to 15. It is particularly useful in computer science because four binary digits correspond exactly to one hexadecimal digit.
  • Base 36 system: uses digits 0–9 and letters A–Z. It is often used to shorten long numeric identifiers such as URLs, serial codes, or database keys.

Conversion principle

To convert any number from a base bb (where 2b362 \leq b \leq 36) into its decimal equivalent, we use the general formula for positional notation. Each digit in the number is multiplied by the base raised to the power corresponding to its position, starting from zero for the rightmost digit.

Formula

The formula for conversion of a number from any base bb to its decimal equivalent is:

N10=i=0n1di×biN_{10} = \sum_{i=0}^{n-1} d_i \times b^i

Where:

  • N10N_{10} is the decimal value of the number,
  • did_i is the ii-th digit from the right (starting with 0),
  • bb is the base of the original number,
  • nn is the total number of digits.

If the number contains letters (A–Z) for digits higher than 9, their corresponding decimal values are: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, and so on, up to Z = 35.

Conversion step-by-step

  1. Identify the base of the original number (e.g., binary, octal, hexadecimal).
  2. Write down the positional value for each digit, starting from 0 on the right.
  3. Substitute each digit with its respective decimal equivalent.
  4. Multiply each digit by the base raised to its position’s power.
  5. Add all the products to get the decimal (base-10) equivalent.

Examples

Example 1: Convert binary number 1011 to decimal

Given base b=2b = 2.

10112=1×23+0×22+1×21+1×201011_2 = 1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 10112=8+0+2+1=111011_2 = 8 + 0 + 2 + 1 = 11

Therefore, 10112=11101011_2 = 11_{10}.

Example 2: Convert octal number 745 to decimal

Given base b=8b = 8.

7458=7×82+4×81+5×80745_8 = 7 \times 8^2 + 4 \times 8^1 + 5 \times 8^0 7458=7×64+4×8+5×1=448+32+5=485745_8 = 7 \times 64 + 4 \times 8 + 5 \times 1 = 448 + 32 + 5 = 485

So 7458=48510745_8 = 485_{10}.

Example 3: Convert hexadecimal number 1F4 to decimal

Given base b=16b = 16. Here, F = 15.

1F416=1×162+15×161+4×1601F4_16 = 1 \times 16^2 + 15 \times 16^1 + 4 \times 16^0 1F416=256+240+4=5001F4_16 = 256 + 240 + 4 = 500

So 1F416=500101F4_{16} = 500_{10}.

Understanding positional value

Each digit’s importance depends on where it is placed in the number. For example, the digit 2 in 2000 is quite different in value from the same 2 in 20 or 0.002. This principle applies universally across number systems. The positional value system ensures consistency and scalability, allowing us to represent large quantities compactly and perform mathematical operations effectively.

Interesting facts about the decimal system

  • The decimal system is at least 5,000 years old. The earliest recorded use was in ancient Egypt and Mesopotamia, where people counted grain and livestock using tallies.
  • Many historic civilizations, including the Hindus and Arabs, refined the decimal system by introducing the concept of “zero” as a placeholder digit. This discovery was revolutionary and made complex calculations much easier.
  • The present-day numeric symbols (0–9) originated from the Hindu-Arabic numeral system, which spread to Europe via trade and scholarship during the Middle Ages.

Notes

  • For bases higher than 10, letters represent values greater than 9 in ascending order: A for 10, B for 11, and so on up to Z for 35.
  • The converter can process bases up to 36 because the English alphabet contains 26 letters, combining with digits 0–9 to make 36 unique symbols.

Frequently Asked Questions

Number 2 from octal to decimal

Given base b=8b = 8.

28=2×80=22_8 = 2 \times 8^0 = 2

So 28=2102_8 = 2_{10}.

Number 600 from decimal to octal

DivisionInteger quotientRemainder
600 ÷ 8750
75 ÷ 893
9 ÷ 811
1 ÷ 801

Reading remainders from bottom to top gives:

60010=11308600_{10} = 1130_8

So 60010=11308600_{10} = 1130_8.

How to read base-36 numbering in decimal context?

Each digit may represent numbers from 0–35. For instance, base-36 “Z” equals 35. “1Z” equals 1×36+35=711 \times 36 + 35 = 71 in decimal.

How to check the accuracy of conversion?

You can reconvert the resulting decimal number back into the original base using reverse calculation: Divide the decimal number repeatedly by the base and record remainders. Reading the remainders backward gives the original representation.

Why is the decimal system preferred in daily life?

Because our counting evolved based on ten fingers, the decimal base aligns naturally with human intuition, making it simpler to teach, learn, and use for calculations in daily financial, scientific, and commercial activities.

Report a bug

This field is required.