What this calculator does
Number bases are ways of writing the same value with a different set of digits. Binary uses two digits, octal uses eight, decimal uses ten, and hexadecimal uses sixteen. Each position in a number represents a power of the base, so 1010 in binary is not ten. This converter translates a whole number between the four bases and shows every form at once.
How to use it
- Choose the base the number is written in.
- Type the value using digits valid for that base.
- Choose the base you want to convert to.
- Read the converted value and the decimal, binary, octal, and hex forms.
How it works
Example calculations
Example 1: 255 decimal to hex
255 equals FF in hexadecimal, 11111111 in binary, and 377 in octal.
Example 2: 1010 binary to decimal
1010 in base 2 equals 10 in decimal, A in hex, and 12 in octal.
Example 3: FF hex to decimal
FF in base 16 equals 255 in decimal, 11111111 in binary, and 377 in octal.
What the result means
The same value can look very different across bases, so always state the base when sharing a number. Hexadecimal is compact because one hex digit maps to four binary bits, which is why programmers use it for memory addresses and color codes. Octal maps to three bits and appears in some file permission settings. Leading zeros do not change the value, and letter case in hex does not matter. Negative numbers and fractional values are outside this converter's scope. This is why the same digits can stand for different amounts in different contexts. A string like 10 means two in binary, eight in octal, ten in decimal, and sixteen in hex.
Common mistakes
- Entering the digit 2 or 3 in a binary number.
- Using letters beyond F in a hexadecimal value.
- Assuming 10 means ten regardless of the base.
- Including a decimal point or a fraction.
- Adding a 0x prefix when the field expects plain digits.
Assumptions and limits
- The value is a non-negative whole number.
- The source and target bases are 2, 8, 10, or 16.
- Hexadecimal letters are accepted in upper or lower case.
- Leading zeros are allowed and do not change the value.
- No prefixes, separators, or fractional parts are used.
Frequently asked questions
Can I convert decimals or fractions?
No. This converter handles whole numbers only. A value with a decimal point or fraction is not accepted because the digits after the point would need a separate conversion.
Why does hexadecimal use letters?
Base 16 needs sixteen symbols. The digits 0 through 9 supply ten, and A through F stand for the values 10 through 15.
Is hex case-sensitive?
No. FF and ff represent the same value. The converter accepts either case and reports a consistent form.
Can I convert negative numbers?
No. This tool works with non-negative integers. Negative values need a sign convention such as two's complement, which depends on the system.
What bases are supported?
Binary (2), octal (8), decimal (10), and hexadecimal (16). Other bases such as base 3 or base 36 are not part of this converter.
Why is FF equal to 255?
Each hex digit is a power of 16: F is 15, so FF is 15 x 16 + 15 = 240 + 15 = 255.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.
Go deeper
