Ultimate Calculator
Everyday

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base up to 36.

Binary

11111111

Decimal
255
Binary
11111111
Octal
377
Hexadecimal
FF
Base 36
73
  1. Divide by 2 repeatedly and read the remainders from bottom to top.
  2. 255 in binary has 8 digits.

The formula

value = Σ digit × baseᵖᵒˢⁱᵗⁱᵒⁿ

A number base says how many different digits are used before carrying to the next place. Decimal uses ten, binary two, and hexadecimal sixteen (0 to 9, then A to F). Computers store everything in binary. Hexadecimal is a compact way to write it, since each hex digit stands for exactly four binary digits.

How to use this calculator

  1. Enter number.
  2. Choose it is written in.
  3. Enter also show base.
  4. Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.

Worked example

Using Number: 255; It is written in: Decimal (base 10); Also show base: 36.

  1. Divide by 2 repeatedly and read the remainders from bottom to top.
  2. 255 in binary has 8 digits.

Binary: 11111111

Common questions

How do I convert decimal to binary?

Divide the number by 2 repeatedly, writing down each remainder. Read the remainders from last to first.

Why is hexadecimal used in computing?

One hex digit represents exactly four bits, so a byte is always two hex digits. That makes binary data far easier to read.