Tool to simulate a computer keyboard change: typing the keys in position P on a keyboard in the same key in position P but on another keyboard layout (QWERTY/Android/Mac etc.)
Keyboard Change Cipher - 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 keyboard layout substitution cipher consists of substituting characters according to corresponding positions in two different keyboard layouts. Computer keyboards may have different key arrangements depending on the country and the layout standard. Pressing the same physical key can therefore produce different characters depending on the active layout, such as French AZERTY or US QWERTY.
Select the 2 keyboard layouts to use for substitution.
| QWERTY | QWERTYUIOPASDFGHJKLZXCVBNM |
| AZERTY | AZERTYUIOPQSDFGHJKLMWXCVBN |
| Alphabet | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| DVORAK | PYFGCRLAOEUIDHTNSQJKXBMWVZ |
Example: The principle is to replace each character with the character associated with the same position in the other layout. For example, the physical key corresponding to the letter A on an AZERTY keyboard produces the letter Q with the US QWERTY layout.
Example: The exact mapping depends on the supported layouts and on how characters are associated by the tool.
Encryption and decryption use the same substitution principle, provided that the source and target layouts are reversed. To recover the original text, apply the inverse substitution using the mapping table in the opposite direction.
QWERTY and AZERTY keyboards share several letters in the same positions, including E, R, T, Y, U, I, O, P, S, D, F, G, H, J, K and L in common layouts. However, the exact correspondences depend on the keyboard variant and the method used to compare positions.
Software-wise, the operating system allows different keyboard layouts to be selected. A physical key generates a code that the system interprets according to the active layout to produce a character or trigger an action.
On Windows, the WINDOWS+SPACE shortcut or, depending on the configuration, ALT+SHIFT can be used to switch keyboard layouts.
Physically, many USB keyboards can be used with different systems and layouts, but compatibility depends on the connector, hardware and supported features. Changing the software layout does not change the characters printed on the keys.
A keyboard layout change can be treated as a monoalphabetic substitution when each source character always corresponds to the same target character. In that case, character frequencies are preserved under the substitution, and the index of coincidence remains unchanged if the transformation is bijective and applied consistently.
Letters, digits, punctuation marks and accented characters may be transformed differently depending on the selected layouts. Switching from AZERTY to QWERTY therefore does not systematically turn accented characters into digits.
Many keyboard layout variants exist depending on the country, language and standard, including AZERTY, QWERTY and Dvorak. A substitution can also be defined by shifting key positions or using a custom layout. Variants may affect letters, digits, punctuation marks and accented characters.
dCode retains ownership of the "Keyboard Change Cipher" source code. Any algorithm for the "Keyboard Change Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Keyboard Change 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 "Keyboard Change Cipher" 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 "Keyboard Change Cipher" 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: Keyboard Change Cipher on dCode.fr [online website], retrieved on 2026-11-20,