Developer Tools

Keyboard Keycode Lookup

Press any key to see key, code, keyCode, which, location, and modifier flags in real time—helpful when wiring keyboard shortcuts in front-end code.

KeyboardKeyCodeDevTools

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Find keyCode values for shortcuts
  • Compare event fields across browsers
  • Debug keyboard handlers

How to use

  1. Open the tool page
  2. Press the key you want to inspect
  3. Read key, code, keyCode, and modifiers

Example input and output

Key

Ctrl+K

code

KeyK

FAQ

Why do keyCode and code differ?

code reflects physical layout; key reflects the character produced—both matter for shortcuts.

Are combo keys supported?

Yes. Shift/Ctrl/Alt/Meta are shown together with the main key.

Tools

Related tools

Continue with another translated tool for a nearby task.

Escape Visualizer

Escape Visualizer for Hidden Characters

Available

Visualize invisible characters locally in your browser, including tabs, newlines, BOM, and zero-width characters. Useful when paste or copy artifacts break parsing.

Escape Visualizer

ASCII Table

ASCII Table — Online Text Alignment Tool

Available

Turn CSV, TSV, or terminal-copied text into aligned ASCII or Markdown tables in your browser, with mixed Chinese and English width handling for README, Slack, and log output.

Table ASCII Markdown