-
Notifications
You must be signed in to change notification settings - Fork 18
Bases
Bases are the "types" of numbers we can increment. Think of them like different alphabets. You can increment all sorts of bases, even your own made-up custom ones.
- 2 Binary - 0s and 1s
- 8 Octal - 0-7 Was popular, but is not commonly used anymore
- 10 Decimal - 0-9 Our default number system
- 16 Hexadecimmal - 0-9 A-F Used in Hex Colors, Hashing, Cryptography
- 32 Hexatrigesimal - 0-9 A-Z The full alphanumeric alphabet (After 9, it goes to A, then every letter till Z and back to 0)
- Base 62 - 0-9 A-Z a-z Similar to Hexatrigesimal except it also contains lowercase alphabet as well
- Base 64 - Similar to Base 62 except additional characters are added like +/ Extremely popular, Hashing, Cryptography
For a good visual showing bases 2-36, please see the Table of Bases on Wikipedia.
Change the Base Type
to Custom Base
and instantly define a custom alphabet to increment.
The alphabet can contain special characters, including !@#$%^&*()_+=-.
You can even use normal alphabets and just exclude certain letters.
The order of characters in the alphabet matters; also the first character is treated like "0" in our decimal number system.
Example:
Say you have defined a 5-character custom Alphabet
of aB!9?
. This is how it would look like when you start at a
and increment with an interval of 1:
a B ! 9 ?
Ba BB B! B9 B?
!a !B !! !9 !?
9a 9B 9! 99 9?
?a ?B ?! ?9 ??
Custom Base Examples
Here are some common custom bases you can copy/paste into the Alphabet
input:
- Base 62
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
- Base 64 (A)
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
- Base 64 (B)
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
Base 64 Note
There are two versions of Base 64 noted here. Version A
is the Standard Non-URL Friendly +/ Version Without = Padding. Version B
is the Modified URL Friendly -_ Version Without = Padding.