Loading…
Show key code and key name for any pressed key. Use when debugging shortcuts; for regex keys use regex-tester. Input: key press. Returns code details. 100% client-side.
Keycode Info is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Displays detailed keyboard event information when you press any key. Shows a large visual key display along with the key value, keyCode, code, which, and the state of modifier keys (shift, ctrl, alt, meta). Updates in real-time as keys are pressed.
Web developers building keyboard shortcuts, hotkeys, or interactive keyboard UIs need to know exact keyCode and code values. Looking these up in documentation is slow compared to just pressing the key.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Frontend developers implementing keyboard navigation, game developers mapping key controls, accessibility developers building keyboard interactions, and anyone debugging keyboard event handling.
Press any key on your keyboard
The large display shows which key was pressed
All keyboard event properties are listed in the table below
Modifier key states (shift, ctrl, alt, meta) update in real-time
Press a modifier plus another key to see how both properties report
Pressing 'A' → key: a, keyCode: 65, code: KeyAPressing Shift → key: Shift, keyCode: 16, code: ShiftLeftPressing Space → key: (space), keyCode: 32, code: SpacePressing Enter → key: Enter, keyCode: 13, code: EnterWhy are some keyCode values showing 0?
keyCode is deprecated and some events may not provide it reliably.
Does this capture key events on mobile?
No, this tool works with physical keyboard events only.
What's the difference between key and code?
key is the character produced (layout-dependent), code is the physical key position (layout-independent).
Is anything sent to a server?
No, key events are read locally in your browser.
Authoritative specifications, standards, and in-depth reading for Keycode Info.
Press any key to see its keycode information
Test and debug regular expressions with live matching and capture groups. Paste pattern and sample text.
Find JSONPath expressions by clicking any key. Use when querying APIs; for formatting use json-formatter. Input: JSON ≤10MB. Returns matching paths and values. 100% client-side.
Look up MIME types by extension and vice versa. Use when configuring uploads; for file checksums use file-checksum. Input: extension or MIME. Returns MIME mapping. 100% client-side.
Calculate chmod permissions from checkboxes or octal. Use when setting file modes; for git perms use git-cheatsheet. Input: mode or ticks. Returns octal and symbolic. 100% client-side.
Search common git commands with examples. Use as quick reference; for regex help use regex-memo. Input: search text. Returns command snippets. 100% client-side.
Quick regex syntax cheatsheet with examples. Use when looking up syntax; for live testing use regex-tester. Input: search text. Returns pattern snippets. 100% client-side.
Analyze cyclomatic complexity and code metrics. Use when reviewing quality; for formatting use js-minifier. Input: code ≤10MB. Returns complexity scores. 100% client-side.
Free online Base64 encoder and decoder with URL-safe mode. Use as default for text; for split encode-only/decode-only URLs use base64-encoder/base64-decoder (aliases), for image files use image-to-base64. Input: text ≤10MB. Returns Base64 string or decoded text + error location. Convert instantly in your browser.