This section converts the number in the first textbox from the base in the second textbox to base 10.

The base must be >= 2 and <= 16 and the number should be > 0. Invalid input is not checked.

Base Converter

Convert to Base 10

JS Version

Python Version

Code

Convert to Base n

This section converts the number in the first textbox from the base in the second textbox to base 10.

The base must be >= 2 and <= 16 and the number should be > 0. Invalid input is not checked.

The base must be >= 2 and <= 16 and the number should be > 0. Invalid input is not checked.

JS Output

Python Output

Code