Search for a tool
Javascript Keycodes

Tool to translate / encode Javascript Keycodes. Keycodes are numbers associated with keyboard keys handled by Javascript events.

Results

Javascript Keycodes -

Tag(s) : Substitution Cipher, Programming Language

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Javascript Keycodes' tool for free! Thank you!

Javascript Keycodes

Keycodes Decoder

 

See also: ASCII CodeJavascript

Keycodes Encoder

 

Answers to Questions (FAQ)

What are Javascript Key Codes? (Definition)

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]
480491502513
524535546557
56857965A66B
67C68D69E70F
71G72H73I74J
75K76L77M78N
79O80P81Q82R
83S84T85U86V
87W88X89Y90Z
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.

How to encrypt using Javascript Key Codes cipher?

Any series of keyboard keys (and therefore letters) can be encoded with numbers (the keycodes).

Example: JAVA is coded 74,65,86,65

How to decrypt Javascript key codes cipher?

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'

How to recognize a Javascript Key Codes ciphertext?

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.

How to simulate keyboard key presses in JavaScript?

For obvious security reasons, it is impossible to type keyboard keys from Javascript.

Source code

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.

Cite dCode

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: https://www.dcode.fr/javascript-keycodes
In a scientific article or book, the recommended bibliographic citation is: Javascript Keycodes on dCode.fr [online website], retrieved on 2025-05-01, https://www.dcode.fr/javascript-keycodes

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Javascript Keycodes' tool for free! Thank you!


https://www.dcode.fr/javascript-keycodes
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback