Tool for encoding / decoding with the Base62 encoding system, using all alphanumeric characters (upper and lower case) forming a base 62.
Base62 Encoding - dCode
Tag(s) : Character Encoding
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!
Base 62 is a numbering system that can also be used to encode binary strings. It uses 62 alphanumeric characters (10 digits 0-9, 26 uppercase letters A-Z and 26 lowercase letters a-z). The 62 symbols used in this base 62 are generally: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
The binary data string is converted to base 62 (by a classical change of arithmetic base), the indexes of the 62 symbols are:
0 | 0 | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 4 | 5 | 5 | 6 | 6 | 7 | 7 | 8 | 8 | 9 | 9 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | A | 11 | B | 12 | C | 13 | D | 14 | E | 15 | F | 16 | G | 17 | H | 18 | I | 19 | J |
20 | K | 21 | L | 22 | M | 23 | N | 24 | O | 25 | P | 26 | Q | 27 | R | 28 | S | 29 | T |
30 | U | 31 | V | 32 | W | 33 | X | 34 | Y | 35 | Z | 36 | a | 37 | b | 38 | c | 39 | d |
40 | e | 41 | f | 42 | g | 43 | h | 44 | i | 45 | j | 46 | k | 47 | l | 48 | m | 49 | n |
50 | o | 51 | p | 52 | q | 53 | r | 54 | s | 55 | t | 56 | u | 57 | v | 58 | w | 59 | x |
60 | y | 61 | z |
Example: The string dCode, encoded in ASCII (01100100,01000011,01101111,01100100,01100101) is equivalent to the decimal number $ 430628103269_{(10)} $, which can be converted to base 62 in $ {7, 36, 3, 5, 39, 26, 53}_{62} $ or the characters 7a35dQr.
Take the base62 string and note the indexes of each character to obtain a base 62 number. Convert this number into binary or directly encode it in ASCII (or Unicode) to obtain the plain message.
Example: Decode R0Ow, R is 27, 0 is 0, O is 24 and w is 58 either the number $ {27,0,24,58}_{62} $ or in decimal $ 6436402_{(10)} $ or in binary $ 11000100011011000110010_{(2)} $ or b62 in ASCII code.
Base-62 encoded strings contain only alphanumeric characters: numbers, uppercase and lowercase letters.
Example: Base62 is coded KixpUr22
Base62 is case sensitive. Uppercase (A-Z) and lowercase (a-z) characters represent different values.
Base62 maximizes the use of characters available in most text environments (letters and numbers), allowing data to be represented more compactly than number systems based on smaller bases, such as Base 10 or Basis 16.
Base 62 allows data to be compacted, it is used in URL shorteners (web page addresses), in the generation of unique identifiers in computer systems, etc.
Base 62 is sometimes used to store numbers in character strings.
dCode retains ownership of the "Base62 Encoding" source code. Except explicit open source licence (indicated Creative Commons / free), the "Base62 Encoding" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Base62 Encoding" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Base62 Encoding" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Base62 Encoding" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Base62 Encoding on dCode.fr [online website], retrieved on 2024-11-21,