Free CalcSolver
Calculator Tools Guides Blog About Contact

Number Base Converter

One number, shown in every base that matters.

Number Base Converter

Binary Base 2 (0s and 1s)
-
Octal Base 8 (0-7)
-
Decimal Base 10 (0-9)
-
Hexadecimal Base 16 (0-9, A-F)
-

What a Base Actually Changes

Only the notation. The quantity is identical whichever base you write it in: decimal 255, binary 11111111 and hexadecimal FF all describe the same number of things. What changes is how many symbols are available before you need another column.

Why Computers Use Binary

A circuit is reliably either on or off, and two states map exactly onto two digits. Every larger structure, from an integer to a video frame, is built from those. Binary is unreadable at length for people, though, which is where hexadecimal comes in.

Hexadecimal Is Compressed Binary

Sixteen is two to the fourth, so one hex digit stands in for exactly four binary digits with no arithmetic needed. 1111 becomes F, and 11111111 becomes FF. That is why colour codes, memory addresses and byte dumps are written in hex rather than binary: it is four times shorter and converts back mechanically.

Converting by Hand

To go from decimal, divide repeatedly by the target base and read the remainders bottom to top. To come back, multiply each digit by its place value and add. 1011 in binary is 8 plus 0 plus 2 plus 1, which is 11.

Common Questions

Why does hex use letters?
Base sixteen needs sixteen single-character digits. After 0 to 9 the letters A to F cover the values ten to fifteen.
How do binary and hex relate?
One hex digit equals exactly four binary digits, so conversion between them is grouping rather than calculating.
What is octal used for?
Base eight groups binary in threes. It survives mainly in Unix file permissions, where 755 and 644 are octal.

Other Tools