Tool to decrypt/encrypt according to Mary, Queen of Scots. Mary Stuart code is a substitution cryptogram by symbols extended to the words used by the Queen of Scots.
Mary Stuart Code - dCode
Tag(s) : Symbol Substitution
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 encryption imagined by Mary Stuart uses a correspondence between letters (but also words) and symbols. The complete alphabet is regularly changed but kept secret between her and its correspondents.
The best known of the alphabets is the one used during the Babington plot, led by Sir Anthony Babington, which aimed to kill Queen Elizabeth I so that Mary Queen of Scots could take the throne. An intercepted message used this alphabet (these are the characters that are the most common on the Internet):
The alphabet contains 5 blank characters that can be used as space or word separator (this makes the frequency analysis more complex).
Mary Stuart (or Mary I of Scotland) was born December 8, 1542 (and died February 8, 1587) was the Queen of Scotland from 1542 to 1567 and Queen consort of France between 1559 and 1560.
She was convicted of conspiring to assassinate the Queen of England during the Babington plot.
A book is dedicated to her and her code here (affiliate link)
dCode retains ownership of the "Mary Stuart Code" source code. Any algorithm for the "Mary Stuart Code" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Mary Stuart 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 "Mary Stuart Code" 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 "Mary Stuart Code" 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: Mary Stuart Code on dCode.fr [online website], retrieved on 2025-04-16,