Shows the JS keyCode for a key.
Keyboard Keycode looks up the JavaScript keyCode for a key you type in. Enter a single character like "a" or a named key such as "Enter", "Tab", or "ArrowUp", and it returns the matching numeric keyCode used in keyboard events. It's handy when you're wiring up key event handlers and need to confirm the right code without printing it from the console.
No. The lookup runs entirely in your browser, and nothing you type is uploaded or stored anywhere.
It accepts a single character (for example "k", which uses its uppercase character code) or a named key it knows about, such as Enter, Tab, Escape, Space, Backspace, Delete, the arrow keys, Shift, Control, Alt, CapsLock, Home, and End.
Named keys are matched case-insensitively, so "enter", "Enter", and "ENTER" all work. For single characters the code is computed from the uppercase form, so "a" and "A" both return 65.
If the input is longer than one character and isn't one of the recognized named keys, the tool can't map it to a keyCode and reports it as unknown. Use a single character or one of the supported key names.
The keyCode property is deprecated in browsers in favor of KeyboardEvent.key and KeyboardEvent.code. This tool is mainly useful for understanding or maintaining existing code that still relies on numeric keyCodes.