Keyboard Layout Tester

Switch between ANSI and ISO layouts, press a key, and compare the physical position with the character your system actually produces.

Detected key
—
Detected code
—
EscEscape
F1F1
F2F2
F3F3
F4F4
F5F5
F6F6
F7F7
F8F8
F9F9
F10F10
F11F11
F12F12
PrtScPrintScreen
`Backquote
1Digit1
2Digit2
3Digit3
4Digit4
5Digit5
6Digit6
7Digit7
8Digit8
9Digit9
0Digit0
-Minus
=Equal
⌫Backspace
TabTab
QKeyQ
WKeyW
EKeyE
RKeyR
TKeyT
YKeyY
UKeyU
IKeyI
OKeyO
PKeyP
[LeftBracket
]RightBracket
\Backslash
CapsCapsLock
AKeyA
SKeyS
DKeyD
FKeyF
GKeyG
HKeyH
JKeyJ
KKeyK
LKeyL
;Semicolon
'Quote
EnterEnter
ShiftLeftShift
ZKeyZ
XKeyX
CKeyC
VKeyV
BKeyB
NKeyN
MKeyM
,Comma
.Period
/Slash
ShiftRightShift
CtrlLeftControl
WinLeftMeta
AltLeftAlt
SpaceSpace
AltRightAlt
WinRightMeta
MenuContextMenu
CtrlRightControl

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. 1.Select ANSI or ISO to change the on-screen layout.
  2. 2.Press any key and read the code and key values in the readout panel.
  3. 3.Compare the physical position on screen with the legend printed on your keyboard.
  4. 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.