Skip to main content
DevUtility.hub
Dev ToolsText ToolsCSS ToolsAI Tools
PrivateSupport

Popular Tools

  • JSON Formatter
  • Regex Tester
  • Base64 Encoder/Decoder
  • Password Generator
  • Color Converter
  • JWT Decoder
  • Timestamp Converter
  • URL Encoder/Decoder

Recently Added

  • Data Size Converter
  • Unit Converter
  • AI Context Window Calculator
  • AI Diff Explainer Prep
  • AI JSON-to-Prompt Generator
  • AI README Generator Prep
  • AI API Cost Calculator
  • AI Code Reviewer Prep

Resources

  • Tool Comparisons
  • How-To Guides
  • Developer Blog
  • About DevUtility Hub
  • Contact Us
  • Privacy Policy
  • Terms of Service

All 117 Developer Tools

  • JSON Formatter
  • Data Sanitizer
  • Base64 Encoder/Decoder
  • URL Encoder/Decoder
  • Hash Generator
  • JWT Decoder
  • XML to JSON Converter
  • Timestamp Converter
  • Regex Tester
  • UUID / ID Generator
  • Password Generator
  • Cron Expression Parser
  • SQL Formatter
  • Number Base Converter
  • Security Headers Generator
  • JSON Path Explorer
  • CSV Viewer & Converter
  • Meta Tag Generator
  • JSON to TypeScript Converter
  • YAML ↔ JSON Converter
  • JSON to CSV Converter
  • JSON Schema Generator
  • QR Code Generator
  • Image to Base64 Converter
  • Unix Chmod Calculator
  • JavaScript Keycode Finder
  • HTTP Status Code Reference
  • HTML Entity Encoder/Decoder
  • Open Graph Preview Tool
  • .gitignore Generator
  • HTML Minifier
  • JavaScript Minifier
  • JSON Validator
  • IP Address Analyzer
  • HTML Prettifier
  • JavaScript Formatter
  • Backslash Escape/Unescape
  • Random Number Generator
  • Placeholder Image Generator
  • SVG Optimizer
  • HTML Table Generator
  • JSON Diff
  • DNS Lookup
  • Text Diff & Merge
  • YAML Validator
  • Crontab Generator
  • JWT Generator
  • Password Strength Checker
  • URL Parser
  • Image Resizer
  • Social Media Mockup
  • WiFi QR Code Generator
  • EXIF Data Viewer
  • PDF Signature Tool
  • SQL ↔ CSV Converter
  • Am I Pwned? Checker
  • Live HTML Preview
  • PDF Merge
  • PDF Split
  • JSON to Zod Schema
  • Docker Run to Compose
  • AES Encrypt / Decrypt
  • Image Compressor
  • HMAC Generator
  • Percentage Calculator
  • Data Size Converter
  • Unit Converter
View all dev tools
  • Case Converter
  • Word Counter
  • Text Diff Checker
  • Find & Replace
  • Markdown Preview
  • Text Tone Rewriter
  • HTML to Markdown
  • Text Cleaner
  • Lorem Ipsum Generator
  • URL Slug Generator
  • Markdown Table Generator
  • String Escape/Unescape Tool
  • Emoji Picker
  • Character Counter
  • Text to Binary Converter
  • Text to HTML Converter
  • Byte Counter
  • Text to Handwriting Converter
View all text tools
  • Color Converter
  • CSS Gradient Generator
  • Box Shadow Generator
  • CSS Flexbox Playground
  • CSS Grid Generator
  • Border Radius Generator
  • Aspect Ratio Calculator
  • Color Palette Generator
  • CSS Minifier
  • Tailwind CSS to CSS Converter
  • CSS Unit Converter
  • CSS Formatter
  • Color Blindness Simulator
  • HEX to RGB Converter
  • Favicon Generator
  • CSS Clip Path Generator
  • CSS Animation Generator
  • Color Mixer
  • CSS Triangle Generator
View all css tools
  • AI Prompt Cleaner
  • AI Text Summarizer Prep
  • AI Code Explainer Prep
  • AI Regex Prompt Builder
  • AI Commit Message Generator Prep
  • AI TODO Extractor
  • AI Token Counter
  • AI Context Window Calculator
  • AI Diff Explainer Prep
  • AI JSON-to-Prompt Generator
  • AI README Generator Prep
  • AI API Cost Calculator
  • AI Code Reviewer Prep
View all ai tools
DevUtility.hub

117+ Free Developer Tools · 100% Client-Side · Zero Tracking

Support

© 2026 DevUtility Hub. All rights reserved.

HomeToolsJavaScript Keycode Finder

JavaScript Keycode Finder

Press any key to instantly see its JavaScript event properties — key, code, keyCode, which, and location.

Client-side only

Press any key...

This tool saved you time?

DevUtility Hub is free forever. If it helped you, consider buying us a coffee.

Buy Me a Coffee

Recommended Tools & Services

DigitalOcean$200 Free

Get $200 free credit — deploy apps, databases & more

JetBrains All ProductsEditor Choice

Professional IDEs for every language — 30-day free trial

Vercel ProWe Use It

Ship faster with zero-config deployments

Sponsored links

Sponsored

How to Use the JavaScript Keycode Finder

The JavaScript Keycode Finder is an interactive tool that displays detailed keyboard event information when you press any key. It shows the key, code, keyCode, which, and location properties — everything you need when building keyboard shortcuts, game controls, or accessible web applications.

Step-by-Step

  • Focus the key capture area — Click on the large key capture zone in the center of the tool.
  • Press any key — Hit any key on your keyboard, including modifiers (Shift, Ctrl, Alt, Meta), function keys, or special keys.
  • Read the event data — Instantly see all keyboard event properties displayed in a clean, organized table.
  • View modifier state — Check which modifier keys were held during the keypress (Shift, Control, Alt, Meta).
  • Copy values — Click any value to copy it to your clipboard for use in your JavaScript event handlers.
  • Features

  • Complete Event Properties — Displays event.key, event.code, event.keyCode, event.which, event.location, and event.type for every keypress.
  • Modifier Key Detection — Shows the state of shiftKey, ctrlKey, altKey, and metaKey modifiers during each event.
  • Key History — Maintains a scrollable history of recently pressed keys so you can compare values across different keys.
  • Event Type Toggle — Switch between keydown, keyup, and keypress events to see how values differ across event types.
  • Deprecation Warnings — Highlights deprecated properties like keyCode and which with notes about modern alternatives.
  • Visual Key Display — Shows a large, styled representation of the pressed key for clear visual feedback.
  • Common Use Cases

  • Building Keyboard Shortcuts — Determine the exact event.key and event.code values to use in your shortcut handler code.
  • Game Development — Map physical key positions using event.code for WASD controls that work regardless of keyboard layout.
  • Accessibility Development — Test keyboard navigation and verify that your application responds correctly to all expected key inputs.
  • Cross-Browser Testing — Compare keyCode values across browsers to handle inconsistencies in legacy keyboard event handling.
  • Documentation — Look up the exact string values returned by keyboard events for keys you rarely use (PrintScreen, NumLock, etc.).
  • Why Use This Tool

    Keyboard event handling is one of the most common tasks in frontend development, yet the API is surprisingly inconsistent across browsers and keyboard layouts. The keyCode and which properties are deprecated but still widely used. This tool gives you a live reference for the modern key and code properties alongside the legacy values, so you can write keyboard handlers that work everywhere. No need to add temporary console.log statements — just press keys and copy values.

    Related Tools You Might Like

    JSON Formatter

    Validate, prettify, and minify JSON data instantly in your browser. No data leaves your device.

    Data Sanitizer

    Remove emails, phone numbers, and PII from text before pasting into AI tools. Safe AI prompting made easy.

    Base64 Encoder/Decoder

    Encode text to Base64 or decode Base64 strings instantly. Useful for API tokens, data URIs, and debugging.

    AI Code Explainer Prep

    Prepare code snippets for AI explanation. Strip sensitive data, add context markers, detect language, and generate explanation prompts.

    AI Code Reviewer Prep

    Paste code, choose review type (review, refactor, explain, document, test), get expert-level AI prompts with language-specific focus.

    Word Counter

    Count words, characters, sentences, and paragraphs in your text. Estimate reading time instantly.