Design a countdown for a launch, sale, wedding or event, watch the live preview, then copy a self-contained HTML snippet for your website or an iframe and link for Notion and Google Sites. Every visitor sees the same remaining time, wherever they are.
Last updated:
Live preview
Advertisement
Advertisement
How to use the Countdown Widget Generator
Set the event: type a title, pick the date, time and the time zone the event happens in, or use a quick target such as New Year or In 7 days.
Choose a layout: boxes, flip tiles, minimal or one line, which units to show, the size, labels and what happens at zero.
Style it: click a color theme or pick your own colors, font and corner radius. The live preview updates instantly.
Pick an embed type: HTML + JS code for your website, an iframe for builders that block scripts, or the Link tab for Notion.
Copy and paste: press Copy code and paste it into a Custom HTML or Embed block, or download a ready-made .html page.
Which embed type should I use?
Where you want the countdown
Use
How to paste it
WordPress (block editor)
HTML + JS code
Add a Custom HTML block and paste. On WordPress.com, scripts need a plan that allows them; otherwise use the iframe.
Squarespace
HTML + JS code
Add a Code block, keep the mode on HTML and paste.
Wix
HTML + JS code
Add Embed Code > Embed HTML, choose Code and paste, then resize the box.
Webflow
HTML + JS code
Drag an Embed element onto the page and paste.
Shopify
HTML + JS code
Add a Custom Liquid section or block in the theme editor and paste.
Google Sites
iframe
Insert > Embed > Embed code, paste the iframe, then adjust the frame height.
Notion
Link
Type /embed, paste the link and choose Embed link.
Email newsletters
Not supported
Email apps block scripts and iframes; link to a page that shows the countdown instead.
How the countdown is calculated
When you press a button or change a setting, the generator converts your date and time from the chosen time zone into a single moment in UTC (a Unix timestamp in milliseconds), using your browser's built-in time zone database. That number is written into the code. Every second, the widget subtracts the visitor's current time from it and splits the result:
days = ⌊s ÷ 86,400⌋, hours = ⌊(s mod 86,400) ÷ 3,600⌋, minutes = ⌊(s mod 3,600) ÷ 60⌋, seconds = s mod 60, where s is the number of seconds left, rounded up so the display reaches 00 exactly at the target moment.
Because the target is stored as a universal moment, there is no "local time" confusion: an event at 8:00 PM in New York ends at 5:00 PM for a visitor in Los Angeles and at 1:00 AM the next day in London (outside the weeks when US and UK daylight saving dates differ).
Tips for a countdown that converts
Say what happens at zero. A title such as "Early-bird price ends in" tells visitors why the timer matters.
Drop the seconds for long countdowns of weeks or months; the ticking draws less attention away from your content.
Use the transparent background to blend the widget into a colored section, and check it with the Dark and Grid preview backgrounds.
Keep it honest. Don't reset a sale timer for each visitor; this widget counts to one real moment, which builds trust.
Several timers on one page? Generate each one separately: every snippet gets its own ID, so they never interfere.
Frequently asked questions
How do I add a countdown timer to Notion?
Open the Link (Notion) tab and press Copy link. In Notion, type /embed, paste the link and choose Embed link, then drag the bottom edge of the block to fit the widget. All your settings, including the date and colors, are stored inside the link, so nothing needs to be saved on a server.
Will visitors in other time zones see the right time?
Yes. The countdown is fixed to one exact moment: the date and time you enter in the event's time zone are converted to a universal timestamp when the code is generated. A visitor in Tokyo and one in New York both see the same remaining time, and daylight saving changes are already taken into account.
Does the HTML snippet need any external files or libraries?
No. The snippet is a small block of HTML, CSS and plain JavaScript (usually around 3 KB) with no external scripts, fonts, cookies or tracking. Its CSS is scoped to a unique ID, so it won't change the rest of your page, and you can place several different countdowns on one page.
Where can I paste the code?
Anywhere that accepts custom HTML with scripts: a WordPress Custom HTML block, a Squarespace Code block, Wix Embed HTML, a Webflow Embed element, Shopify Custom Liquid or a hand-written web page. If a platform strips scripts, use the iframe code instead; if it only accepts a URL, use the link.
What happens when the countdown reaches zero?
You choose: replace the numbers with your end message, keep showing 00 with the message below, or switch to counting up so the widget shows how long ago the event started, which is handy for an anniversary or a 'time since launch' counter.
Can I show only days, or only hours and minutes?
Yes. Untick the units you don't want. Hidden units are rolled into the next visible one, so with days turned off a countdown of 2 days and 3 hours shows 51 hours. You can also rename the labels, for example to another language, or clear a label to hide it.
Does the countdown depend on the visitor's clock?
The snippet compares the target moment with the visitor's device clock, which phones and computers keep in sync automatically. If a device clock is set wrong by hand, its countdown will be off by the same amount; it corrects itself as soon as the clock is right.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.