Countdown Timer

Enter a target date and time. The timer shows a countdown in days, hours, minutes, and seconds. Updates every second while the page is open.

Set countdown

Set target date/time and click Start countdown.

How it works

We compute the difference between now and the target using the Date object and update the display every second with setInterval.

When to use it

Use it for events, launches, or deadlines. Keep the tab open to see the countdown.

Frequently asked questions

  • What if the date has passed? The countdown shows zero or "Target time has passed."
  • Does it work offline? Yes. Once loaded it uses the device clock.