Tool to encrypt / decrypt a text with alphagrams (alphabetical ordering/disordering) alphabetically arranged letters that are shuffled to obtain a coded text.
Alphagrams - dCode
Tag(s) : Transposition Cipher
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!
An alphagram is a word or phrase whose letters have been rearranged alphabetically.
Example: ALPHABET is sorted as AABEHLPT!
All words with the same alphagram are anagrams of each other.
The text is first segmented according to the rule: as long as the next letter is after the previous one in alphabetical order, then continue, otherwise create a new segment.
Example: ALPHABET becomes ALP,H,ABET
Then each segment is mixed/shuffled either randomly (ABC becomes BAC or BCA) or by inverting the letters (ABC becomes CBA)
Example: ALP,H,ABET is coded PLA,H,TEBA
Each segment is alphagrammed (sorted by alphabetical order), then read the text (which no longer has space).
Example: 'PLA, H, TEBA' becomes 'ALP, H, ABET'
If the text is not segmented and the segments have been reversed, it is possible to find them by looking at the letters that follow in the anti-alphabetical order. If the segments were mixed randomly, then there is no magic method, at best looking for the most plausible bigrams.
It is a transposition cipher: no letter is modified, only the order changes.
The coincidence index is equal to that of the language used.
The text has many separation symbols (usually spaces).
dCode retains ownership of the "Alphagrams" source code. Any algorithm for the "Alphagrams" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Alphagrams" 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 "Alphagrams" 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 "Alphagrams" 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: Alphagrams on dCode.fr [online website], retrieved on 2025-05-29,