Skip to content
browserutils

Keyboard Keycodes

Press any key to see its keyCode, key, and code values

Keyboard Keycodes is a free online tool from BrowserUtils that press any key to see its keycode, key, and code values. It runs entirely in your browser — your data never leaves your device. No account required.

Press any key to see its properties
Click here first if not focused
Common Key Codes Reference
13Enter
9Tab
27Escape
32Space
8Backspace
46Delete
38ArrowUp
40ArrowDown
37ArrowLeft
39ArrowRight
16Shift
17Control
18Alt
91Meta
20CapsLock
112F1
113F2
114F3
115F4
116F5
117F6
118F7
119F8
120F9
121F10
122F11
123F12
36Home
35End
33PageUp
34PageDown
45Insert

How to use Keyboard Keycodes

  1. 1 Paste or type your input into the editor above.
  2. 2 The tool processes your data instantly — right in your browser, with nothing sent to a server.
  3. 3 Copy the result with one click or continue editing your input.

About Keyboard Keycodes

Free online keyboard keycode tester. Press any key to instantly see its JavaScript keyCode, key, code, and which values. Essential for keyboard event handling. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

Keyboard Keycodes specs

Runtime
100% client-side (browser)
Cost
Free — no account, no rate limits, no usage caps
Browser support
Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
Part of
299 developer tools on BrowserUtils (100% client-side)

Questions

What is the difference between keyCode, key, and code?
keyCode is a deprecated numeric value for the key. key returns the character value (e.g., "a", "Enter"). code returns the physical key identifier (e.g., "KeyA", "Enter") regardless of keyboard layout. Use key or code instead of keyCode in modern code.
Why is keyCode deprecated?
keyCode is deprecated because its values are inconsistent across browsers and keyboard layouts. The key and code properties provide more reliable and descriptive values for handling keyboard events.
How do I detect modifier keys like Ctrl or Shift with this tool?
Press the modifier key and the tool will display its key, code, and keyCode values. Keyboard events also include boolean properties (ctrlKey, shiftKey, altKey, metaKey) that indicate which modifiers were held during a key press.
Does this keyboard keycode tool send any data to a server?
No. All key detection runs entirely in your browser using JavaScript event listeners. No keystrokes are recorded, transmitted, or stored anywhere.
What is the difference between keydown, keypress, and keyup events?
keydown fires when a key is pressed and repeats if held. keyup fires when the key is released. keypress is deprecated and only fired for character keys. Use keydown for most keyboard handling in modern applications.
Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/keyboard-keycodes" width="100%" height="500" frameborder="0" title="Keyboard Keycodes"></iframe>

Related tools

More Developer Reference

View all Developer Reference tools