Home › Device & Internet Tests › Keyboard Layout Detector

Keyboard Layout Detector

Find out which keyboard layout your computer is using. Supported browsers read the operating system's key map instantly; in any browser you can press a few keys and the detector narrows it down.

Last updated:

Detected layout
–
Press a few keys or wait for automatic detection.
Other possible layouts
  • None yet

differs from US QWERTYpress nextlast pressednot read yet
Last key event
key
–
code
–
keyCode
–
location
–
Your system
Full key map (0 keys)
Physical key (code)Your layoutUS QWERTY
Advertisement
Advertisement

How to use the Keyboard Layout Detector

  1. Open the page on a computer with a physical keyboard. In Chrome, Edge or Opera the layout is read automatically.
  2. In other browsers, click the typing box and press the keys highlighted on the keyboard picture, or just type a sentence.
  3. Read the result: the layout family (for example AZERTY) and the most likely variant (for example French or Belgian).
  4. Check the keyboard picture: keys that differ from US QWERTY are highlighted.
  5. Switched layouts? Press Detect again after changing the layout in your operating system.

How to recognise the main keyboard layouts

Layouts are named after the first letters on the top letter row. The detector looks at the same physical keys and compares what they type:

LayoutTop letter row startsKey right of LTypical use
QWERTY (US)Q W E R T Y;United States, most English-speaking countries, many others
QWERTY (UK)Q W E R T Y;United Kingdom and Ireland; # key left of Enter
QWERTY (Spanish)Q W E R T YñSpain and Latin America
QWERTY (Nordic)Q W E R T Yö, ø or æSweden, Finland, Norway, Denmark
QWERTZQ W E R T Zö or éGermany, Austria, Switzerland, Central Europe
AZERTYA Z E R T YmFrance and Belgium
Dvorak' , . P Y FsAlternative layout designed for less finger travel
ColemakQ W F P G JoAlternative layout that keeps common shortcuts in place
WorkmanQ D R W B JiAlternative layout that limits sideways finger movement
ЙЦУКЕНЙ Ц У К Е Нж (Russian)Russian; Ukrainian and others are close relatives

Physical position versus typed character

Web pages see two values for every key press. event.code names the physical position using US QWERTY names, so the key to the right of Tab is always KeyQ, whatever is printed on it. event.key is the character the active layout produces. On an AZERTY layout pressing KeyQ gives a, on Dvorak it gives an apostrophe. Games use the code to keep WASD movement in the same place for every layout, and text fields use the key.

The detector compares up to 14 positions per layout. Letters separate the families, and punctuation and accented keys separate national variants, for example Backslash types \ on US but # on UK, and Equal types = on French but - on Belgian AZERTY.

Tips

  • If the layout is not what you expected, check the input language indicator in your taskbar or menu bar. Windows switches layouts with Win + Space and macOS with Control + Space by default.
  • Typing the wrong characters in a password field is usually a layout mismatch: the key test shows exactly which character each key produces.
  • To convert text typed in the wrong layout, use the wrong keyboard layout fixer.

Frequently asked questions

How does the detector know my layout?

Every key press has two parts: event.code, the physical position of the key (for example KeyQ is the key right of Tab), and event.key, the character your layout produces. Comparing the two for a handful of keys identifies the layout. QWERTY produces q at KeyQ, AZERTY produces a, and Dvorak produces an apostrophe.

What is the Keyboard API layout map?

Chrome, Edge and Opera offer navigator.keyboard.getLayoutMap(), which returns the character for each physical key in the current operating system layout without any typing. Firefox and Safari do not support it, so the page falls back to the key test.

Why can it not tell US and UK QWERTY apart yet?

Most keys are identical. The difference shows on a few keys such as the one left of Enter, which types \ on US and # on UK layouts. When several layouts still match, the detector highlights the key that would separate them so you can press it.

Does it detect the physical keyboard or the software layout?

It detects the layout selected in your operating system. A keyboard with German keycaps set to US English in Windows is reported as US QWERTY, because that is what the keys type.

Does it work on phones and tablets?

On-screen keyboards usually do not report physical key positions, so detection is not possible. With a hardware keyboard connected to a tablet the key test can work.

Why does a key show Dead?

Dead keys, such as the accent keys on many European layouts, do not type a character on their own but change the next letter. Browsers report them as Dead, and they are shown with a dotted circle.

Is anything I type stored or sent?

No. Key presses are only compared in your browser to identify the layout and are discarded when you leave the page.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Keyboard TesterTest every key and check for ghosting.JavaScript Keycode FinderPress any key to see its JavaScript key, code, keyCode, which, location and modifiers.Wrong Keyboard Layout FixerFix text typed with the wrong keyboard layout: Ghbdtn → Привет, EN↔RU/UA/HE/AR/EL, Dvorak, AZERTY.Keyboard Chatter TestCatch double-typing keys: logs press intervals and flags chatter per key on a keyboard map.Click Speed TestTest your clicks per second (CPS) in 1 to 60 second modes.Jitter Click TestMeasure jitter clicking CPS, peak speed and click consistency.Kohi & Butterfly Click TestKohi, butterfly and drag click CPS tests with left/right click stats.Spacebar CounterHow fast can you press space? Timed spacebar clicker test.Mouse TesterTest clicks, double clicks and the scroll wheel.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Gamepad TesterTest controller buttons, triggers, stick drift and vibration in your browser.Mouse DPI TestFind your mouse's real DPI by moving it a measured distance, with multi-run averaging.MIDI Keyboard TesterTest a MIDI keyboard or controller: see notes, velocity, CC knobs and pedals live.Pen Pressure TestTest drawing tablet and stylus pressure, tilt and twist live, with a pressure graph.Chimp TestMemorize where the numbers are, then click them in order after they hide. 3 strikes.Input Lag TestMeasure keyboard, mouse and touch to screen latency in ms with average, min and jitter stats.Rhythm TestTap along to a beat and measure your timing offset, consistency and tempo drift in ms.Audio Reaction Time TestReact to a random beep instead of a light. Average your trials and compare to visual reactions.10 Key Typing TestNumeric keypad data-entry test: measure your KPH and accuracy on 1, 3 or 5 minute drills.Code Typing TestTyping test with real code in JavaScript, Python, HTML, CSS and more: WPM, accuracy and symbol errors.Controller Stick Drift TestMeasure analog stick drift, resting offset and circularity, and get a recommended deadzone.Controller Vibration TestTest gamepad rumble motors: strong/weak sliders, duration, presets and trigger rumble.F1 Reaction Time TestFive red start lights go out at a random moment: launch as fast as you can and get your time in ms.Draw a Perfect Circle TestDraw a circle freehand and get a roundness score with a heatmap of where you went off.Typing Practice LessonsFree touch-typing lessons from the home row to the full keyboard, with finger-color keyboard.Keyboard CleanerLock your keyboard in full screen so you can wipe it clean; hold Esc or click to unlock.MIDI MonitorLog every MIDI message from all inputs: notes, CC, pitch bend, clock and SysEx in hex.Typing Test with CertificateTake a timed typing test and download a printable certificate with your net WPM and accuracy.Typing Test for KidsBig, friendly typing test for ages 6–12 with simple words, a key helper, stars, WPM and accuracy.Words Per Minute CalculatorWork out typing WPM (gross, net, CPM, accuracy) or your reading and speaking speed.Ghost Touch TestLeave your screen untouched and log every phantom touch with a heatmap and timeline.Mouse Acceleration TestMove the same distance slowly and quickly to detect OS mouse acceleration with raw input.Trackpad Gesture TestTest pinch zoom, two-finger scroll, swipes, force click and wheel delta modes live.
See all 32 Keyboard, Mouse & Controller Tests →