Skip to content
AZ Tools

Stopwatch & Timer

A precise stopwatch with laps and a countdown timer with an alarm.

00:00.00

How to use

  1. Pick a mode: Stopwatch or Timer.
  2. Stopwatch: press Start, record laps, and reset when done.
  3. Timer: set hours, minutes, and seconds, then start.
  4. The timer plays an alarm sound when it finishes.
  5. Pause and resume the timer any time.

About this tool

Show

Two tools on one page: a stopwatch that counts up to hundredths with lap marks, and a countdown timer up to 99 hours that beeps when it reaches zero. Both start from a button press; nothing is stored and nothing is sent anywhere.

Neither one accumulates time, and that is what keeps them honest. The stopwatch records the timestamp at which you pressed start and then, on every redraw, computes the difference against the clock afresh — so a slow frame, a busy tab or a hundred missed ticks cannot make it lose a millisecond. The interval that drives the redraw is 31 ms, about 32 times a second, which is smooth to the eye but slower than the hundredths digit changes: the display genuinely skips values rather than counting every one. The countdown works the same way from the other end, storing the absolute instant at which it should finish; pausing keeps the remainder, resuming sets a fresh deadline.

The practical consequence is what happens in a background tab. Browsers clamp timers in hidden tabs to once a second or less, so the reading stalls while you are away and then jumps straight to the right value when you return — the elapsed figure is correct, only the animation was paused. The alarm is the one thing that can genuinely arrive late, since the tick that notices zero is the tick that fires it.

Two caveats worth knowing. The clock being read is the system clock, so if something corrects it while you are timing — an NTP step, a manual change — the reading moves by exactly that much; for durations that must survive that, a physical stopwatch is still the better instrument. And the countdown rounds its seconds up, so a five-minute timer shows 00:05:00 for the whole first second and reaches 00:00:00 only at the moment it fires. Laps are absolute readings at the instant you tapped, not the gaps between them. The alarm is three 880 Hz sine pulses — the A above the treble staff — synthesised through Web Audio, so there is no sound file to wait for.

Frequently asked questions

Does it stay accurate in the background?

Yes. Timing is based on the system clock (Date.now), so the elapsed and remaining times stay correct even if the tab is inactive.

Will the alarm sound play?

It uses the Web Audio API and plays after you've started the timer. Make sure your device isn't muted.

Are my times saved?

No. This tool keeps nothing — reloading the page clears the stopwatch and timer.

How precise is the stopwatch?

It displays hundredths of a second and is driven by the system clock (Date.now).

Why does the display jump when I return to the tab?

Because the redraw was throttled while the tab was hidden, not because time was lost. Elapsed time is recomputed from the system clock every update, so the moment the tab is visible again the display catches up to the true figure in one step. The number was always right; it just was not being painted.

Will the timer still fire if I lock my phone?

It may not fire on time. Mobile browsers suspend background pages aggressively to save battery, and a suspended page cannot play a sound at the appointed moment - it will notice it has run out only when you return to it. For anything you must not miss, use your device's own alarm; a browser tab is not the right place for it.

What is the difference between a lap and a split?

A lap is the time for one segment, measured from the previous lap. A split is the total elapsed at that point, measured from the start. This stopwatch records the running total each time you press lap, so the split is what you see directly and the individual lap time is the difference between two consecutive entries.

Guides on this topic

Related tools