Number Base Converter
Convert a number from any base between 2 and 36 into any other base, with a full binary, octal, decimal and hexadecimal reference.
From base
To base
How does this calculator work?
Type a number, pick its current base (2-36) and a target base (2-36). The tool validates the digits, converts the value to decimal using place values, then rewrites it in the target base. A reference row shows the same value in binary, octal, decimal and hexadecimal.
Formula
How this is calculated
Enter the number, the base it is written in (the source radix, 2-36) and the base you want it converted to (the target radix, 2-36). Each character is interpreted as a digit: 0-9 then A-Z represent values 0 through 35, so base 16 uses 0-9 and A-F, while base 36 uses every letter. The calculator first checks that every digit is valid for the source base — for example the digit 2 is illegal in binary and the letter G is illegal in hexadecimal — and reports an error if any digit is out of range.
Conversion happens in two steps. First the value is turned into an ordinary decimal (base-10) integer using positional notation: each digit is multiplied by the source base raised to the power of its position counted from the right, and these products are summed. The place-value chart shows exactly how much each digit contributes. Second, that decimal value is re-expressed in the target base by repeated division, and letters are shown in upper case.
Inputs are treated as non-negative integers; leading and trailing spaces are ignored and letters are case-insensitive. Because the intermediate decimal is a standard double-precision number, results are exact for values up to about 2^53 (roughly 9 quadrillion); beyond that, rounding can occur. The binary, octal, decimal and hexadecimal reference row always describes the same underlying value regardless of the chosen target base.
Frequently asked questions
Bases above 10 use letters after 9: A=10, B=11, up to Z=35 for base 36. Input is case-insensitive and the result is shown in upper case.
Every digit must be smaller than the source base. A 9 is invalid in octal (base 8) and the letter F is invalid in decimal (base 10). Fix the digit or raise the source base.
No. This converter works on non-negative whole numbers only. Fractional parts and minus signs are not parsed.
Also known as
TG we-Calculate Editorial Team. (2026). Number Base Converter [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/base-converter-calculator
TG we-Calculate Editorial Team. "Number Base Converter." TG we-Calculate. 2026. https://we-calculate.com/calculator/base-converter-calculator.
TG we-Calculate Editorial Team, "Number Base Converter," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/base-converter-calculator
@misc{wecalculate_base_converter_calculator, title = {Number Base Converter}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/base-converter-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
