Spacebar counter
Press Space and watch the number climb. Switch to the timed speed test to see how many presses you can land in 5 to 60 seconds, scored as presses per second. Held keys don't inflate the count — only real, discrete presses do.
Press Space or tap the button below
Press Space to start the 10s test
How it works
Every press of the spacebar fires a keydown event with event.code equal to "Space". This tool listens for exactly that on the whole page (not just one input box), calls preventDefault() so the browser doesn't scroll the page the way it normally would, and adds one to whichever counter is active.
Why key-repeat doesn't inflate the count
Hold any key down and your operating system doesn't wait for you to release and press it again — after a short delay it starts firing keydown repeatedly on its own, the same mechanism that makes a held arrow key scroll a text field. The browser flags every one of those synthetic repeats with event.repeat = true, and this tool checks that flag first and throws the event away before it reaches the counter. The result: holding Space for ten seconds registers as one press, not dozens. That is a deliberate design choice, not a limitation — see the FAQ if you actually want to measure raw autorepeat rate, because this isn't the tool for that.
Free count vs. the timed speed test
Free count has no clock. It adds one for every discrete press until you hit Reset — good for tallying an arbitrary stretch of time, a game mechanic, or a meme challenge with no fixed length.
Timed speed test fixes the window to a preset — 5, 10, 15, 30 or 60 seconds — and starts the instant you make your first press, not when you click a start button. That removes the awkward "on your marks" lag of clicking Start and then waiting for a signal. The count stops the moment the timer hits zero, and the result is your total presses plus a rate: presses divided by seconds.
Presses-per-second, worked example. 47 presses inside a 10-second run is 47 ÷ 10 = 4.70 presses per second. The same 47 presses inside a 5-second run would be 47 ÷ 5 = 9.40 — the shorter window rewards burst speed, the longer one rewards sustaining a pace, which is exactly why both are offered rather than one "correct" duration.
Choosing a duration
None of these is more "correct" than another — they measure slightly different things.
| Duration | What it tends to measure |
|---|---|
| 5s | Peak burst speed before fatigue sets in — the highest rate most people can post. |
| 10s | The default here — long enough to settle into a rhythm, short enough that technique still matters more than stamina. |
| 15s | Rhythm plus the first signs of arm fatigue for a one-finger technique. |
| 30s | Sustained rate — the number that survives once your fastest burst has worn off. |
| 60s | Full endurance. Expect a visibly lower average than a 5-second run for almost everyone. |
Frequently asked questions
Does holding the spacebar down count as multiple presses?
No. Holding a key down makes the operating system fire repeated keydown events — “key repeat” or “autorepeat” — and the browser marks every one of those repeats with event.repeat set to true. This counter checks that flag and ignores every repeated event, counting only genuine, discrete key-downs. Hold the bar for five seconds and the number will not move until you actually release the key and press it again.
What's a good presses-per-second score?
There's no verified figure for what counts as average, so treat any number here as your own baseline to beat rather than a ranking against other people. What tends to help: alternating which finger or hand strikes the key instead of using the same one every time, keeping the wrist loose rather than punching from the shoulder, and picking the 5-second preset if you want to measure peak burst speed — sustained rate drops off for almost everyone after the first few seconds.
Why doesn't holding the key make the number go up faster?
Because that's the autorepeat behaviour this tool deliberately filters out (see the first question). If you're trying to measure your keyboard or operating system's raw autorepeat rate rather than your own tapping speed, this isn't the right tool for that — a held key will always show as a single press here, no matter how long you hold it.
Is my best score saved, and where?
Yes, one best score per timing duration (5, 10, 15, 30 or 60 seconds), stored in your browser's local storage on this device. It isn't attached to an account, isn't uploaded anywhere, and won't follow you to a different browser or a different device. Clearing this site's data in your browser resets it.
Can I use this on a phone or tablet?
The on-screen tap button works on any touchscreen and drives exactly the same counting and timing logic as a real keydown. A genuine spacebar keydown only exists if you have a physical or Bluetooth keyboard connected; without one, use the tap button instead.
Can this tell me if my spacebar is sticky or double-firing?
It's a reasonable first check, though not a certified diagnostic. Press the key at a steady pace a known number of times — say, exactly 20 — and see whether the counter agrees. A switch that double-fires will show a higher number than you actually pressed; one that's failing to register will show lower. The counter can only report what the browser actually received, so it can't tell a worn switch apart from, for example, another program on your computer intercepting the keystroke first.
What's the difference between free count and the timed speed test?
Free count has no clock: it adds one for every press until you hit Reset, which suits tallying something over an arbitrary stretch — a game session, a challenge with a friend, idle curiosity. The timed test fixes the window at 5 to 60 seconds, starts on your first press, and reports a total plus a rate — presses divided by seconds — so two different attempts, or two different people, can be compared on equal terms.
Does switching tabs or minimizing the window affect the timer?
It can. Browsers throttle background tabs to save power, which can skew a running countdown if you switch away mid-test. Keep the tab focused and in the foreground for the whole timed run for an accurate reading.
Use cases & limitations
Where this is genuinely useful
- Games and challenges. Plenty of browser games and party challenges are built around raw button-mashing speed; this gives you an honest, repeatable number for it.
- Curiosity and bragging rights. Compare your own runs over time, or race a friend on the same duration.
- Checking a worn or sticky spacebar. Press a known number of times at a steady pace and see whether the count matches — see the FAQ above for the honest limits of this as a diagnostic.
- Quick reflex or warm-up drills. The 5-second preset is short enough to run several times in a row without it becoming a chore.
What this tool cannot tell you
- Your keyboard's raw autorepeat rate. That is intentionally filtered out — see the FAQ.
- Whether a low count is you, or something else. A background app that intercepts keystrokes, a laggy Bluetooth keyboard, or a browser tab put in the background mid-test can all lower the number without your technique being the cause.
- An authoritative population average. There is no verified figure for a "typical" presses-per-second score to compare yourself against, and this page does not invent one.
- A certified hardware diagnostic. It can suggest a spacebar is misbehaving; it can't replace opening the switch up or running a dedicated key-tester utility if you need to be sure.