Countdown timer with alarm

Set a countdown in hours, minutes and seconds, with an alarm sound and a desktop notification when time is up.

loading Countdown timer with alarm
About this tool

What is an online countdown timer?

A countdown timer counts down from a time you choose to zero and then warns you. People use it for cooking and tea, study sessions, workouts and rest breaks, presentations, exams, board games, meetings that must end on time and the Pomodoro technique, which alternates 25 minutes of focus with a short break. Anything that has a duration, and not a calendar date, fits a timer.

This one is set in hours, minutes and seconds, from 1 second up to 99:59:59, and has quick presets for 1, 5, 10, 15 and 25 minutes and 1 hour. When the time is up it plays an alarm sound, shows a notification on your desktop if you allow it, and the screen shows "Time is up!". The timer is based on the clock and not on a counter, so it stays accurate even if the browser slows a background tab. It all runs in your browser, with no account and no data sent.

If you want to count down to a calendar date such as New Year, use the countdown to a date instead. To measure elapsed time upward, use the chronometer.

How to use the countdown timer

  1. Choose the length with a preset, or type hours, minutes and seconds in the "Length" fields. Whole numbers between 1 second and 99:59:59 are accepted.
  2. In "When time is up", choose "Play an alarm sound", "Show a notification" or both. The first time you enable notifications the browser asks for permission.
  3. Press "Start". The large display counts down to zero.
  4. Press "Pause" to stop and "Resume" to continue from the same point. "Reset" returns to the length you set.
  5. When it reaches zero, the alarm rings. Press "Stop alarm" to silence it.
  6. Keep the tab open. The alarm needs the page to be running, but it still rings if you are looking at another tab.

Examples

A Pomodoro session

Press the 25 minute preset and start. The display reads 25:00 and counts down; after the alarm, set 5 minutes for the break. After four rounds, the classic method suggests a longer break.

Boiling an egg

Set 0 hours, 6 minutes, 30 seconds, which the timer stores as 390 seconds. For lengths above one hour the display shows hours too: 1 hour, 1 minute and 1 second reads 1:01:01.

A 90 minute class

Typing 1 hour and 30 minutes gives 5,400 seconds. Typing 100 hours is rejected because the maximum is 99:59:59 (359,999 seconds); the tool shows the message "Set a time between 1 second and 99:59:59 using whole numbers."

Pause and resume

Start 10:00, pause at 07:42 and come back later: the display still says 07:42 and resumes from there, because pausing stores the remaining time.

A timer in the background

Start a 15 minute timer and open another tab to keep working. When time is up the alarm rings and, if you allowed them, the desktop notification appears, even though the timer page is not the visible tab.

Common mistakes

  • Closing the tab and expecting the alarm. A web page cannot ring if it is not open. Keep the tab open, even in the background.
  • Blocking notifications and wondering why nothing appears. If the browser blocks them for this site, allow them in the site settings; the sound and the screen alert work without it.
  • Muted device or low volume. Check the system volume and test with a 1 second timer first.
  • Typing minutes above 59 in the seconds field. Use whole numbers and let the tool convert; 90 seconds becomes 1:30.
  • Using a countdown for a calendar deadline. For "how long until Friday 18:00" use a date countdown, which follows the calendar and daylight saving time.
  • Setting a very long timer on a phone that locks the screen. Mobile browsers may suspend a page; for critical alarms use the clock app of the device as well.

Frequently asked questions

Does the timer keep running if I switch tabs?

Yes. It calculates the remaining time from the clock, so it is not affected by a background tab being slowed down, and the alarm still rings.

What is the longest time I can set?

99 hours, 59 minutes and 59 seconds.

Does it work offline?

Once the page is loaded, yes. It needs no server and sends nothing.

What is the Pomodoro technique?

A method created by Francesco Cirillo that splits work into 25 minute blocks separated by short breaks. Use the 25 minute preset and then 5 minutes for the pause.

Can I time something upward instead?

Use the chronometer. To estimate when a task will finish, try the ETA calculator.

Countdown timer in code

JavaScript

function countdown(seconds, onDone) {
  const end = Date.now() + seconds * 1000;
  const id = setInterval(() => {
    const left = Math.max(0, end - Date.now());
    console.log(Math.ceil(left / 1000));
    if (left === 0) { clearInterval(id); onDone(); }
  }, 250);
}
countdown(5, () => console.log('Time is up!'));

Python

import time
for left in range(5, 0, -1):
    print(left)
    time.sleep(1)
print("Time is up!")

Bash

sleep 300 && echo "Time is up!"   # 5 minutes
Report a problem