Keyboard Latency Test

Measure how quickly your keypresses reach the page and how soon the browser can draw. Reports event handling delay, key-to-frame time, and consistency.

Keyboard Latency
Samples: 0
Click here, then press any key repeatedly

Press a key to record your first sample.

What this actually measures

This measures your browser’s input pipeline, not the keyboard’s hardware latency. Event handling delay is the gap between the browser creating the key event and this page receiving it. Key to next frame is how long until the browser could next draw. True switch-to-photon latency needs external hardware such as a high-speed camera, and no website can measure it.

See how fast your keypresses reach the page

Every keypress travels through the keyboard firmware, USB polling, the operating system, and the browser before any code can react to it. This test times the last part of that journey and, just as usefully, shows how consistent it is — steady numbers feel responsive, scattered ones feel laggy even when the average looks fine.

How this Keyboard Latency Test works

This test times the part of a keypress that a browser is actually able to observe, and it is careful not to claim more than that. When you press a key, the browser creates an event and stamps it with the moment it was generated. This page then compares that stamp against the clock at the instant its own code runs, and the difference is the event handling delay — how long the keypress spent queued between the browser and the page.

The second figure is key to next frame. As soon as the keypress arrives, the page asks the browser to call it back before the next repaint, and times how long that takes. This is bounded by your refresh rate: on a 60 Hz screen the answer can be anything from almost nothing to about sixteen milliseconds, depending purely on where in the refresh cycle your press happened to land. On a 144 Hz screen the ceiling drops to roughly seven. Together the two numbers describe how quickly anything you type can possibly show up.

Pay as much attention to the spread as to the average. A machine that answers in two milliseconds every single time feels crisp, while one that averages the same figure but swings between one and twenty feels unreliable, because your hands notice inconsistency more readily than a slightly higher constant delay. Background compilation, busy tabs, browser extensions, and aggressive CPU power saving all widen that spread.

What this cannot tell you is your keyboard's hardware latency — the time from the physical switch closing to light changing on the display. That measurement requires instrumenting the hardware, typically with a high-speed camera or a microcontroller wired to the switch, and it is genuinely out of reach for any web page. If you are comparing keyboards rather than software, published measurements from reviewers with that equipment are the right source.

Everything is measured and kept in your browser. No keystroke data is transmitted, and the tool records only timings and the name of the key.

How to use this Keyboard Latency Test

1

Focus the test area

Click the panel so it starts listening for key events.

2

Press keys steadily

Tap any key twenty or thirty times at a comfortable pace. Avoid holding a key down.

3

Compare the spread

Look at the gap between best and worst as much as the average — consistency is what you feel.

Example Usage

A typical desktop result with little running in the background:

Input
30 keypresses on a 144 Hz display
Output
Event handling: avg 0.4 ms · Key to frame: avg 3.6 ms, spread 6.8 ms

Frequently Asked Questions

Does this measure my keyboard’s real latency?
No, and no website can. True latency is the time from the switch closing to a photon changing on your screen, which needs external measuring equipment. This test times the part a browser can see: how quickly a key event reaches the page and how soon the browser could next draw a frame.
What is a normal result?
Event handling delay is usually a fraction of a millisecond to a few milliseconds. Key to next frame is bounded by your refresh rate, so it commonly lands between zero and about sixteen milliseconds on a 60 Hz display and proportionally less on a faster one.
Why do my numbers jump around?
Background load is the usual cause — other tabs, a compile running, a browser extension, or the operating system parking a CPU core. Close what you can and run the test again. A wide spread with a good average is what makes typing feel inconsistent.
Why is key to next frame sometimes near zero?
Because it depends where in the display refresh cycle your keypress landed. Press just before the browser was about to paint and the wait is tiny; press just after and you wait almost a full frame. Over many samples the values spread across that range.
Does a higher refresh rate reduce this?
It reduces the key-to-frame part, because frames arrive more often. A 144 Hz display leaves at most about seven milliseconds of waiting versus roughly sixteen at 60 Hz. It does not change how fast the event itself is delivered.
Can I compare browsers with this?
Yes, and that is one of its more useful jobs. Run the same number of presses in each browser on the same machine with the same programs open. Some browsers also deliberately coarsen event timestamps for privacy, which can shift the handling figure.
How do I actually reduce keyboard latency?
Use a wired connection or a low-latency wireless dongle rather than Bluetooth, raise the keyboard polling rate if its software allows, keep the refresh rate high, and close background work. Chording and debounce settings in custom firmware also matter on mechanical boards.

Related Tools

The Keyboard Latency Test is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Comments

Questions, corrections, and useful tips are welcome. Comments are reviewed before publication.

Loading comments...

Comments are stored and moderated using Cusdis Cloud. Email is optional. Privacy Policy

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge