Number Base Converter

Convert a number from any base between 2 and 36 to binary, octal, decimal, hexadecimal and a base of your choice.

Results update as you type.

Decimal

255

from base 10

Binary
1111 1111
Octal
377
Hexadecimal
FF
Base 36
73

About this calculator

Large numbers are converted exactly, without rounding.

How to use it

  1. Enter the number.
  2. Choose its base.
  3. Choose another base to see, if you like.

The formula

Value = Σ digit × baseposition
base 36
uses 0–9 and A–Z

Worked example

255 in decimal

  1. Binary 1111 1111, octal 377, hex FF.
  2. Base 36: 73.

What the result means

Binary is grouped in fours so it lines up with hex digits.

Powers of 2 in decimal, hex and octal

Powers of 2 look tidy in hex and octal because those bases are themselves powers of 2.

2ⁿ in three bases
PowerDecimalHexOctal
2⁰111
2³8810
2⁴161020
2⁶6440100
2⁷12880200
2⁸256100400
2¹⁰1,0244002000
2¹²4,096100010000
2¹⁶65,53610000200000
2²⁰10,48,5761000004000000
2²⁴1,67,77,2161000000100000000
2³²4,29,49,67,29610000000040000000000

Example: Linux file permissions in octal

The permission 755 is an octal number. Enter 755 with base 8 and the converter gives decimal 493 and binary 1 1110 1101. Split the binary into groups of three from the right, 111 101 101, and each group is read, write and execute for the owner, group and others: rwx r-x r-x. That is why octal suits permissions, since one octal digit is exactly three bits.

Base 36 does the opposite job: it makes numbers short. Decimal 10,00,000 is LFLS in base 36, which is why it is used for compact IDs and short links.

Avoiding errors

  • Every digit must be smaller than the base. 19 is rejected as an octal number because octal has no digit 9.
  • Prefixes are understood only for their own base: 0x for hex, 0b for binary and 0o for octal.
  • The decimal answer uses Indian digit grouping, so a million appears as 10,00,000.

Assumptions

  • Whole numbers.

Limitations

  • Fractions are not converted.

Frequently asked questions

How do I convert decimal to binary?

Divide by 2 repeatedly and read the remainders from bottom to top.

What is 255 in hex?

FF.

What is base 36?

Digits 0–9 then A–Z, used for short codes.

What is 777 in octal as decimal?

511. In binary it is 1 1111 1111, nine 1s, which is why 777 means every permission is granted.

How do I convert binary to hex quickly?

Group the binary digits in fours from the right and replace each group with one hex digit. 1111 0100 becomes F4.

Why does the binary answer have spaces?

It is grouped in fours so each group lines up with one hex digit. The spaces are only for reading.

Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.