RunTheTests
/

Countdown Timer

A countdown that stays accurate when the tab is in the background.

Countdown

10:00

Settings

The timer keeps running while this tab is in the background — it is measured against the clock rather than counted — but the chime may be delayed until you return, because browsers hold audio in inactive tabs.

How this calculation works

The timer records the wall-clock moment it should end and computes the remainder from the current time on every frame. That sounds like a detail and it is the whole difference in accuracy: a timer built on an interval and a decrementing counter drifts, because intervals fire late under load and are throttled hard in an inactive tab — often to once a minute. A counting timer set for twenty-five minutes can finish several minutes late; this one is simply correct when you come back to it.

What the results mean

Ends at
The clock time the countdown will finish. Worth glancing at — it is the value the timer is actually working from.
Background accuracy
The remaining time is computed, not counted, so a throttled or suspended tab cannot make it run long.
The chime
A short tone played in the page. Browsers may hold it until the tab is active again, which is a platform behaviour rather than a missed alarm.

Common problems and fixes

The chime did not play
Browsers block audio until a page has been interacted with, and hold it in inactive tabs. Pressing start counts as the interaction; a background tab may still wait until you return.
I reloaded the page and lost the timer
Nothing is stored, deliberately. For anything that has to survive a closed tab, use a calendar entry or a phone timer.
The display stutters
The rendering can stutter under load and the total cannot — the end time is fixed and the remainder recomputed each frame.

Frequently asked questions

Do browser timers keep running in a background tab?

Timers that count ticks do not, reliably: browsers throttle background intervals aggressively, sometimes to once a minute, to save battery. That is why so many web timers finish late. A timer that records its end time and computes the remainder — this one — is unaffected, because nothing needs to be counted while the tab is away.

Will it still work if I lock my screen?

The maths will: the end time is fixed, so whenever the page runs again it knows exactly how much is left. What may not is the sound, since a suspended tab produces no audio until it resumes.

Put this on your own site

Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.

Embed code
<iframe src="https://runthetests.com/embed/countdown-timer/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="Countdown Timer" loading="lazy"></iframe>

Preview it at https://runthetests.com/embed/countdown-timer/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.

More in Time