Programming

Number base converter

Convert integers between bases 2 and 36 without losing precision. Compare binary, octal, decimal and hexadecimal and review positional values.

Exact conversion

What number do you want to convert?

You can use letters, a negative sign, spaces, underscores and prefijos compatibles como 0b, 0o o 0x.

0 / 10,000 digits

Decimals and scientific notation are not supported. Letters are case-insensitive.

Valid characters: 0 1 2 3 4 5 6 7 8 9

Common equivalents

Binary grouping is visual only; copying uses the continuous value.

Binario

Base 2

Octal

Base 8

Decimal

Base 10

Hexadecimal

Base 16

Positional value

The breakdown will appear when you enter a valid number.

Publicidad

Quick examples

Load a common conversion and use it as a starting point.

How number bases work

The value does not change; only its representation does.

Available digits

A base uses as many symbols as its number indicates. Binary uses 0–1, decimal 0–9 and hexadecimal adds A–F. Base 36 extends through Z.

Positional value

Each position represents a power of the base. For example, FF₁₆ equals 15 × 16¹ + 15 × 16⁰ = 255 .

Binary and programming

Binary represents information with bits. Grouping them in sets of four makes comparison with hexadecimal easier because each group corresponds exactly to one hexadecimal digit.

Exact results

This tool uses BigInt , so it does not round large numbers when converting between bases.

Frequently asked questions

What is a number base?

It is a system for representing quantities with a set of digits. Base 2 uses 0 and 1; base 10 uses 0 through 9; and base 16 adds the letters A through F.

How do you convert binary to decimal?

Multiply each bit by a power of 2 according to its position and add the results. The calculator can show this breakdown for short inputs.

How do you convert hexadecimal to decimal?

Interpret A through F as the values 10 through 15, multiply each digit by its corresponding power of 16 and add the terms.

Which letters are used in bases greater than 10?

The letters A through Z represent values 10 through 35. For example, F is 15 and Z is 35.

Does the calculator support negative numbers?

Yes. You can enter a minus sign at the beginning. The converted value keeps the sign in every base.

Can I convert very large integers?

Yes. The tool uses BigInt to preserve exact results and accepts up to 10,000 normalized input digits.

Can I use prefixes such as 0b or 0x?

Yes. It accepts 0b for binary, 0o for octal and 0x for hexadecimal when they match the selected source base.

Why are fractions not supported?

This version is designed for exact integers. Fractions require rules for precision, rounding and repeating representations between bases.