Online Timer | Countdown with Presets
Set a countdown timer for work blocks, cooking, workouts, study sessions, and breaks. Includes quick presets, saved custom timers, pause/resume, progress tracking, repeat mode, and optional sound alerts.
H
M
S
Ends at
--:--
Completed
0 sessions
Progress
0%
Quick Presets
What Is the Online Timer?
Set a time, press Start — no app install, no account needed. Eight presets cover common durations (Tea at 3 min, Egg at 7, Focus at 25, Nap at 20). The custom H:M:S input handles anything from 1 second to 99 hours.
The SVG progress ring uses stroke-dashoffset, hardware-accelerated by the GPU. The animation stays smooth even on older laptops with heavy tabs open. The tab title shows remaining time so you can glance at your taskbar without switching windows.
Nudge buttons let you add or subtract 1, 5, or 10 minutes mid-countdown without resetting. Auto-repeat loops the same duration automatically for interval training. A Web Notification fires even when the window is minimized.
Online Timer Formula and Method
Remaining time = target duration − elapsed time.
Progress % = (duration − remaining) ÷ duration × 100.
Circular ring stroke-dashoffset = circumference × (1 − progress %), where circumference = 2π × radius (typically 2 × 3.14159 × 54 = 339.3 px for a 54 px radius ring).
The countdown decrement fires every 1000 ms via setInterval, reducing remaining seconds by 1 and recalculating both the display string (HH:MM:SS) and the ring offset.
Sound alert fires a short Web Audio API oscillator burst (440 Hz, 0.3 s) when remaining time reaches zero, falling back to a pre-loaded audio file in browsers without AudioContext support.
How to Use
- 1
Pick a preset or type a custom duration in the H:M:S fields. Values wrap automatically — 90 seconds becomes 1 min 30 sec. The ring preview updates before you start.
- 2
Press Start or hit Enter. The ring animates anti-clockwise and the tab title updates to show remaining time so you can work in another window.
- 3
Press Pause (or P) to freeze the countdown. Handle the interruption, then press Start again. The timer resumes from the exact second it stopped.
- 4
Tap a nudge button (+1m, +5m, +10m, −1m) to adjust time while the countdown runs. No pause, no reset — the ring and display update instantly.
- 5
Enable Sound before starting. At zero, a double-beep fires via the Web Audio API. Allow the notification prompt so the alert reaches you in background tabs.
- 6
Toggle Auto-repeat to restart the timer automatically at zero. A cycle counter tracks completed loops. Press Stop when you want to end the sequence.
- 7
Hit Reset to return to your configured duration. The ring clears and your last duration is remembered for the next run.
- 8
Click Fullscreen to fill your entire display with the ring. Useful for classroom timers or exercise demos visible from across the room.
Online Timer Example
A home cook sets 8 minutes, enables Sound, and goes back to chopping. The double-beep fires when done. They click Egg (7 minutes) next. When the boil runs late, a +1m nudge adds time without pausing.
A remote worker running Pomodoro sets Focus (25 min) with Sound and Auto-repeat on. The timer cycles automatically; the cycle counter shows sessions done. After 4, they switch to the Long Break preset. The tab title keeps their eyes on the code editor, not the timer tab.
Understanding Online
Why This Timer Stays Accurate in Background Tabs
A naive countdown trusts setInterval fires exactly on time. It doesn't. Under CPU load, browsers can delay callbacks by hundreds of milliseconds. Over 25 minutes, that's 10–30 seconds of drift.
This timer uses drift correction: on every tick it reads performance.now() and subtracts from the start time to get true elapsed time. The display shows real wall-clock elapsed, not interval count. It stays within one second of the real clock for any practical duration.
Desktop browsers — Chrome, Firefox, Edge, Safari on macOS — maintain background timers reliably. iOS Safari throttles background JavaScript aggressively. On mobile, keep the tab visible or enable Sound so the alert fires when the countdown reaches zero.
The SVG Ring: Why It's Smooth
The ring is a single SVG circle with stroke-dasharray (total circumference, fixed at ~339 px) and stroke-dashoffset (how much is hidden). As the countdown runs, stroke-dashoffset decreases from full circumference to zero.
The browser's compositor handles the visual update independently of JavaScript. No canvas, no DOM reflow, no jank — the ring stays smooth even when other scripts are running.
Online Timer vs Phone Timer vs Smart Speaker
Phone timers and smart speakers work for one kitchen countdown. They can't show a visual ring on your laptop, can't have workflow-tuned presets, and can't run two timers in parallel tabs.
The one real advantage of a phone timer: it keeps running if you close the browser. For very long timers where you'll shut the laptop, use the phone. For anything under an hour at your desk, the browser wins on visibility.
Keyboard Shortcuts
Enter starts or resumes. P pauses. R resets. Number keys 1–8 select presets. These shortcuts let you run the timer without touching the mouse — useful when your hands are busy cooking, exercising, or typing during a presentation.
Timed Work Blocks: Why They Work
A 2018 paper in Cognition (Ariga & Lleras) showed brief mental diversions during a long task dramatically improve sustained focus by preventing attentional habituation. A countdown timer enforces those diversions without needing willpower.
The Focus preset (25 min) matches the Pomodoro Technique's evidence-backed default. The Workout preset (60 min) suits longer flow-state work where frequent interruptions would be counterproductive.
Frequently Asked Questions
Will the timer work while I browse other tabs?
On desktop — Chrome, Firefox, Edge, Safari on macOS — yes. Drift correction measures real elapsed time on every tick so it stays accurate in background tabs. iOS Safari throttles background JavaScript; keep the tab visible on mobile.
Can I pause and resume mid-countdown?
Yes. Pause (or the P key) freezes remaining time exactly. The ring holds its position. Start or Enter resumes from the exact paused second — no rounding, no time lost.
How do I set a custom time that's not in the presets?
Click the H, M, or S field and type your value. Values wrap automatically — 90 in seconds becomes 1 min 30 sec. Press Set or Start to apply. Works from 1 second to 99 hours.
What do the nudge buttons (+1m, +5m, +10m, −1m) do?
They add or subtract minutes from the current remaining time while the countdown is still running — no pause needed. The ring and display update instantly. Useful when a cooking step runs long or a speaker finishes early.
Can I use this as a Pomodoro timer?
Yes. Click Focus (25 min), enable Sound and Auto-repeat, and the timer loops automatically. The cycle counter tracks completed sessions. After four, switch to the Long Break preset (15 min) manually.
Will I hear the alert if the browser is minimized?
On desktop, yes — the Web Audio API plays audio regardless of window state while the browser is running. Enable Web Notifications for a desktop pop-up too. On mobile, keep the tab visible for reliable audio.
Is there a timer that counts up instead of down?
This tool counts down only. For counting up with lap splits, pace calculation, and CSV export, use the Stopwatch tool in the related tools section.
Does the timer store any data or require an account?
No account needed. Timer settings are saved in your browser's localStorage on your device only. Nothing is sent to any server. Safe to use on shared or public computers.
You Might Also Like
Explore 360+ Free Calculators
From math and science to finance and everyday life — all free, no account needed.