Number Base Converter

Convert any number between bases 2 through 36 with the Number Base Converter. Enter your input number, choose a from base and a to base, and get the converted result immediately — along with the equivalent values in binary, octal, decimal, and hexadecimal for quick reference.

Enter a valid number in your chosen source base. Use digits 0–9 and letters A–Z for bases above 10.

The base of the number you are converting from (2–36).

The base you want to convert your number into (2–36).

Results

Converted Result

--

Binary (Base 2)

--

Octal (Base 8)

--

Decimal (Base 10)

--

Hexadecimal (Base 16)

--

Results Table

Frequently Asked Questions

How do I convert a number from any base to any other base?

The process has two steps. First, convert your source number to decimal (base 10) by multiplying each digit by its base raised to the power of its position (starting from 0 on the right). Then convert that decimal value to your target base by repeatedly dividing by the target base and recording the remainders — the remainders read in reverse give you the result.

What bases does this converter support?

This tool supports any base from 2 (binary) to 36. Digits 0–9 represent values zero through nine, and letters A–Z represent values 10 through 35. This covers all commonly used bases including binary (2), octal (8), decimal (10), and hexadecimal (16).

What is a number base (radix)?

A number base, or radix, is the number of unique digits used to represent values in a positional numeral system. For example, binary uses 2 digits (0 and 1), decimal uses 10 digits (0–9), and hexadecimal uses 16 symbols (0–9 and A–F). Each digit's value depends on its position and the base.

Why does hexadecimal use letters like A, B, C, D, E, F?

Hexadecimal (base 16) needs 16 distinct symbols for digit values 0 through 15. Since our standard digit set only covers 0–9, the letters A through F are used to represent the values 10 through 15 respectively. This is a widely accepted convention in computing and programming.

Does it make sense that a finite decimal fraction is infinite in another base?

Yes — a number that terminates cleanly in one base may repeat infinitely in another. For example, 1/3 is the repeating decimal 0.333… in base 10, but it is simply 0.1 in base 3. The representability of a fraction depends on whether the denominator's prime factors are all factors of the base.

What is binary and why is it used in computers?

Binary (base 2) uses only the digits 0 and 1, which directly correspond to the two electrical states (off and on) in digital circuits. Every piece of data a computer processes — text, images, code — is ultimately represented as sequences of binary digits (bits).

How is hexadecimal used in programming?

Hexadecimal is widely used in programming because each hex digit corresponds exactly to four binary bits, making it a compact way to express binary data. It appears in memory addresses, color codes (e.g. #FF5733), and bytecode, and is much easier for humans to read than long binary strings.

Can I convert numbers with letters like 'FF' or '1A3'?

Yes. For bases above 10, digits above 9 are represented by letters — A=10, B=11, up to Z=35. Simply enter the number using the appropriate letters and set the correct source base. The converter handles mixed alphanumeric inputs like FF (hex), 1A3, or Z9 automatically.

More Math Tools