Developer
Developer

JavaScript Key Code Finder

Press a key, or tap one on the on-screen keyboard, to see its JavaScript values.

Private by design

Your inputs stay on your device and are not sent to our servers. Optional usage analytics does not receive your files or tool inputs.

Preparing tool

How to use JavaScript Key Code Finder

  1. Click the box and press a key, or tap a key on the on-screen keyboard.
  2. Read key, code, keyCode, which and the modifiers.
  3. Copy the snippet into your code.
Read the detailed guide →

What are the limits of JavaScript Key Code Finder?

Values on the on-screen keyboard follow a standard US layout; a real keyboard reports what your layout and browser send. Phone keyboards often report keyCode 229. The page cannot see keys the system keeps, such as Alt+Tab. Your keystrokes stay on your device.

YOUR BROWSER, YOUR CHOICE