Home › Developer Tools › Keycode Finder
⌨️ Keycode Finder
Press any key to see its JavaScript key, code and keyCode values instantly.
About this Keycode Finder
Building a keyboard shortcut, a game or a form that reacts to Enter and Escape? This tool shows the three values JavaScript reports for any key you press: the modern event.key (what the key means), event.code (where the key physically sits) and the legacy event.keyCode number, plus modifier states.
How to use it
- Click the dashed box to give it keyboard focus.
- Press any key — letters, arrows, function keys, anything.
- Read its key, code and keyCode in the result panel.
- Press more keys to compare them.
Example
Pressing the A key shows key: a, code: KeyA and keyCode: 65; holding Shift and pressing A shows key: A with the same code and keyCode.
Frequently asked questions
What is the difference between key and code?
key is the character produced (it changes with Shift and keyboard layout), while code is the physical position on a US keyboard, like KeyA. Games usually want code; text handling wants key.
Why is keyCode marked legacy?
keyCode is deprecated — browsers still report it, but new code should use key or code, which are clearer and layout-aware.
More Developer Tools
Password Generator
Create strong random passwords in your browser with a live entropy strength meter.
QR Code Generator
Turn any text or link into a QR code you can save — generated right in your browser.
Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back, with safe UTF-8 handling for any language.
JSON Formatter
Format, minify and validate JSON, with clear error positions and quick structure stats.
URL Encoder & Decoder
Encode or decode URLs and query text safely, with component or full-URL modes.
JSON to CSV Converter
Convert a JSON array of objects to CSV, or turn CSV back into clean JSON.