Base62

The base62 encoding scheme uses 62 characters. The characters consist of the capital letters A-Z, the lower case letters a-z and the numbers 0–9. It is a binary-to-text encoding scheme that represents binary data in an ASCII string format.[1][2]

123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz = 58 characters = base58  0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz = 62 characters = base62  0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/ = 64 characters = base64 

Base62 table

[edit]

The Base62 index table:

Decimal Binary Base62 Decimal Binary Base62 Decimal Binary Base62 Decimal Binary Base62
0 000000 0 16 010000 G 32 100000 W 48 110000 m
1 000001 1 17 010001 H 33 100001 X 49 110001 n
2 000010 2 18 010010 I 34 100010 Y 50 110010 o
3 000011 3 19 010011 J 35 100011 Z 51 110011 p
4 000100 4 20 010100 K 36 100100 a 52 110100 q
5 000101 5 21 010101 L 37 100101 b 53 110101 r
6 000110 6 22 010110 M 38 100110 c 54 110110 s
7 000111 7 23 010111 N 39 100111 d 55 110111 t
8 001000 8 24 011000 O 40 101000 e 56 111000 u
9 001001 9 25 011001 P 41 101001 f 57 111001 v
10 001010 A 26 011010 Q 42 101010 g 58 111010 w
11 001011 B 27 011011 R 43 101011 h 59 111011 x
12 001100 C 28 011100 S 44 101100 i 60 111100 y
13 001101 D 29 011101 T 45 101101 j 61 111101 z
14 001110 E 30 011110 U 46 101110 k
15 001111 F 31 011111 V 47 101111 l

See also

[edit]

References

[edit]
  1. ^ Kejing He; Xiancheng Xu; Qiang Yue (November 19, 2008). "A secure, lossless, and compressed Base62 encoding". 2008 11th IEEE Singapore International Conference on Communication Systems. Institute of Electrical and Electronics Engineers. pp. 761–765. doi:10.1109/ICCS.2008.4737287. ISBN 978-1-4244-2423-8. S2CID 10831128. Retrieved 12 August 2020. This base62 compressed encoding has been tested & The 62 alphanumeric characters (A-Z, a-z, 0–9)
  2. ^ Wu, Pei-Chi (June 18, 2001). "A base62 transformation format of ISO 10646 for multilingual identifiers". Software: Practice and Experience. 31 (12): 1125–1130. doi:10.1002/spe.408. S2CID 32472727. Retrieved August 13, 2020. within a [0–9][A–Z][a–z] range, a total of 62 base characters