A binary to base32 converter rewrites a number made of ones and zeros using 32 different digits, which makes it much shorter. Enter a binary number and press Convert, and this binary to base32 converter shows the result along with the decimal, hexadecimal and base 36 forms. For example, binary 1100100 is 100 in decimal and 34 in base 32. You can also pick any other pair of bases from 2 to 36, so the same page handles hexadecimal to binary, decimal to base 36 and many more. Very long numbers are handled exactly.
How to convert binary to base 32
Because 32 is 2 to the power of 5, each base 32 digit stands for exactly 5 binary digits. That makes the conversion simple:
- Starting from the right, split the binary number into groups of 5.
- Add zeros to the left of the last group if it's short.
- Turn each group into its value, from 0 to 31.
- Write that value as a digit, using 0 to 9 and then A to V.
How to use this binary to base32 converter
- Enter your number. Spaces and underscores are ignored.
- Choose the base you are converting from. It starts at 2.
- Choose the base you are converting to. It starts at 32.
- Press Convert.
- Press Swap to convert the answer back again.
Worked examples
Take the binary number 1100100. Split it into groups of 5 from the right: 11 and 00100. The groups are worth 3 and 4, so the base 32 result is 34. You can check that: 3 × 32 + 4 = 100, and binary 1100100 is 100 in decimal.
Next, take 101010. The groups are 1 and 01010, which are worth 1 and 10. In base 32 the value 10 is written as A, so the answer is 1A, which is 42 in decimal.
Two meanings of Base32
The name Base32 is used in two different ways, and it's worth knowing which one you need.
| Number in base 32 | RFC 4648 Base32 encoding | |
|---|---|---|
| Purpose | Writing one number | Turning bytes of data into text |
| Digits | 0–9 and A–V | A–Z and 2–7 |
| Padding | None | Uses = at the end |
| Leading zeros | Have no effect on the value | Count, because they're data |
Base32 encoding is a binary-to-text encoding in which each character represents a different combination of 5 bits. The RFC 4648 standard uses the letters A to Z followed by the digits 2 to 7, skipping 0 and 1. It also says that padding must be used unless a specification explicitly states otherwise. When you enter binary with a length that's a multiple of 8, this tool shows the RFC 4648 result as an extra row. For example, the byte 01100110 becomes MY======.
What is a number base?
The radix, or base, is the number of unique digits, including zero, that are used to represent numbers. Decimal has a radix of ten. Hexadecimal has sixteen digits: 0 to 9 followed by A to F. Base 36 goes all the way, using 0 to 9 and then A to Z, which is why this tool stops there. The larger the base, the fewer digits you need for the same number.
Where number bases are used
- Binary is how computers store information.
- Hexadecimal is a compact way to write bytes, and it's common in colors and memory addresses.
- Base 32 and base 36 make short codes and identifiers that are easy to type.
- Base32 encoding carries binary data through systems that only handle plain text.
Exact results for long numbers
Many calculators lose accuracy after about 16 significant digits, because they store numbers in a fixed amount of memory. This tool uses whole-number arithmetic of any length, so a 200-digit binary number converts without any rounding at all. It accepts up to 2,048 digits. Only whole numbers are supported, so remove any fractional part or sign before you convert.
Reading the results table
Beneath the main answer, you'll see the same number written in several common systems, so that you don't have to run the conversion again for each one. Binary shows the exact bit pattern. Decimal is the everyday form, which is useful when you want to check your work by hand. Hexadecimal is the form that programmers are most likely to expect. The base 32 and base 36 rows show how short the same value becomes when more digits are available.
Why a higher base is shorter
Every digit in a number can only hold a limited amount of information, and that amount depends on how many different digits the system has. A binary digit has just two possible values, while a base 32 digit has thirty-two, so one base 32 digit does the work of five binary digits. As a result, a long string of ones and zeros shrinks to a fifth of its length. That shorter form is easier to read aloud, quicker to type and less likely to be copied incorrectly. The value itself doesn't change at all, and only the way of writing it is different, which is why you can always convert back and get exactly the number that you began with.
Common mistakes
- Grouping from the left. Always start grouping at the right.
- Mixing up the two alphabets. In encoding, A means 0. As a digit, A means 10.
- Using a digit too large for the base. 2 isn't valid in binary.
Related converters
Work with base 2 in the binary to decimal converter, encode text with the Base64 encoder and decoder, and try an older system with the Roman numeral converter.
What next
Use this often? Add Binary to Ba to your Home screen.
Frequently asked questions
How does a binary to base32 converter work?
It reads the binary number exactly and rewrites it in base 32. Each base 32 digit stands for 5 binary digits.
What digits does base 32 use?
As a number system it uses 0 to 9 and A to V. RFC 4648 encoding uses A to Z and 2 to 7.
What is 1100100 in base 32?
It's 34, because binary 1100100 is 100 in decimal, and 3 × 32 + 4 = 100.
Can I convert other bases?
Yes. Choose any bases from 2 to 36 for the input and the output.
Are very long numbers exact?
Yes. The tool uses exact whole-number arithmetic, for up to 2,048 digits.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.