Technology · Tool #050

Number Base Converter

Convert binary, octal, decimal and hexadecimal integers.

Reserved ad space · responsive display

Inputs

Enter a whole number and choose its current base. All four equivalent representations update automatically.

Converted values

Binary (Base 2)
—
Octal (Base 8)
—
Decimal (Base 10)
—
Hexadecimal (Base 16)
—

More Information

How to use this calculator

Translate an integer between positional numeral systems such as binary, decimal, octal and hexadecimal. The numerical value stays the same even though the digits change.

How the calculation works

A base-b numeral represents the sum of each digit multiplied by a power of b. Binary uses digits 0–1, octal 0–7, decimal 0–9 and hexadecimal 0–9 plus A–F.

Worked example

Binary 101101 equals 32 + 8 + 4 + 1 = decimal 45. The same value is hexadecimal 2D, because 2×16 + 13 = 45, and octal 55.

Understanding the result

Base conversion is useful for reading memory addresses, permission masks, bit flags and low-level protocols. Group binary digits into fours to convert quickly to hexadecimal.

Assumptions and limitations

A base converter does not automatically define signed integer width or floating-point encoding. Leading zeros can be meaningful for formatting but do not change an unsigned integer value.

Frequently asked question

Does hexadecimal mean a larger number? No. Hexadecimal is another notation for the same value, just as 10 decimal and A hexadecimal represent ten.

Reserved ad space · content placement