About this calculator
Large numbers are converted exactly, without rounding.
How to use it
- Enter the number.
- Choose its base.
- Choose another base to see, if you like.
The formula
- base 36
- uses 0–9 and A–Z
Worked example
255 in decimal
- Binary 1111 1111, octal 377, hex FF.
- 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.
| Power | Decimal | Hex | Octal |
|---|---|---|---|
| 2⁰ | 1 | 1 | 1 |
| 2³ | 8 | 8 | 10 |
| 2⁴ | 16 | 10 | 20 |
| 2⁶ | 64 | 40 | 100 |
| 2⁷ | 128 | 80 | 200 |
| 2⁸ | 256 | 100 | 400 |
| 2¹⁰ | 1,024 | 400 | 2000 |
| 2¹² | 4,096 | 1000 | 10000 |
| 2¹⁶ | 65,536 | 10000 | 200000 |
| 2²⁰ | 10,48,576 | 100000 | 4000000 |
| 2²⁴ | 1,67,77,216 | 1000000 | 100000000 |
| 2³² | 4,29,49,67,296 | 100000000 | 40000000000 |
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.

