Base Converter

Convert numbers between any two bases from 2 to 36, including binary, octal, decimal, and hexadecimal.

Share this calculator

From base presets
To base presets

Results

Enter a valid number Please enter a number to convert.

Also in Number Theory

Number Systems

Base converter: convert numbers between any two bases

The base converter translates a number from one base to another, supporting any radix from 2 to 36. Enter a value, select the source and target bases, and see the converted result instantly.

How base conversion works

To convert between bases, the standard approach is to first convert the source number to base 10 by multiplying each digit by its positional power of the source base and summing, then repeatedly divide the decimal result by the target base and collect remainders.

For conversions between powers of two (such as binary to octal or binary to hex), digit grouping is a faster shortcut: group the binary digits into sets of three for octal or four for hex and translate each group directly.

Why convert between bases?

Programmers routinely convert between binary, octal, decimal, and hex when reading memory dumps, writing assembly, debugging network protocols, or specifying colour values. A reliable converter saves time and avoids transcription errors.

Frequently asked questions

Can I convert fractional numbers?

This converter handles integer values. Fractional base conversion involves repeated multiplication by the target base, which can produce non-terminating expansions.

Is 0x a valid prefix?

Prefixes like 0x for hex or 0b for binary are programming conventions. Enter the raw digits without a prefix for the conversion.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.