UseCalcPro
Home
MathFinanceHealthConstructionAutoPetsGardenCraftsFood & BrewingTools
Blog
  1. Home
  2. Math

Number Base Calculator

Convert between binary, octal, decimal, hex, and any base 2–36

Base 16 Result

FF

Decimal

255

Base 10

255

Valid digits for base 10: 0–9

Supported bases: 2 (binary) through 36 (0-9 + A-Z)

Base 16 Result

FF

Input (Base 10)

255

Decimal (Base 10)

255

Binary (Base 2)

11111111

Octal (Base 8)

377

Formulas Used

Positional Notation (Any Base to Decimal)

value = Σ(dᵢ × b^i) for i = 0 to n-1

Convert any base to decimal by multiplying each digit by the base raised to its position power (counting from 0 at the rightmost digit), then summing all terms.

Where:

dᵢ= The digit at position i
b= The base (radix) of the source number
i= Position index, starting at 0 from the right
n= Total number of digits

Decimal to Any Base (Repeated Division)

Divide by target base, collect remainders, read bottom-to-top

Repeatedly divide the decimal number by the target base. Each remainder becomes a digit in the result. Read the remainders from last to first to get the converted number.

Where:

n= The decimal number to convert
b= The target base
r= Remainder at each step (becomes a digit in the result)

Example Calculations

1Convert Decimal 255 to Hexadecimal

Inputs

Value255
From Base10
To Base16

Result

HexadecimalFF
Binary11111111
Octal377

255 ÷ 16 = 15 remainder 15. 15 ÷ 16 = 0 remainder 15. Remainders are 15 and 15, which map to F and F. Result: FF.

2Convert Binary 10110 to Decimal

Inputs

Value10110
From Base2
To Base10

Result

Decimal22

1×2⁴ + 0×2³ + 1×2² + 1×2¹ + 0×2⁰ = 16 + 0 + 4 + 2 + 0 = 22.

3Convert Hex 1A3 to Octal

Inputs

Value1A3
From Base16
To Base8

Result

Octal643
Decimal (intermediate)419

1A3 (hex) = 1×256 + 10×16 + 3×1 = 419 (decimal). Then 419 ÷ 8 = 52 R3, 52 ÷ 8 = 6 R4, 6 ÷ 8 = 0 R6. Read remainders: 643.

Frequently Asked Questions

Q

What is a number base (radix) and how does it work?

A number base (or radix) defines how many unique digits a positional number system uses. Base 10 (decimal) uses digits 0–9. Base 2 (binary) uses 0 and 1. Base 16 (hex) uses 0–9 and A–F. Each digit position represents a power of the base.

  • Base 2 (binary): digits 0–1, used in computing
  • Base 8 (octal): digits 0–7, used in Unix file permissions
  • Base 10 (decimal): digits 0–9, standard human counting
  • Base 16 (hex): digits 0–F, used in colors and memory addresses
  • Base 36: digits 0–9 and A–Z, maximum single-char base
BaseNameDigitsDecimal 255
2Binary0, 111111111
8Octal0–7377
10Decimal0–9255
16Hexadecimal0–FFF
36Base-360–Z73
Q

How do I convert a number from one base to another?

The standard method is two steps: first convert to decimal (base 10) by multiplying each digit by its positional power, then convert from decimal to the target base by repeatedly dividing and collecting remainders.

  • Step 1: Multiply each digit by base^position (right to left)
  • Step 2: Sum all products to get the decimal value
  • Step 3: Divide decimal by target base, record remainders
  • Step 4: Read remainders bottom-to-top for the result
  • Shortcut: binary ↔ hex uses 4-bit nibble grouping
FromToExample InputResult
Decimal → Binary10 → 225511111111
Binary → Hex2 → 1611111111FF
Hex → Octal16 → 8FF377
Octal → Decimal8 → 10377255
Q

What bases are commonly used in programming?

Programmers primarily use base 2 (binary), base 8 (octal), base 10 (decimal), and base 16 (hexadecimal). Binary maps directly to hardware bits. Hex is compact shorthand for binary (1 hex digit = 4 bits). Octal appears in Unix permissions.

  • Binary (base 2): hardware-level, logic gates, bit flags
  • Octal (base 8): Unix permissions like 755 or 644
  • Decimal (base 10): user-facing values and math
  • Hex (base 16): memory addresses, colors (#FF00FF), byte values
Use CasePreferred BaseExample
CSS ColorsHex (16)#FF6600
File PermissionsOctal (8)chmod 755
IP AddressesDecimal (10)192.168.1.1
Memory DumpHex (16)0x7FFF
Q

What is the positional notation formula?

In positional notation, a number equals the sum of each digit multiplied by the base raised to its position. For example, 1A3 in base 16 = 1×16² + 10×16¹ + 3×16⁰ = 256 + 160 + 3 = 419 in decimal.

  • Formula: value = Σ(digit × base^position)
  • Positions count from 0 (rightmost) upward
  • Example: 101 in base 2 = 1×4 + 0×2 + 1×1 = 5
  • Example: FF in base 16 = 15×16 + 15×1 = 255
NumberBaseCalculationDecimal
101028+0+2+010
7787×8+7×163
FF1615×16+15×1255
1A316256+160+3419
Q

Can I convert numbers with bases higher than 16?

Yes. This calculator supports bases from 2 to 36. Bases above 10 use letters as digits: A=10, B=11, ... Z=35. Base 36 is the highest single-character base, using digits 0–9 and letters A–Z. Base 36 is used in URL shorteners and compact IDs.

  • Base 20 (vigesimal): used by Maya civilization
  • Base 36: maximum alphanumeric base (0-9, A-Z)
  • Base 36 example: "ZZZZ" = 1,679,615 in decimal
  • URL shorteners often use base 36 or base 62
BaseMax DigitDecimal 1000 In Base
12B6B4
20J2A0
32VV8
36ZRS

Understanding Number Base Conversions

Number base conversion is a fundamental concept in computer science and mathematics. Every number system is defined by its base (or radix), which determines how many unique digits it uses and the value of each position.

The most common bases in computing are binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Converting between them is essential for tasks ranging from low-level programming to web design.

Our calculator supports any base from 2 to 36, showing both the converted result and a step-by-step breakdown of the positional notation calculation used to arrive at the answer.

Related Calculators

Binary Calculator

Convert and perform bitwise operations on binary numbers

Scientific Notation

Convert between standard and scientific notation

Fraction Calculator

Add, subtract, multiply and divide fractions

Percent Calculator

Calculate percentages, increases, and decreases

Roman Numeral Calculator \u2014 Convert & Learn

Convert between Roman numerals and Arabic numbers instantly. See symbol breakdowns, subtractive notation rules, and a complete reference table (1-3999).

Mixed Number Calculator

Add, subtract, multiply, and divide mixed numbers with detailed step-by-step solutions. Convert between mixed numbers, improper fractions, and decimals.

Related Resources

Binary Calculator

Binary arithmetic and bitwise operations

Scientific Notation Calculator

Convert between standard and scientific notation

Fraction Calculator

Convert and compute with fractions

Percentage Calculator

Calculate percentages and conversions

Last Updated: Mar 9, 2026

This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.

UseCalcPro
FinanceHealthMath

© 2026 UseCalcPro