Number base converter
Every representation of the same integer, computed exactly rather than through a float.
Binary
11111111
- Octal
- 377
- Hexadecimal
- FF
- Base 3
- 100110
- Base 32
- 7V
- Base 36
- 73
- Bits needed
- 8
- Bytes needed
- 1
Show the working
- Number = 255
- Binary = 255 = 255
- Base 3 = 255 = 255
- Octal = 255 = 255
- Hexadecimal = 255 = 255
- Base 32 = 255 = 255
- Base 36 = 255 = 255
- Bits needed = 255 > 0 ? floor(log2(255)) + 1 : 1 = 8
- Bytes needed = ceil(8 / 8) = 1
Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.
Scenarios & local history
Compare a saved scenario
Recent calculations
The formula
- Repeatedly divide by the base and read the remainders from last to first.
Digits above 9 use the letters A to Z, so base 36 runs 0-9 then A-Z.