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*!

The base62 is an encoding method with 62 characters (ie all alphanumeric characters: digits 0-9, upper case letters A-Z and lower case a-z) allowing the encoding of binary strings. The 62 symbols used in this base 62 are (in this order): `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`.

__Example:__ `Base62` is encoded `KixpUr22`

__Example:__ `Base62` is decoded 169958929504 or the binary data `00100111,10010010,01010111,01110100,01100000`

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.

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, 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 as long as you cite dCode!

Cite as source (bibliography):

*Base62 Encoding* on dCode.fr [online website], retrieved on 2022-12-09,

base62,62,base,alphanumeric

https://www.dcode.fr/base62-encoding

© 2022 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback