JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Base Conversion Calculator

Convert an exact integer between bases 2 through 36.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Converted integer. The example starts with Integer value = 2D, Source base = 16, Destination base = 10.

Base Conversion Calculator formula

Digits are parsed positionally in the source base and re-expressed in the destination base using exact integer arithmetic.

Inputs and units

Inputs and example values for Base Conversion Calculator
InputFormat / rangeExample
Integer valueFollow the input format above2D
Source baseWhole number, min 2, max 3616
Destination baseWhole number, min 2, max 3610

Worked example

The values listed in Inputs and units give 45 for Converted integer.

Converted integer
45
Decimal value
45

Results and assumptions

Change Source base from 16 to 18 and keep the other example inputs fixed. The updated answer is 49 (Converted integer).

Fix an input or unexpected result

Source base is required. Enter source base using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.