Instantly generate TypeScript interfaces from JSON objects.
Create beautiful images of your code snippets for sharing.
Format and beautify your SQL queries.
Visually build and explain cron job schedules.
Generate SEO meta tags for your website.
Visual calculator for Unix file permissions.
Don't eyeball it, convert it! A Unit Converter is perfect for recipes, travel, or any time you need to switch between metric and imperial.
Debug your keyboard. Press any key to see its JavaScript event codes (`key`, `code`, `which`). Essential for developers building games, accessibility features, or custom shortcuts.
JavaScript handles keyboard input through events. Knowing the exact `code` (physical key) vs `key` (character value) is crucial. For example, 'Z' on a US keyboard is different from 'Z' on a German keyboard—this tool shows you exactly what the browser sees.
It adds a global `keydown` event listener to the window and simply prints out the event object's properties: `e.key`, `e.code`, `e.which`, etc.
`key` is the character generated (e.g., 'a' or 'A'). `code` is the physical button pressed (e.g., 'KeyA'). `code` doesn't change with keyboard layout.
It was inconsistent across browsers. `key` and `code` are the modern standards.
Yes, it will show the 'repeat' property as true if you hold a key down.
All calculations and data processing for this tool are performed locally in your browser. UtilToolkits does not send any of your data to an external server, ensuring your information remains private and secure.
Click here, then press any key
Browser shortcuts (Ctrl-T, F5, ⌘-W, …) keep working