Fixed date
0d 00h 00m 00s
Until New Year's Day, midnight in New York
One deadline, the same moment for everyone. Use it for product launches, Black Friday sales, webinars, conferences, and enrollment that closes on a set day.
Pick a date, see it tick. Countdowns for launches, sales, events, and enrollment deadlines, correct in every time zone and embedded with two lines of HTML.
Set a time in the past to see the message. In MightyWidgets you describe the timer you want and the AI builds it, in any style you can describe.
Most countdowns are one of these. Pick the one that matches your deadline.
0d 00h 00m 00s
Until New Year's Day, midnight in New York
One deadline, the same moment for everyone. Use it for product launches, Black Friday sales, webinars, conferences, and enrollment that closes on a set day.
00m 00s
Your own 15 minutes, started when you arrived.
Each visitor gets a personal deadline that starts on their first visit and survives a page reload. Common on landing pages and welcome offers that run all year.
00h 00m 00s
Until 2:00 PM today, your time, then tomorrow
A deadline that resets on a schedule: "order in the next 3 hours for same-day dispatch," a daily deal, or a weekly live stream. It rolls over on its own.
The moment a countdown ends matters as much as the countdown. A timer stuck on 00:00:00 tells visitors the page is abandoned. Common choices:
Tell the AI which one you want. You can change it later and the embed code stays the same.
Registration is closed
The most common countdown bug is a deadline written without a time zone. "Friday at 9:00" means a different moment in every visitor's browser, so a sale that ends at 9:00 in New York ends three hours late in California and hours early in London.
A correct countdown counts to one fixed instant. Set your deadline in your own time zone, and every visitor sees the right remaining time in theirs.
MightyWidgets timers are built this way by default. Say "Friday at 9am New York time" and that is the moment the timer counts down to, wherever your visitors are.
When you publish a timer, MightyWidgets gives you this snippet with your widget's ID filled in. Paste it where the countdown should appear:
<script src="https://cdn.mightywidgets.com/load.js" async></script>
<div data-mightywidgets-id="YOUR_WIDGET_ID"></div>It works anywhere you can add custom HTML: a WordPress Custom HTML block, a Shopify Custom Liquid section, a Squarespace Code block, a Wix HTML embed, Webflow, Ghost, or a plain .html file. Editing the timer later updates it everywhere without touching the snippet.
Here is a minimal countdown in plain HTML and JavaScript, free to copy. It recalculates from the clock on every tick (so it never drifts), includes the UTC offset in the end date, and replaces itself with a message at zero.
<div id="countdown">
<span id="cd-d">00</span>d <span id="cd-h">00</span>h
<span id="cd-m">00</span>m <span id="cd-s">00</span>s
</div>
<script>
// Always include the UTC offset, or every visitor counts to a different moment.
const end = new Date('2026-11-27T09:00:00-05:00').getTime();
const pad = (n) => String(n).padStart(2, '0');
function update() {
const ms = end - Date.now();
if (ms <= 0) {
document.getElementById('countdown').textContent = 'The sale has ended';
clearInterval(timer);
return;
}
document.getElementById('cd-d').textContent = Math.floor(ms / 86400000);
document.getElementById('cd-h').textContent = pad(Math.floor(ms / 3600000) % 24);
document.getElementById('cd-m').textContent = pad(Math.floor(ms / 60000) % 60);
document.getElementById('cd-s').textContent = pad(Math.floor(ms / 1000) % 60);
}
const timer = setInterval(update, 1000);
update();
</script>What it leaves out is the part that takes longer: styling, mobile layout, evergreen and recurring schedules, and changing the deadline without editing your site. That is what the builder is for.
Placement decides whether a timer gets noticed or ignored
On a product page during a sale, put the timer beside the price, where the decision happens.
For a site-wide promotion, a slim bar works better than a big clock. See the countdown bar.
For webinars and events, show the time left to register directly above the form.
Pair the countdown with an email signup so visitors who are early can be told when it goes live.
Embedding, time zones, pricing, and what happens at zero
Building and editing the timer is free, and the Free plan includes 50 credits for AI editing. Its first 100 loads each month are free; after that the timer keeps working, with a small "Powered by MightyWidgets" link added. Paid plans start at 2,500 credits a month and remove the link.
Publish the timer, copy the two-line snippet (a script tag and a div), and paste it into any page that accepts custom HTML: a WordPress Custom HTML block, a Shopify Custom Liquid section, a Squarespace Code block, a Wix HTML embed, or a plain .html file. The countdown appears where the div is.
An evergreen timer gives each visitor their own deadline that starts when they first arrive, such as "this offer expires 15 minutes after you land here." The end time is saved in that visitor's browser, so reloading the page does not restart it. Ask the AI for an evergreen countdown and say how long it should run.
Yes, as long as the end time is a fixed moment. When you tell the AI "Friday at 9am New York time," the timer counts down to that exact instant, so a visitor in London and one in Los Angeles hit zero at the same moment, each seeing the correct remaining time.
Yes. Describe the schedule, for example "count down to 2pm every weekday for same-day shipping." After the cutoff passes, the timer rolls over to the next one automatically.
Whatever you ask for: show a message, hide the timer, swap it for a "Register now" or "Shop the new collection" button, redirect to another page, or simply stay at zero. You can change it later without changing the embed code.
Not this one. Email apps do not run JavaScript, so live email countdowns are animated GIFs generated by a specialist service. MightyWidgets timers are for web pages, landing pages, and online stores.
No. The loader script is async, so your page renders first and the timer fills in a moment later. The timer itself is a few kilobytes and is served from a CDN.
Other ways to put a deadline in front of visitors
Describe the deadline and the look. The AI builds it, and you embed it with two lines of HTML.
Get Started Free