JavaScript Key Code Tester
Press any key to inspect its JavaScript keyboard event properties: key, code, keyCode, and modifiers
Press any key
Click here first if keys aren't being detected
Common Key Codes Reference
Enter13
Space32
Escape27
Tab9
Backspace8
Delete46
Arrow Up38
Arrow Down40
Arrow Left37
Arrow Right39
A–Z65–90
0–948–57
Note: event.keyCode and event.which are deprecated. Prefer event.key and event.code for new code.
Frequently asked questions
What does JavaScript Key Code Tester do?
Press any key to inspect its JavaScript keyboard event properties: key, code, keyCode, and modifiers
What should I check in the result?
Test a small known example and an invalid input. Review generated code or decoded data before using it in a project; inspection alone does not establish correctness or authenticity.