Char Codes (Key Codes) - JavaScript

Get the full list Javascript Char Codes (Key Codes). Press a key in the text box below to see the corresponding Javascript key code. The charCode property returns the Unicode character code of the key that triggered the onkeypress event.

The Unicode character code is the number of a character (e.g. the number "97" represents the letter "a"). A cross-browser solution to get the Unicode value of the pressed keyboard key: var x = event.charCode || event.keyCode;

Type Here:

Key Code:

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


Add a comment



About the Author
Joydeep Deb

is a Senior Digital Marketer and Project Manager with 13+ years of experience in Digital Marketing, Lead Generation, Online Brand Management, Marketing Campaigns, Project Management, Search Engine Optimization (SEO), Search Engine Marketing (SEM), PPC, eMail Marketing, Web Analytics, Web Technologies, Web Design and Development.

With an MBA in Marketing. IIM Calcutta Alumini. Lives in Bangalore, Karnataka - India.

Get social with Joydeep at Twitter | Facebook | Google+ | LinkedIn

Char Codes (Key Codes) - JavaScript


Subscribe to Newsletter

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