Click any keyboard key in the input box below to get the corresponding KeyCode of the keyboard key, note: you can only input one key at a time.
Alphanumeric and numeric keys(keyCode) |
Key | KeyCode | Key | KeyCode | Pressing a key | Keycode | Keypad | Keycode |
A | 65 | J | 74 | S | 83 | 1 | 49 |
B | 66 | K | 75 | T | 84 | 2 | 50 |
C | 67 | L | 76 | U | 85 | 3 | 51 |
D | 68 | M | 77 | V | 86 | 4 | 52 |
E | 69 | N | 78 | W | 87 | 5 | 53 |
F | 70 | O | 79 | X | 88 | 6 | 54 |
G | 71 | P | 80 | Y | 89 | 7 | 55 |
H | 72 | Q | 81 | Z | 90 | 8 | 56 |
I | 73 | R | 82 | 0 | 48 | 9 | 57 |
Keycode values for keys on the numeric keypad.(keyCode) | Function key keycode values(keyCode) |
Pressing a key | Keycode | Pressing a key | Keycode | Keypad | Keycode | Keypad | Keycode |
0 | 96 | 8 | 104 | F1 | 112 | F7 | 118 |
1 | 97 | 9 | 105 | F2 | 113 | F8 | 119 |
2 | 98 | * | 106 | F3 | 114 | F9 | 120 |
3 | 99 | + | 107 | F4 | 115 | F10 | 121 |
4 | 100 | Enter | 108 | F5 | 116 | F11 | 122 |
5 | 101 | - | 109 | F6 | 117 | F12 | 123 |
6 | 102 | . | 110 | | | | |
7 | 103 | / | 111 | | | | |
Control key keycode value(keyCode) |
Keypad | Keycode | Pushbutton | Keycode | Keypad | Keycode | Keypad | Keycode |
BackSpace | 8 | Esc | 27 | Right Arrow | 39 | -_ | 189 |
Tab | 9 | Spacebar | 32 | Dw Arrow | 40 | .> | 190 |
Clear | 12 | Page Up | 33 | Insert | 45 | /? | 191 |
Enter | 13 | Page Down | 34 | Delete | 46 | `~ | 192 |
Shift | 16 | End | 35 | Num Lock | 144 | [{ | 219 |
Control | 17 | Home | 36 | ;: | 186 | /| | 220 |
Alt | 18 | Left Arrow | 37 | =+ | 187 | ]} | 221 |
Cape Lock | 20 | Up Arrow | 38 | ,< | 188 | '" | 222 |
Multimedia Keycode Values(keyCode) |
Keypad | Keycode | Keypad | Keycode | Keypad | Keycode | Keypad | Keycode |
Volume Up | 175 | | | | | | |
Volume Down | 174 | | | | | | |
Stop | 179 | | | | | | |
Mute | 173 | | | | | | |
Browser | 172 | | | | | | |
Mail | 180 | | | | | | |
Search | 170 | | | | | | |
Favorites | 171 | | | | | | |
KeyCode and ASCII Search Tool for Keyboard Keys
Function Description: This tool provides real-time KeyCode and ASCII query function for developers, testers and technical enthusiasts. By simple keystroke operation, it can display the value information of the corresponding keys, helping users to quickly get the key data needed for programming or debugging. Core Functions
- KeyCode value query: Display the KeyCode of the keyboard keys, return the upper case ASCII value for letter keys, and return the lower case ASCII value for other characters.
- ASCII Code Comparison: Synchronize the display of ASCII code of keystrokes, which is convenient to compare with the character code of programming language.
- Real-time feedback: After pressing any key, the page will automatically display the value of the corresponding key, no need to submit or refresh manually.
How to use
1. Open the page of this tool and focus on the detection area (such as input box or specified area).
2. Press any key on the keyboard, the page will automatically display the keyCode value of the key. KeyCode and ASCII code。
3. If you want to record the data, you can directly copy or take a screenshot to save the result.
Applicable Scenarios
- Front-end development: Quickly get the key parameters needed for keyboard event listening.
- Software testing: Verify the compatibility and accuracy of keyboard input.
- Demonstration: Visualize the mapping between keyboard codes and characters.
Notes: The KeyCode of some special function keys (e.g. Fn, Ctrl, etc.) may be different depending on the browser or operating system, so it is recommended to test and confirm it with the specific environment.