Menu
Advertisement

Spacebar Clicker

Press the spacebar as fast as you can for 1, 5, 10, 30 or 60 seconds. See your presses, your presses per second and your best score.

By Nethanel Bar, Co-founder & CEO

Last updated

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

What is a spacebar clicker?

A spacebar clicker is a speed test for one key. You choose a round of 1, 5, 10, 30 or 60 seconds, hit the spacebar as many times as you can before the time runs out, and the tool counts every press. Your score is the number of presses, and your speed is that number divided by the length of the round: 34 presses in 5 seconds is 6.8 presses per second.

A press counts when the key goes down, and only once per press. Holding the spacebar does not add to the count: the repeated signals a keyboard sends while a key is held are ignored, and the key has to come back up before the next press counts. So the number you see is the number of times you really pressed the key.

The best score for each duration is saved in your browser, so you have a number to beat the next time you open the page. On a phone or tablet, where there is no spacebar, the test area becomes a tap pad and every tap counts as a press. If you only want to count presses with no time limit, use the spacebar counter.

What you will learn from a spacebar test

  • Speed is a rate: presses divided by seconds. That is why a score only means something together with the length of the round, and why a 1 second burst and a 60 second round cannot be compared directly.
  • A keyboard reports a key going down and a key coming up as two separate events. Games and this test count the down event, and a new press needs an up event first.
  • Holding a key makes the operating system send repeated key down events. Browsers mark them with a repeat flag, and code that counts presses has to skip them or one long hold would look like dozens of presses.
  • One run is a sample, not your speed. Repeat the same duration a few times and the scores will differ, so compare your best or your typical run, and always at the same duration.

How to use the spacebar clicker

  1. Choose a duration

    Pick 1, 5, 10, 30 or 60 seconds. The test opens on 5 seconds. Short rounds measure a burst, long rounds measure how well you keep the pace.

  2. Press the spacebar to start

    There is no countdown. The timer starts on your first press, and that press is counted, so you lose no time getting ready.

  3. Keep pressing until the time runs out

    The page shows the time left, your presses so far and your current presses per second. Let the key come up between presses: a held key counts once.

  4. Read your result and go again

    When the timer ends you see your total presses, your presses per second and your best score for that duration. After one second, press Enter or the Try again button to start a new round.

Spacebar clicker durations

What each round length measures, and how its score turns into presses per second.

RoundWhat it measuresPresses per second
1 secondYour fastest burstPresses divided by 1
5 secondsA short sprint, the default roundPresses divided by 5
10 secondsSpeed you can hold past the first burstPresses divided by 10
30 secondsRhythm and staminaPresses divided by 30
60 secondsEndurance over a full minutePresses divided by 60

How a spacebar test works in code

Count spacebar presses in JavaScript

Browser console
let count = 0;let down = false;
document.addEventListener('keydown', (event) => {    if (event.code !== 'Space') return;    event.preventDefault(); // keep the page from scrolling    if (event.repeat || down) return; // a held key counts once    down = true;    count += 1;    console.log(count);});
document.addEventListener('keyup', (event) => {    if (event.code === 'Space') down = false;});

This is the core of the test. The keydown event fires when the key goes down and keeps firing while it is held, with event.repeat set to true. Skipping repeats and waiting for keyup means one physical press adds exactly one to the count.

Turn a score into presses per second

JavaScript
const presses = 34;const seconds = 5;const rate = Math.round((presses / seconds) * 10) / 10;
console.log(rate); // 6.8

The rate is the count divided by the length of the round, rounded to one decimal place. The result card does the same sum with the full duration you picked.

Alternate two fingers or two thumbs

The spacebar is wide enough for two fingers. Rest both thumbs, or the index fingers of both hands, on the key and press with one and then the other. Each press still has to let the key come up before the next one lands.

Alternating shares the work, so each finger moves at half the pace of the count. If both fingers come down together the key only goes down once, and that is one press.

Common spacebar clicker mistakes

  • Holding the spacebar down and expecting the count to run. A held key counts once here. Only separate presses add to the score.
  • Comparing scores from different durations. Always give the duration with the score: 30 presses means one thing in 5 seconds and another in 10.
  • Clicking the test area with the mouse. On a computer only the spacebar counts, so mouse clicks on the area do nothing to the score.
  • Not letting the key come all the way up. If the key never releases, the next push is not a new press. Let it come up fully each time.
  • Pressing Enter the instant the round ends. Restart is locked for one second after the timer stops so that a stray key cannot wipe the result. Wait a moment, then press Enter.

Spacebar Clicker FAQ

How does the spacebar clicker work?

Choose a duration and press the spacebar. The timer starts on the first press and every separate press adds one to the count. When the time is up, the tool shows your total presses, your presses per second and your best score for that duration.

How is my spacebar speed calculated?

It is your total presses divided by the length of the round in seconds, rounded to one decimal place. 52 presses in a 10 second round is 5.2 presses per second. While a round is running, the live figure uses the time elapsed so far, and during the first second it is read over one full second so it does not jump around.

Does holding the spacebar down count as many presses?

No. A held key sends repeated signals, and the test ignores them. The key must come back up before another press is counted, so holding the spacebar for the whole round scores 1.

Why does the timer start on my first press?
So the round measures pressing speed and nothing else. A countdown would add your reaction to the start signal to the result. If that is what you want to measure, use the reaction time test.
Can I use the spacebar clicker on a phone?

Yes. On a touch screen the test area is a tap pad and each tap counts as one press, including taps from more than one finger. Tap scores and keyboard scores are different skills, so compare like with like.

Why do mouse clicks not count?
This test is about the spacebar. On a computer the test area only shows where to aim your attention, and clicking it does not change the score. To measure mouse clicking speed, use the CPS test.
Where is my best score saved?

In your browser's local storage on this device, one best score for each duration. It is not uploaded and it is not tied to an account. Clearing your browser data removes it, and a browser that blocks storage keeps it only until you close or reload the page.

How do I restart the test?

Press Enter or the Try again button once the result has been on screen for one second. The Restart button above the test works at any time, and choosing another duration also starts a fresh round.

Is this the same as a typing test?
No. A spacebar test measures how fast you can repeat one key. A typing test measures how fast and how accurately you type real text across the whole keyboard. For that, try the typing speed test.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started