Keyboard Layout Tester
Switch between ANSI and ISO layouts, press a key, and compare the physical position with the character your system actually produces.
Code describes the physical key position; key describes the character your operating-system layout produces. The on-screen drawings are simplified ANSI and ISO references, not exact regional models.
Actual key legends depend on the physical keyboard and the OS layout. This tester never changes your keyboard settings and never uploads key events.
How to use
- 1.Select ANSI or ISO to change the on-screen layout.
- 2.Press any key and read the code and key values in the readout panel.
- 3.Compare the physical position on screen with the legend printed on your keyboard.
- 4.Use the Reset button to clear the last-key readout.
How it works
- KeyboardEvent.code identifies the physical key position and is generally independent of the active language layout.
- KeyboardEvent.key reports the character or action produced under the current operating-system layout.
- ANSI and ISO differ mainly around the Enter key, the left Shift area and the extra key beside the backslash.
Limitations and privacy
- The on-screen drawings are simplified and do not reproduce every regional variant.
- Browser and operating-system shortcuts may be intercepted before a page can see them, and some keys cannot be captured reliably. A missing key event does not prove that the key is defective.
- Changing the operating-system input language can change KeyboardEvent.key without changing the physical layout.
Related tools
Frequently asked questions
What is the difference between ANSI and ISO?
ANSI uses a wide, straight Enter key and a long left Shift. ISO uses an L-shaped Enter, a shorter left Shift and an extra key next to it.
Why do code and key disagree?
The code describes the physical position; the key describes the character your layout produces. They intentionally differ on non-US layouts.
Can I detect my layout automatically?
Browsers do not expose the physical keyboard model. The page can only infer behaviour from the events it receives.
Does this change my keyboard settings?
No. It only displays events. Layout changes must be made in your operating system.