Tool to decrypt/encrypt in Base 26. Base 26 uses 26 symbols, by using the alphabet's letter, Base 26 cipher can encrypt words with numbers and conversely.
Base 26 Cipher - dCode
Tag(s) : Cryptography, Arithmetics
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 26 (hexavigesimal) is the arithmetic base using 26 digits/symbols/characters to write numbers. This base can be used with the 26 letters of the alphabet as digits, which makes it possible to numerically encode any word (in both directions: numbers to letters or letters to numbers).
The encoding with base 26 uses an arithmetic base change from base 26 to base 10. The words are considered as written in base 26 (with 26 symbols: the 26 letters of the alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ) then converted to base 10. The resulting decimal number is the encrypted/coded word.
The lookup table is:
0 | A | 1 | B | 2 | C | 3 | D | 4 | E | 5 | F | 6 | G | 7 | H | 8 | I |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | J | 10 | K | 11 | L | 12 | M | 13 | N | 14 | O | 15 | P | 16 | Q | 17 | R |
18 | S | 19 | T | 20 | U | 21 | V | 22 | W | 23 | X | 24 | Y | 25 | Z |
Example: To code DCODE, written in base 26, convert it to base 10: D=3, C=2, O=14, D=3, E=4 so $ 3 \times 26^4 + 2 \times 26^3 + 14 \times 26^2 + 3 \times 26^1 + 4 \times 26^0 = 1415626 $
This method is the most rigorous mathematically, but can raise problems for encrypting words starting with A (which corresponds to the 0 symbol in base 10) and is thus generally ignored at the beginning of the number (001 = 1). It is sometimes considered to use 'A = 1' for some applications in cryptography.
Deciphering hexavigesimal (base26) consists of converting base-10 numbers to base-26 (using the 26 letters of the alphabet as symbols). Hexavigesimal numbers then become words.
Example: $ 1415626 = 3 \times 26^4 + 2 \times 26^3 + 14 \times 26^2 + 3 \times 26^1 + 4 \times 26^0 $ so [3,2,14,3,4] in base 26 and 3=D, 2=C, 14=O, 3=D, 4=E. The plain message is DCODE.
By convention, uppercase letters (A-Z) are used but lowercase letters (a-z) are possible.
The ciphered message is made of numbers, relatively big (for long words)
Identical words are encoded in the same way, so if words (repeated or very common) appear several times in the clear message, the numbers corresponding to them will appear several times in the encoded message.
The calculation of the modulo 26 values of each word makes it possible to find the value of the last letter, which should often be E or S (the most common final letters)
Base 26 allows you to create unique identifiers from a numeric code (customer number, account number, etc.)
Rather than converting normally, the reverse order of letters can be considered (or the word reversed):
Example: DCODE = $ 3 \times 26^0 + 2 \times 26^1 + 14 \times 26^2 + 3 \times 26^3 + 4 \times 26^4 = 1890151 $ (this is equivalent to coding EDOCD).
as A is encoded 0 in base 26, when encoding it is null and disappear when decoding.
Example: The code for AB = 0*26^1+1*26^0 = 1 or 1 = B, so it is better to encode 01.
Alternatively, dCode suggests using 1 as the value for encoding A, thus avoiding the use of the initial 0.
In computing, integers are usually stored in 32 bits, the largest possible value is $2^{32} - 1 = 4294967295$. Using base 26, it is therefore possible to store any 6-letter word in an integer (because the largest 6-letter word is ZZZZZZ whose base 10 value is 308915775). With a 64-bit integer, the limit increases to 13 letters.
dCode retains ownership of the "Base 26 Cipher" source code. Any algorithm for the "Base 26 Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Base 26 Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Base 26 Cipher" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Base 26 Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Base 26 Cipher on dCode.fr [online website], retrieved on 2025-04-13,