# Base62

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Base62
> Markdown URL: https://mediated.wiki/source/Base62.md
> Source: https://en.wikipedia.org/wiki/Base62
> Source revision: 1342116678
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description |Encoding for a sequence of byte values using 62 printable characters}}
'''Base62''' is a [binary-to-text encoding](/source/binary-to-text_encoding) that represents arbitrary data (including [binary data](/source/binary_data)) as [ASCII](/source/ASCII) text. It encodes data as the 62 letters and digits of ASCII {{endash}} capital letters A-Z, lower case letters a-z and digits 0–9.<ref name="ieee">{{cite book |title=  2008 11th IEEE Singapore International Conference on Communication Systems|publisher=[Institute of Electrical and Electronics Engineers](/source/Institute_of_Electrical_and_Electronics_Engineers) |date=November 19, 2008 |doi=10.1109/ICCS.2008.4737287 |quote="This base62 compressed encoding has been tested & The 62 alphanumeric characters (A-Z, a-z, 0–9)"|last1=Kejing He |last2=Xiancheng Xu |last3=Qiang Yue |chapter=A secure, lossless, and compressed Base62 encoding |pages=761–765 |isbn=978-1-4244-2423-8 |s2cid=10831128 }}</ref><ref name="wiley">{{cite journal |title=A base62 transformation format of ISO 10646 for multilingual identifiers |url=https://onlinelibrary.wiley.com/doi/pdf/10.1002/spe.408 |archive-url= |journal= Software: Practice and Experience|archive-date= |date=June 18, 2001 |doi=10.1002/spe.408 |accessdate=August 13, 2020 |quote="within a [0–9][A–Z][a–z] range, a total of 62 base characters"|last1=Wu |first1=Pei-Chi |volume=31 |issue=12 |pages=1125–1130 |s2cid=32472727 |url-access=subscription }}</ref>

 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
 = 58 characters = [base58](/source/base58)
 
 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
 = 62 characters = '''base62'''
 
 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/
 = 64 characters = [base64](/source/base64)

==Alphabet==
<span id="Base62table">The Base62 alphabet</span>:

{|class="wikitable" style="text-align:center"
|-
!scope="col"| Value !! scope="col" | Char
|rowspan="17"|
!scope="col"| Value !! scope="col" | Char
|rowspan="17"|
!scope="col"| Value !! scope="col" | Char
|rowspan="17"|
!scope="col"| Value !! scope="col" | Char
|-
|  0 || {{code|0}} || 16 || {{code|G}} || 32 || {{code|W}} || 48 || {{code|m}}
|-
|  1 || {{code|1}} || 17 || {{code|H}} || 33 || {{code|X}} || 49 || {{code|n}}
|-
|  2 || {{code|2}} || 18 || {{code|I}} || 34 || {{code|Y}} || 50 || {{code|o}}
|-
|  3 || {{code|3}} || 19 || {{code|J}} || 35 || {{code|Z}} || 51 || {{code|p}}
|-
|  4 || {{code|4}} || 20 || {{code|K}} || 36 || {{code|a}} || 52 || {{code|q}}
|-
|  5 || {{code|5}} || 21 || {{code|L}} || 37 || {{code|b}} || 53 || {{code|r}}
|-
|  6 || {{code|6}} || 22 || {{code|M}} || 38 || {{code|c}} || 54 || {{code|s}}
|-
|  7 || {{code|7}} || 23 || {{code|N}} || 39 || {{code|d}} || 55 || {{code|t}}
|-
|  8 || {{code|8}} || 24 || {{code|O}} || 40 || {{code|e}} || 56 || {{code|u}}
|-
|  9 || {{code|9}} || 25 || {{code|P}} || 41 || {{code|f}} || 57 || {{code|v}}
|-
| 10 || {{code|A}} || 26 || {{code|Q}} || 42 || {{code|g}} || 58 || {{code|w}}
|-
| 11 || {{code|B}} || 27 || {{code|R}} || 43 || {{code|h}} || 59 || {{code|x}}
|-
| 12 || {{code|C}} || 28 || {{code|S}} || 44 || {{code|i}} || 60 || {{code|y}}
|-
| 13 || {{code|D}} || 29 || {{code|T}} || 45 || {{code|j}} || 61 || {{code|z}}
|-
| 14 || {{code|E}} || 30 || {{code|U}} || 46 || {{code|k}} || ||
|-
| 15 || {{code|F}} || 31 || {{code|V}} || 47 || {{code|l}} || ||
|-
|}

== See also ==
* [List of numeral systems](/source/List_of_numeral_systems)

== References ==
<references />

Category:Internet Standards
Category:Binary-to-text encoding formats
Category:Data serialization formats
Category:Positional numeral systems

---
Adapted from the Wikipedia article [Base62](https://en.wikipedia.org/wiki/Base62) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Base62?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
