Tool to encode/decode using the Cassis code (K6). K6 is a substitution cipher whose principle is indicated by its name: associating the letter K with the digit 6. K6 is also a phonetic abbreviation of the French word 'cassis'.
K6 Code - dCode
Tag(s) : Substitution 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!
The K6 cipher is a variant of the A1Z26 alphabetical rank cipher. Instead of associating A=1, the code uses K=6, then assigns increasing values to the following letters: L=7, M=8, etc. The numbering continues cyclically, with Z=21, A=22, etc., up to J=5.
The K6 cipher assigns a numerical value to each letter, with 'K=6, L=7, M=8', etc. Numbers can be separated by slashes, spaces, or another separator.
Example: DCODE is encoded as 25/24/10/25/26
K6 decryption consists of assigning a letter to each number using the inverse of the encoding mapping. The mapping must be known, including the values assigned to letters other than K=6: 'L=7, M=8', etc.
Example: 25/24/10/25/26 decodes to DCODE
A message encoded with K6 generally consists of numbers between 1 and 26. Under the convention described here, the number 26 represents the letter E. The presence of numbers in this range can be a clue, but is not sufficient on its own to identify the cipher.
References to the French town of Cassis, blackcurrants, or the K6 mountain peak may also provide clues, depending on the context.
If K=6 remains fixed, the way numerical values are assigned to the other 25 letters can vary. Numbering can be increasing (J=5, K=6, L=7) or decreasing (J=7, K=6, L=5). Other variants may use negative values or perform calculations modulo 26, depending on the chosen convention.
The K6 mapping described here applies to letters of the alphabet. Spaces, digits, and punctuation require an additional convention: they can be preserved in the message, removed, or represented by separators or specific values.
dCode retains ownership of the "K6 Code" source code. Any algorithm for the "K6 Code" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "K6 Code" 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 "K6 Code" or any other element are not public (except explicit open source licence). 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 "K6 Code" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
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: K6 Code on dCode.fr [online website], retrieved on 2026-11-16,