Keycode Info — Free Online JavaScript Keycode Finder
Free online keycode finder. Press any key to instantly see its JavaScript keyCode, code, location, and modifier states — perfect for developers debugging key...
To find a JavaScript keycode, press any key while this page is open; the tool shows its key, keyCode, code, location and active modifiers instantly.
Last updated:
Keycode Info — Free Online JavaScript Keycode Finder. Free online keycode finder. Press any key to instantly see its JavaScript keyCode, code, location, and modifier states — perfect for developers debugging keyboard events.
Instantly find any JavaScript keyCode with our free keycode info tool. Press any key on your keyboard and immediately see its key, keyCode, code, location, and active modifier states (Shift, Ctrl, Alt, Meta).
Whether you're building keyboard shortcuts, handling JavaScript keyboard events, creating browser games, or debugging event listeners, our keycode lookup tool gives you all the data you need without writing a single line of debugging code.
Supports all modern browsers and correctly reports all standard and special keys. Our keycode finder displays the complete KeyboardEvent object properties in real time — the same data your addEventListener('keydown', ...) handler sees.
Use it to verify event.key vs event.code differences, check modifier combinations, or confirm location values for numpad and function keys.
All keycode checking runs entirely in your browser — your keystrokes are never sent to any server, keeping your inputs private.
Explore related tools: JSON Viewer for inspecting data structures, URL Encoder & Decoder for web URL encoding, or Base64 String Converter for encoding data.
Frequently asked questions
How do I find the keycode of a key?
Press the key while the page is focused. The key appears in large text and the fields below list Key, Key Code, Code, Location and Modifiers, each with a copy button.
What is the difference between key, keyCode and code?
key is the character or name produced, such as a, A or Enter, and depends on the keyboard layout and Shift. code is the physical key, such as KeyA or Digit1, regardless of layout. keyCode is the legacy number, for example 13 for Enter; it is deprecated but still used in older scripts.
What do the Location numbers mean?
Location tells which of the duplicate keys was pressed: 0 is a standard key, 1 the left version (for example left Shift), 2 the right version and 3 the numeric keypad.
How do I see modifier keys?
Hold Shift, Ctrl, Alt or Meta (Cmd on Mac, the Windows key on PC) and press another key. The Modifiers field lists every modifier held, for example Shift + Ctrl.
Why does nothing happen for some keys?
Some shortcuts are captured by the operating system or the browser before the page receives them, for example Alt+Tab, Cmd+Tab or Ctrl+W, so no key event reaches the tool. Click the page first so it has keyboard focus.
How to use this online tool
Keycode Info — Free Online JavaScript Keycode Finder is designed for fast browser workflows when you need to format, validate, convert, decode, encode, generate, or inspect data without opening a heavy desktop app. Start with the input field or visible options, review the result, then copy or download the output for the next step.
Private processing in your browser
Keycode Info — Free Online JavaScript Keycode Finder keeps the normal processing step local in your browser. That is useful for code snippets, tokens, documents, configuration values, text samples, and other material that should not be sent to a remote service unless you explicitly choose to share it.
When this tool is useful
Use Keycode Info — Free Online JavaScript Keycode Finder for repeatable developer tasks, technical documentation, QA checks, quick conversions, debugging, content cleanup, and internal team workflows. The page focuses on clear inputs, immediate feedback, and output that is easy to reuse in code, reports, tickets, emails, or notes.
Practical tips
Before copying the final result, check important details such as spacing, casing, filenames, encoding, token structure, line breaks, or output format. Small checks prevent mistakes when the result is reused in source code, API requests, documentation, spreadsheets, or shared files.