Search for a tool
Base32

Tool for decoding / encoding in Base32 according to RFC 4648. Base 32 is a variant of Base64 which uses letters and numbers from 2 to 7 (and =) as basic symbols.

Results

Base32 -

Tag(s) : Character Encoding

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Base32' tool for free! Thank you!

Base32

Base32 Decoder

Do not confuse with mathematical base 32 conversion!

⮞ Go to: Base N Convert
 


See also: Base64 Coding

Base32 Encoder


  âś–

 

See also: Base64 Coding — Base N Convert — Binary Code

Answers to Questions (FAQ)

What is Base32? (Definition)

Base32 is an encoding method standardized by RFC 4648. It allows binary data to be represented as text using 32 ASCII characters that are safe for transmission or storage. The standard alphabet is: ABCDEFGHIJKLMNOPQRSTUVWXYZ234567. The = character is used as a padding symbol to ensure a length that is a multiple of 8 characters.

How to encrypt using Base32 cipher?

Convert the original message into a binary sequence according to its encoding (such as ASCII or Unicode UTF-8).

Example: Base is encoded in ASCII (8-bits) 01000010,01100001,01110011,01100101

Group the bits into blocks of 5. Add trailing zeros (on the right) if necessary to complete the last block.

Example: The splitting gives the 32 bits 01000,01001,10000,10111,00110,11001,01000 (adding three trailing zeros).

Associate each 5-bit block with a Base32 character according to the lookup table:

BinaryDecimalBase32
000000A
000011B
000102C
000113D
001004E
001015F
001106G
001117H
010008I
010019J
0101010K
0101111L
0110012M
0110113N
0111014O
0111115P
1000016Q
1000117R
1001018S
1001119T
1010020U
1010121V
1011022W
1011123X
1100024Y
1100125Z
11010262
11011273
11100284
11101295
11110306
11111317

Example: 01000 for I, 01001 for J, and so on. Until IJQXGZI

Add the = character to the end of the string if the result is not a multiple of 8 characters.

Example: The Base message translates to the base32 IJQXGZI=

How to decrypt Base32 cipher?

The Base32 decoding is similar to a mathematical base change.

Example: Decode the message INXWIZI= coded in Base 32

Delete the final = of the encoded message.

Example: INXWIZI= becomes INXWIZI

Replace each character with its 5-bit value (cf conversion table) to create a binary string.

Example: I for 01000, N for 01101, etc. Until 01000,01101,10111,10110,01000,11001,01000

Read the binary string according to the encoding used (ASCII, Unicode, etc.)

Example: The message is divided into bytes (8-bits) as follows: 01000011,01101111,01100100,01100101 (the last string composed of padding bits 0 is ignored), which corresponds to ASCII (or Unicode) string Code

How to recognize a Base32 ciphertext?

A B32-encoded message

— is composed only of the characters 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567 =' (no 0,1,8,9)

— theoretically has a number of character multiple of 8.

— ends with 0,1,3,4 or 6 characters = (equal).

— has a length greater than 40 to 60% of the original message

Why aren't digit 0 and 1 used in Base32?

The digit 0 is avoided not to be confused with the letter O, and the number 1 is also avoided for its resemblance to the letter I.

This makes Base32 strings safer to copy, read, or transmit manually.

What are the variants of the Base32 encoding?

Base32 is similar to Base64 which is much more commonly used.

The zbase32 code is a Base32 variant wanting to be more human-readable and writable.

The mathematical basis 32 (or base32hex) is the most natural version for writing numbers in base 32 and uses the symbols 0123456789abcdefghijklmnopqrstuv

Source code

dCode retains ownership of the "Base32" source code. Any algorithm for the "Base32" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Base32" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Base32" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Base32" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).

To cite dCode.fr on another website, use the link: https://www.dcode.fr/base-32-encoding

In a scientific article or book, the recommended bibliographic citation is: Base32 on dCode.fr [online website], retrieved on 2025-10-30, https://www.dcode.fr/base-32-encoding

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Base32' tool for free! Thank you!


https://www.dcode.fr/base-32-encoding
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
â–˛  
Feedback