Octal (Base 8) to Base 32 Converter

Convert octal numbers to base 32.

7V

377 (base 8) = 7V (base 32)

Digits in base 8: 0 to 7. Digits in base 32: 0 to 9 and A to V.

How to convert Octal to Base 32

Every positional number system works the same way: a digit is worth its own value times the base raised to the power of its position. In base 8 the place values, from the right, are 80 = 1, 81 = 8, 82 = 64 and so on.

Most pairs have no direct trick, so go through decimal, the base we all calculate in. First turn the base 8 number into decimal, then divide by 32 and read the remainders from the bottom up. Two short steps, and you can check the number in the middle.

Both 8 and 32 are powers of 2, so there is a faster way that skips decimal. Write each digit as 3 bits, then regroup the bits in groups of 5 from the right and replace each group with a base 32 digit.

The method

decimal value = each digit × its place value, all added upplace values in base 8: 1, 8, 64, 512, 4096, and so ondivide by 32, keep the remainder, repeat until the quotient is 0the answer is the remainders read from last to first1 base 8 digit = 3 bits1 base 32 digit = 5 bitsdigits in base 8: 0 to 7digits in base 32: 0 to 9 and A to V

Worked example 1: 55 from octal to base 32

Step 1: base 8 to decimal55 (base 8) = 5 × 81 + 5 × 80= 40 + 5= 45Step 2: decimal to base 3245 ÷ 32 = 1 remainder 13 (D)1 ÷ 32 = 0 remainder 1Read the remainders from the bottom up: 1D55 (base 8) = 1D (base 32)

Letters stand for values from 10 up: A = 10, B = 11, C = 12 and so on. Remainders come out last digit first, which is why you read them from the bottom up. Digits that are 0 add nothing to the sum, so they are left out of the expansion.

Worked example 2: 377 from octal to base 32

Step 1: base 8 to decimal377 (base 8) = 3 × 82 + 7 × 81 + 7 × 80= 192 + 56 + 7= 255Step 2: decimal to base 32255 ÷ 32 = 7 remainder 31 (V)7 ÷ 32 = 0 remainder 7Read the remainders from the bottom up: 7V377 (base 8) = 7V (base 32)

Worked example 3: 1750 from octal to base 32

Step 1: base 8 to decimal1750 (base 8) = 1 × 83 + 7 × 82 + 5 × 81= 512 + 448 + 40= 1,000Step 2: decimal to base 321,000 ÷ 32 = 31 remainder 831 ÷ 32 = 0 remainder 31 (V)Read the remainders from the bottom up: V81750 (base 8) = V8 (base 32)

Worked example 4: 265 with the bit-group shortcut

265 (base 8)Write each digit as 3 bits: 2 = 010, 6 = 110, 5 = 101Join them and drop leading zeros: 10110101Pad the left with zeros and split into groups of 5: 00101 10101Replace each group with its digit: 00101 = 5, 10101 = L265 (base 8) = 5L (base 32)

Both bases are powers of 2, so there is no need to go through decimal. Groups of 5 bits make one base 32 digit.

Need the other direction? Open the Base 32 to Octal converter.

Octal to Base 32 examples

The decimal number 255 is written 377 in octal and 7V in base 32.

Common Octal to Base 32 values
OctalBase 32Decimal
111
222
777
1088
12A10
17F15
20G16
401032
1002064
14434100
3777V255
1750V81000

Where Octal to Base 32 comes up

Octal uses the digits 0 to 7, and each octal digit stands for exactly three bits. Unix file permissions such as chmod 755 are written in octal, and it also appears in older machine listings where word sizes divide by three.

Base 32 here uses 0 to 9 and A to V, and each digit stands for exactly five bits. It is handy for compact IDs. The text encodings called Base32 in RFC 4648 work on bytes and use their own alphabets, so their output is not the same as converting a whole number.

Going to a larger base packs more value into each digit, so the result is shorter. The number 255 needs 3 digits in octal and 2 in base 32.

Octal to Base 32 FAQ

How do I convert octal to base 32?

Convert to decimal first by adding up each digit times its place value, then divide that decimal number by 32 repeatedly and read the remainders from last to first. Because both bases are powers of 2, you can also skip decimal and work with groups of bits.

Which digits does octal use?

Base 8 uses the digits 0 to 7. For example, 8 is not a valid digit in base 8.

Will the base 32 number be longer or shorter?

Shorter. Going to a larger base packs more value into each digit, so the result is shorter. Roughly 0.6 base 32 digits for every octal digit. The number 255 needs 3 digits in octal and 2 in base 32.

Is there a shortcut for octal to base 32?

Yes. Both 8 and 32 are powers of 2, so there is a faster way that skips decimal. Write each digit as 3 bits, then regroup the bits in groups of 5 from the right and replace each group with a base 32 digit.

Can I convert negative numbers or fractions?

The converter handles whole numbers, and a leading minus sign works for negatives. Fractions use a different method, where you repeatedly multiply the fractional part by the new base, and they are not supported here.