Countdown Timer

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

Countdown Timer

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 negative values or zero. Some implementations show 'passed'.

Does it work offline?

Yes. Once loaded it uses the device clock.