Tool to encode and decode messages with long press symbols of the Android keyboard (Gboard), convert letters and special characters and understand key correspondence.
Android Keyboard Long Press - 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!
A long press on an Android keyboard like Gboard involves holding down a key for longer than a certain threshold (usually a few hundred milliseconds).
When this threshold is exceeded, the keyboard displays one or more alternative characters associated with the key.
To encode a message using long presses, use a lookup table that associates each letter with a symbol accessible via a long press. Here is the lookup table for the default GBoard QWERTY keyboard:
| A | @ | D | $ | G | ^ | J | * | M | ¿ | P | ] | S | # | V | : | Y | _ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B | ; | E | ÷ | H | & | K | ( | N | ¡ | Q | + | T | / | W | x | Z | - |
| C | \" | F | % | I | > | L | ) | O | [ | R | = | U | < | X | ' |
Example: GBOARD translates to &;{@=$ ou &;914€
The key mappings depend on the user's keyboard layout; in QWERTY, the key mappings are not the same as in AZERTY.
Google may change these mappings in keyboard updates.
To decode a symbol (that is, to identify the originating key), consult the standard key assignment table (see above).
The decoded message is obtained by replacing each symbol with the corresponding letter in the table.
The message is theoretically composed solely of special characters (among the most common):
@, ;, ", $, ÷, %, ^, &, =, >, *, (, ), ¿, ¡, [, ], +, #, /, <, :, >, ', _, -
The presence of the number row allows characters to be accessed by long-pressing because the virtual keyboard layout is adaptive.
A smartphone keyboard has limited display space. When the number row is activated, the numbers 0 through 9 occupy a dedicated row.
The keyboard can then rearrange the alternative characters across the 26 letters.
Conversely, if the number row is not displayed, the 10 digits become accessible by long-pressing the first row of keys.
dCode retains ownership of the "Android Keyboard Long Press" source code. Any algorithm for the "Android Keyboard Long Press" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Android Keyboard Long Press" 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 "Android Keyboard Long Press" 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 "Android Keyboard Long Press" 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: Android Keyboard Long Press on dCode.fr [online website], retrieved on 2026-03-14,