Online Timer Countdown — Set the Duration and Run a Session That Keeps Time

What the timer does the moment you press Start

The page hands you three number fields — hours, minutes, seconds — and a display that reads back in HH:MM:SS, two digits per part. You type a duration into the fields, press Start, and the number ticks down. That is the whole idea, but two details decide whether a countdown is usable in a real session.

First, the fields take whole numbers only, so ninety seconds is 0 hours, 1 minute, 30 seconds — never "1.5 minutes". Second, the timer is a countdown, not a stopwatch: it runs toward zero and stops there. You are not locked into one discipline for the whole day, though. A second tab runs the same clock upward, so the same tool measures elapsed time when you would rather count up than chase a deadline.

The engine behind the digits uses requestAnimationFrame with delta accumulation. Instead of subtracting one second on every tick and drifting whenever the browser is busy, it measures real elapsed time and paints the remaining span from that reading. A late frame corrects itself on the next paint instead of compounding into a visible error. That is the gap between a timer you trust for a 25-minute block and one that quietly runs long while you are not looking.

The display is padded to two digits per field, so five minutes shows as 00:05:00 and one hour shows as 01:00:00. Reading it takes no effort, which matters once the digits are on a projector and you are across the room.

Turning a session length into hours, minutes and seconds

Session plans rarely arrive in the units the timer wants. A lecture is "ninety minutes", a circuit is "forty seconds on, twenty off", a deep-work block is "an hour and a quarter". Translating each one into the three fields takes a few seconds of arithmetic, and getting it right is the difference between a timer that matches your plan and one that beeps early.

The rule is simple: hours go in the first field, minutes in the second, seconds in the third, and both lower units cap at 59 before they roll into the one above.

Session Hours Minutes Seconds Display reads Total seconds
Short break 0 5 0 00:05:00 300
Pomodoro work block 0 25 0 00:25:00 1500
Deep-work block 1 15 0 01:15:00 4500
Lecture 1 30 0 01:30:00 5400
HIIT work interval 0 0 40 00:00:40 40
HIIT rest interval 0 0 20 00:00:20 20

The last column is worth holding on to: twenty-five minutes is 1,500 seconds, an hour is 3,600, and an hour and a half is 5,400. When a plan says "two Pomodoros and a long break", you can run three countdowns in sequence (25:00, 25:00, 15:00) or set one 65-minute block (1 hour 5 minutes) and let a single chime close the whole set.

Watch the rollovers. Forty minutes past the hour is not 00:70:00; it is 01:10:00, because minutes stop at 59 and carry into the hours field. The same holds for seconds: ninety seconds is 00:01:30. If a field refuses a value, the number belongs in the field above it.

Session plans, by the numbers

Once the translation is automatic, you can build a day out of named blocks and know exactly what to type.

For focus work, the Pomodoro shape is 25 minutes on, 5 minutes off. Alternating them four times is two hours of clock time: four 25-minute work blocks (100 minutes) plus four 5-minute breaks (20 minutes). Type 25 in the minutes field for the work block, 5 for the break, and run them in order — the countdown ends each segment for you.

For longer concentration, many people stretch the block to 45 or 50 minutes and the break to 10. A 45-minute block is 00:45:00, a 50-minute block is 00:50:00, and a 10-minute break is 00:10:00. Working in the ultradian rhythm, the block is 90 minutes (01:30:00) followed by a 15-to-20-minute recovery.

For intervals, the numbers shrink to seconds. A classic Tabata shape is 20 seconds of work and 10 seconds of rest; a gentler circuit is 40 seconds of work and 20 seconds of rest. Those live in the seconds field — 00:00:20, 00:00:10, 00:00:40, 00:00:20 — and you restart each interval by hand, because the timer runs one countdown at a time rather than a repeating loop.

For talks and exams, the block is the limit itself. A three-minute answer is 00:03:00, a 105-minute practice exam is 01:45:00, and a 15-minute stand-up is 00:15:00. Setting the limit before you start turns pacing from a guess into something you can watch.

Timeboxing with the countdown

Timeboxing is the practice of giving a task a fixed slice of time and stopping when the slice runs out, finished or not. The timer is what makes the boundary real, because without it "I will spend an hour on this" quietly becomes the whole afternoon — open-ended work expands to fill whatever time you hand it.

The method is deliberately blunt. Estimate how long a task should take, set the countdown a little shorter than that to keep the pressure on, and stop at zero. Common starter boxes run 15 minutes for an inbox reset, 25 minutes for starting something hard, 45 minutes for one defined chunk of progress, and 10 minutes at day's end to park loose ends. On the timer those are 00:15:00, 00:25:00, 00:45:00 and 00:10:00 — four entries you will type often enough to remember.

There is measured payoff, and it is worth quoting carefully. In one survey of timeboxing practitioners, people who tracked their boxes reported roughly a 15 percent rise in perceived focus and about a 12 percent drop in overtime hours. Read those as self-reported comfort numbers rather than hard productivity gains, and the point still stands: a visible deadline changes how a task feels.

The rule that separates timeboxing from a vague goal is that you stop. When the countdown reaches zero, you either set a fresh box for the unfinished work or accept where it stands and move on.

Why the display stays correct when you switch tabs

Browsers throttle background tabs to save battery, so a countdown built the wrong way loses time the moment you click away. A naively built timer subtracts one every time a one-second interval fires; when the tab is hidden, those intervals slow to once a second at best and to once a minute under intensive throttling, and the number falls behind by exactly the time you were gone.

This timer sidesteps that trap by reading elapsed time instead of counting ticks, so when you return the digits show the true remaining span on the first frame. Animation frames pause in a background tab, which means the number may look frozen while you are elsewhere — but it is frozen on the correct value, and it catches up the instant you come back.

Two consequences follow. The countdown does not survive a page reload: there is no stored state, so refreshing starts from your last typed duration. And the completion chime fires on the clock, not after a fixed number of frames — you get the bell when the session is genuinely over, even if the tab spent part of that time in the background.

Reading the timer from across a room

When the countdown is the thing everyone watches, whether a classroom activity, a talk, or a workout station, the digits have to be legible from a distance and the controls have to stay out of the way. Fullscreen pins the clock to a fixed overlay and scales the digits to fit the screen, so one session reads just as clearly on a phone propped on a desk as on a projector at the front of a room.

Inside fullscreen the controls fade after three seconds without a mouse move, a touch, or a keypress, then return the moment you reach for them. That keeps the display clean while the clock runs and leaves Start/Pause, Reset, and Exit within easy reach. Leaving fullscreen returns you to the normal page with the timer still counting. Before an important session, the Test sound button previews the bell so you can check the volume without waiting for the real chime.

Countdown, stopwatch or phone alarm

A phone alarm can ring at a chosen moment, but it is awkward for sessions you want to watch. A countdown shows the remaining time the whole way down, which is why it suits intervals, study blocks, and anything with a visible display.

Job Countdown Stopwatch Phone alarm
Watch time remaining Yes No No
Measure time elapsed No Yes No
Gives a visible on-screen clock Yes Yes No
Ends a session on time Yes No Yes
Works in fullscreen for a room Yes Yes No

The two modes live in the same tool, so switching between chasing a deadline and measuring elapsed time is one click away — and switching mode resets the clock, which keeps the state honest.

Frequently Asked Questions

01How do I set a countdown for two hours?

Put 2 in the hours field and leave minutes and seconds at 0, so the display reads 02:00:00. The hours field takes whole numbers, so you do not need to convert to minutes first.

02Is this accurate enough for a 25-minute Pomodoro?

Yes. The countdown reads real elapsed time rather than counting ticks, so it stays within a single display frame of the system clock across a session, even if the browser stutters mid-run.

03Does the countdown keep running when I switch to another tab?

It keeps correct time. The digits may appear frozen while the tab is hidden, because animation frames pause in the background, but the value is right and updates on the first frame after you return.

04What is the longest duration I can set?

The hours field accepts whole numbers with no small ceiling, so multi-hour sessions are fine. The countdown clamps at zero and plays the completion sound rather than running into negative time.

05Can I use it as a stopwatch instead of a countdown?

Yes. A second tab runs the same clock upward to measure elapsed time. Switching between the two modes resets the timer, so the countdown and the stopwatch never share a partial value.

06Why does the timer beep instead of playing a sound file?

The audio cues are generated in the browser with the Web Audio API: a short 880 Hz tone to start, 440 Hz to pause, and a 600 millisecond 880 Hz chime at completion, so nothing has to download and it works offline.

07Does the timer work offline, and does it send anything to a server?

It runs entirely in your browser. No data leaves the page, there is no account, and once the page has loaded it keeps working without a network connection.

08Why does 90 seconds not fit in the seconds field?

Because the seconds field stops at 59 and carries into the minute above it. Ninety seconds is written as 1 minute and 30 seconds — 00:01:30 on the display.

lony
lony

Leipzig, Germany · SO reputation 7987 · Badges: 13🥇74🥈111🥉 · SO member since 2009