JavaScript Char Codes (Key Codes) Finder

Easily find JavaScript character codes (key codes) for any keyboard key. Simply press a key inside the input box below and instantly see its corresponding Unicode, charCode, and keyCode values.

This tool helps developers understand how keyboard events work in JavaScript, especially when handling user input, shortcuts, form validation, or custom key controls.

Key Name:
KeyCode:
-
KeyCodeKeyCode
backspace8u85
tab9v86
enter13w87
shift16x88
ctrl17y89
alt18z90
pause/break19left window key91
caps lock20right window key92
escape27select key93
page up33numpad 096
page down34numpad 197
end35numpad 298
home36numpad 399
left arrow37numpad 4100
up arrow38numpad 5101
right arrow39numpad 6102
down arrow40numpad 7103
insert45numpad 8104
delete46numpad 9105
048multiply106
149add107
250subtract109
351decimal point110
452divide111
553f1112
654f2113
755f3114
856f4115
957f5116
a65f6117
b66f7118
c67f8119
d68f9120
e69f10121
f70f11122
g71f12123
h72num lock144
i73scroll lock145
j74semi-colon186
k75equal sign187
l76comma188
m77dash189
n78period190
o79forward slash191
p80grave accent192
q81open bracket219
r82back slash220
s83close braket221
t84single quote222

What Are JavaScript Char Codes?

In JavaScript, a character code represents the numeric Unicode value of a key pressed on the keyboard. For example, the Unicode value 97 represents the lowercase letter “a”.

The charCode property returns the Unicode character code of the key that triggered the keypress event, while keyCode is commonly used with keydown and keyup events.

Cross-Browser Key Code Detection

To ensure compatibility across different browsers, JavaScript developers often use the following fallback approach to detect key values:

This method works reliably in modern and older browsers when capturing keyboard input.

Why Use This JavaScript Key Code Tool?

  • Instantly check JavaScript key codes and Unicode values
  • Useful for keyboard event handling
  • Helps debug keypress, keydown, and keyup events
  • Ideal for JavaScript beginners and advanced developers
  • No installation or setup required
Joydeep Deb - Digital Marketing Expert in Bangalore

Joydeep Deb

Senior Digital Marketer & Project Manager

Joydeep Deb is a results-driven Senior Digital Marketer and Project Manager with deep expertise in Lead Generation and Online Brand Management. An IIM Calcutta Alumni with an MBA in Marketing, he specializes in SEO, SEM (PPC), and Web Technologies.

Based in Bangalore, Karnataka - India.

Got an idea?
Got any cool idea for a Web Tool or Blog? let us know, and we can make it happen.
Submit Idea
JavaScript Char Codes (Key Codes) Finder
Subscribe to Newsletter

Receive my latest posts right in your inbox?
Enter your email address below to subscribe.

We'll never share your email with anyone else.
Copyright © Joydeep Deb 2026.
All Rights Reserved.