[x] Close ad

BASE32

Numeral systems
Hindu-Arabic numerals
Western Arabic
Eastern Arabic
Indian family
Brahmi
East Asian numerals
Chinese
Japanese
Khmer
Korean
Thai
 
Alphabetic numerals
Abjad
Armenian
Cyrillic
Ge'ez
Hebrew
Ionian
Sanskrit
 
Other systems
Attic
Etruscan
Roman
Babylonian
Egyptian
Mayan
Numeral system topics
 
Positional systems
Decimal base,
Binaries2, 4, 8,16, 32, 64, 128
other:  3, 9, 12, 24, 30, 36, 60, more.   

+/-

Base32, a derivation of Base64, is a notation for expressing large numbers in a form that can be conveniently and accurately transmitted between humans and computer systems.

Contents

Advantages

Base32 has two main advantages over Base64:

  1. The resulting character set is all one case (usually represented as uppercase), which can often be beneficial when using a case-insensitive filesystem.
  2. The result can be included in a URL without encoding any characters.

Base32 alphabet

It uses an alphabet of AZ, followed by 27 (thus "2" actually has a numerical value of 26). 0 and 1 are skipped due to their similarity with the letters O and I.

The Base 32 alphabet
Value Symbol Value Symbol Value Symbol Value Symbol
0 A 9 J 18 S 27 3
1 B 10 K 19 T 28 4
2 C 11 L 20 U 29 5
3 D 12 M 21 V 30 6
4 E 13 N 22 W 31 7
5 F 14 O 23 X
6 G 15 P 24 Y
7 H 16 Q 25 Z
8 I 17 R 26 2 pad =


Alternate versions

An earlier form of base 32 notation was used by programmers working on the Electrologica X1 to represent machine addresses. The "digits" were represented as decimal numbers from 0 to 31. For example, 12-16 would represent the machine address 400.

Another alternative design for Base32 is created by Douglas Crockford, which propses using additional characters for a checksum [1].

Alternate Base32 alphabet
Value Encode Digit Decode Digit Value Encode Digit Decode Digit
0 0 O o 0 16 G g G
1 1 I i L l 1 17 H h H
2 2 2 18 J j J
3 3 3 19 K k K
4 4 4 20 M m M
5 5 5 21 N n N
6 6 6 22 P p P
7 7 7 23 Q q Q
8 8 8 24 R r R
9 9 9 25 S s S
10 A a A 26 T t T
11 B b B 27 V v V
12 C c C 28 W w W
13 D d D 29 X x X
14 E e E 30 Y y Y
15 F f F 31 Z z Z

References