Keycode Viewer
Press any key to see its JavaScript keyboard event properties: key, code, keyCode, which, location, and modifier states.
⌨️
Click here and press any key
The area will capture keyboard events
Common Special Keys
EnterTabSpaceBackspaceEscapeArrowUpArrowDownArrowLeftArrowRight
Press these keys in the capture area above to see their codes
How to Use
Press any key to see its JavaScript keyboard event properties: key, code, keyCode, which, location, and modifier states.
- 1Click the capture area to focus it.
- 2Press any key on your keyboard.
- 3See all keyboard event properties instantly: key, code, keyCode, which, location, and modifier states.
- 4Click 'Copy' next to any value to copy it to your clipboard.
- 5Check the 'Recent Keys' history to compare multiple key presses.
Key Features
- Shows key, code, keyCode, which, charCode, location in real time
- Displays modifier key states: Ctrl, Shift, Alt, Meta
- Recent key history for easy comparison
- One-click copy for each property value
- Works entirely in the browser — no server needed