COMPUTING / PLACE VALUE

Decimal to Binary Converter – Any Base 2–36 Conversion

Convert an integer between common computer-science bases in one view. Decimal, binary, octal, hexadecimal, and arbitrary bases from 2 to 36 are supported, with place-value or repeated-division explanations for learning.

Interactive calculator

Try the decimal to binary converter

Ready

Enter your values to see a clear answer, formula, and useful working.

Your values stay in this browser.

Result

Waiting for input

Your answer will appear here after you enter valid values.

A clear answer before the details

A base determines the place values used to write a number. Convert to decimal by multiplying each digit by its base power, or convert from decimal using repeated division.

Convert from one base to another

This decimal to binary converter uses an explicit From base and To base, so the same number is never interpreted ambiguously. To convert decimal 10 to binary, enter Number 10, From base 10, and To base 2; the result is 1010. The binary to decimal calculator workflow is the reverse: enter 1010, From base 2, and To base 10 to get 10. Bases from 2 through 36 are accepted.

Hexadecimal, octal, and exact integer conversion

The hexadecimal converter accepts A–Z symbols where appropriate, so FF from base 16 can become 11111111 in base 2. An octal to decimal calculator uses base 8 place values, while a hex to binary conversion groups each hexadecimal digit into four bits. The converter validates every digit against the From base, supports negative integers, and uses exact integer arithmetic for large values instead of floating-point rounding.

Formula guide

The key equations are separated below. Start with the calculator mode, then choose the shape or model that matches your problem.

Positional value

value = Σ dᵢ × bⁱ

Each digit dᵢ is multiplied by a power of base b.

Binary place values

1010₂ = 1×2³ + 0×2² + 1×2¹ + 0×2⁰

The powers add to decimal 10.

Worked example

Decimal 10 is binary 1010 because 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 10.

Formulas for common use cases

Use the matching equation for the problem you are solving, then enter its variables in the calculator above.

Decimal to binary

10₁₀ = 1010₂

Use From base 10 and To base 2.

Hexadecimal to binary

F₁₆ = 1111₂

Each hexadecimal digit maps to four binary bits.

Octal place values

17₈ = 1×8¹ + 7×8⁰ = 15₁₀

Every octal digit uses a power of 8.

How to use this calculator

  1. Enter an integer using the symbols allowed by its source base.
  2. Choose the source base from 2 to 36.
  3. Read all converted bases at once.
  4. Copy individual values for code, notes, or coursework.

Where it helps

Base conversion is useful for programming, debugging, digital logic, networking, and computer-science classes. Binary grouping improves readability, while hexadecimal makes long bit patterns compact. BigInt support keeps large integer conversions exact instead of applying floating-point rounding.

Common mistakes

Every digit must be valid for the selected base. A binary value cannot contain 2, and hexadecimal letters represent values from 10 through 15. This tool is for integers; decimal fractions need a separate positional-conversion method.

Frequently asked questions

What is a number base?

A base describes how many symbols are used for place value. Decimal is base 10, binary is base 2, octal is base 8, and hexadecimal is base 16.

Can I convert hexadecimal letters?

Yes. Bases above 10 use letters A–Z, and the converter accepts upper- or lower-case input.

Are large numbers supported?

Integer conversions use BigInt in the browser where available, avoiding ordinary floating-point rounding.

How do I convert decimal to binary?

Set From base to 10 and To base to 2. Decimal 10 becomes binary 1010 because its powers-of-two digits total 8 + 2.

How do I convert hexadecimal to binary?

Set From base to 16 and To base to 2. Each hexadecimal digit maps to four binary bits, so hexadecimal F becomes 1111 and FF becomes 11111111.

Can I share a calculation?

Yes. Use Share to copy a URL containing the current calculator values, then open that link on another device or send it to someone else.

Make the next maths problem feel smaller.

Explore a focused calculator with the formula, answer, and reasoning kept together.

Browse all calculators