An online countdown timer with preset durations (30s, 1/3/5/10/15/30 min, 1 hour) and custom time entry. Visual ring progress bar with audible alert when time is up
The Online Countdown Timer is a browser-based countdown tool — no installation needed. It offers 8 common preset durations (30s, 1min, 3min, 5min, 10min, 15min, 30min, 1hr) plus a custom time entry in seconds, minutes, or hours, covering everything from quick cooking timers to long meeting countdowns.
The countdown is visualized through an elegant ring progress bar that shrinks as time runs out. The remaining time is displayed prominently in the center of the ring. When fewer than 10 seconds remain, the digits turn red as a warning. When the countdown finishes, the browser plays an audible alert and displays a "Time's up!" completion message.
This tool runs entirely in your browser and requires no network connection after the initial page load. It supports start, pause, and reset controls so you can adjust the countdown at any time.
The countdown mechanism is built on JavaScript's Date.now() high-resolution timestamps. When you click "Start," the current timestamp and remaining milliseconds are recorded. A setInterval timer updates every 50 milliseconds, computing the actual elapsed time (current timestamp - start timestamp), then subtracting it from the original remaining time. This absolute-timestamp approach ensures correct time display even if the browser tab was in the background.
The ring progress bar uses SVG circle with stroke-dasharray and stroke-dashoffset. The circumference is fixed at 2πr (r=90), and the dashOffset is calculated as circumference × (1 - remaining/total) for smooth progress animation. An 880Hz beep is played via the Web Audio API when time expires.
Date.now() timestamps. Even if the browser throttles the timer interval in the background, the display will correctly reflect the actual elapsed time when you return.Using a preset:
Click any preset button (e.g. "5m") → click "Start" → the ring begins shrinking → an alert sounds when time is up.
Custom duration:
Enter a value (e.g. 90) in the custom input → select the unit (sec/min/hr) → click "Set" → click "Start."
Pomodoro example:
Click "25m" preset (or enter 25 minutes) → click "Start," focus for 25 minutes → take a 5-minute break when the beep sounds → repeat.
This tool belongs to the time management family along with Online Stopwatch and Online Alarm Clock. The stopwatch counts up, the timer counts down, and the alarm rings at a set time. For timezone-aware scheduling, see World Time. For date-time calculations, try Date Time Calculator.