Skip to content

Conversion

Base Converter

Convert a whole number between binary, octal, decimal, and hexadecimal. Enter the value, choose its current base, and choose the base you want. The result shows the converted value plus the number in all four bases. Fractions and decimal points are not supported, so keep the input to integers.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

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

  1. Choose the base the number is written in.
  2. Type the value using digits valid for that base.
  3. Choose the base you want to convert to.
  4. Read the converted value and the decimal, binary, octal, and hex forms.

How it works

Each digit is multiplied by the base raised to its position, counting from 0 on the right, and the results are added to get the decimal value: value = sum of digit x base^position. Converting from decimal uses repeated division by the target base, reading remainders from last to first. Valid digits run from 0 to base - 1; in hexadecimal, A through F stand for 10 through 15.

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

This converter is an educational tool for whole numbers. It does not handle fractions, negative numbers, or system-specific signed formats. Verify critical values against the specification of the system you are working with.

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

Guides that explain the math

Base Conversion: Binary, Decimal, Hex, and Place Value
Conversion

Base Conversion: Binary, Decimal, Hex, and Place Value

Convert integers between binary, octal, decimal, and hexadecimal, with place-value arithmetic, direct bit grouping, exact limits, and the mistakes that produce wrong answers.

8 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.