Tool to translate / encode Javascript Keycodes. Keycodes are numbers associated with keyboard keys handled by Javascript events.
Javascript Keycodes - dCode
Tag(s) : Substitution Cipher, Programming Language
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 JavaScript (JS) language associates with each key of the keyboard a numerical code named keycode. Here is the complete table:
8 | [BACKSPACE ⌫] | 9 | [TAB ↹] | 13 | [ENTER ⏎] | 16 | [SHIFT ⇧] |
---|---|---|---|---|---|---|---|
17 | [CTRL] | 18 | [ALT] | 19 | [PAUSE] | 20 | [CAPS LOCK 🔒] |
27 | [ESCAPE] | 32 | 33 | [PAGE UP ⇞] | 34 | [PAGE DOWN ⇟] | |
35 | [END] | 36 | [HOME ⇱] | 37 | [LEFT ARROW ←] | 38 | [UP ARROW ↑] |
39 | [RIGHT ARROW →] | 40 | [DOWN ARROW ↓] | 45 | [INSERT] | 46 | [DELETE] |
48 | 0 | 49 | 1 | 50 | 2 | 51 | 3 |
52 | 4 | 53 | 5 | 54 | 6 | 55 | 7 |
56 | 8 | 57 | 9 | 65 | A | 66 | B |
67 | C | 68 | D | 69 | E | 70 | F |
71 | G | 72 | H | 73 | I | 74 | J |
75 | K | 76 | L | 77 | M | 78 | N |
79 | O | 80 | P | 81 | Q | 82 | R |
83 | S | 84 | T | 85 | U | 86 | V |
87 | W | 88 | X | 89 | Y | 90 | Z |
91 | [LEFT WINDOWS ⊞] | 92 | [RIGHT WINDOWS ⊞] | 93 | [CONTEXT MENU] | 96 | [PAD 0] |
97 | [PAD 1] | 98 | [PAD 2] | 99 | [PAD 3] | 100 | [PAD 4] |
101 | [PAD 5] | 102 | [PAD 6] | 103 | [PAD 7] | 104 | [PAD 8] |
105 | [PAD 9] | 106 | * | 107 | + | 109 | - |
110 | . | 111 | / | 112 | [F1] | 113 | [F2] |
114 | [F3] | 115 | [F4] | 116 | [F5] | 117 | [F6] |
118 | [F7] | 119 | [F8] | 120 | [F9] | 121 | [F10] |
122 | [F11] | 123 | [F12] | 144 | [NUM LOCK] | 145 | [SCROLL LOCK] |
186 | ; | 187 | = | 188 | , | 189 | - |
190 | : | 191 | / | 192 | ` | 219 | ( |
220 | \ | 221 | ) | 222 | ' |
Uppercase letters and numbers have the same codes as the ASCII code.
Any series of keyboard keys (and therefore letters) can be encoded with numbers (the keycodes).
Example: JAVA is coded 74,65,86,65
Each code corresponds to a key, decryption is therefore a substitution of numbers by the corresponding key.
Example: '83,67,82,73,80,84 decrypts SCRIPT'
The letters are encoded by numbers between 65 and 90 (as ASCII code).
In a JavaScript code, the use of the keyboard keys is generally related to a key-typed event (keyDown or keyUp event) the presence of these keywords is a clue.
For obvious security reasons, it is impossible to type keyboard keys from Javascript.
dCode retains ownership of the "Javascript Keycodes" source code. Any algorithm for the "Javascript Keycodes" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Javascript Keycodes" 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 "Javascript Keycodes" 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 "Javascript Keycodes" 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: Javascript Keycodes on dCode.fr [online website], retrieved on 2025-05-01,