DaysGap

Free Countdown Widget for Your Website

Design a live countdown clock, then paste the embed code into your website, blog or online store. It works with any site builder that accepts HTML.

Theme
Number color

Preview

Embed code

How to add a countdown to your website

  1. 1

    Design your countdown

    Enter a title, date and time, and choose a light or dark theme and a number color. The preview updates as you go.

  2. 2

    Copy the embed code

    Press “Copy embed code”. It's a single iframe plus a small credit link.

  3. 3

    Paste it into your site

    Add an HTML, Custom Code or Embed block where you want the countdown, and paste the code. Publish, and it's live.

Where to paste the code

PlatformWhere to paste it
WordPress (block editor)Add a “Custom HTML” block
SquarespaceAdd a “Code” block
WixAdd → Embed Code → “Embed HTML”
ShopifyOnline Store → Customize → add a “Custom Liquid” section
WebflowAdd an “Embed” element
Plain HTML sitePaste it anywhere inside the page body

Menu names change from time to time, but every major builder has a block for embedding HTML.

Ideas for using a countdown widget

Sales and launches

Show how long a sale, preorder or product launch has left. A visible deadline encourages people to act.

Events and webinars

Put a countdown on your event page, registration form or newsletter landing page.

Weddings and personal sites

Add a countdown to your wedding website or a family blog for a big trip or arrival.

Schools and clubs

Count down to exams, term start, sports day or a fundraising deadline.

Make it look right

Choose the light theme for white or pale pages and the dark theme for dark backgrounds. Pick a number color that matches your brand or the event. Keep the title short so it fits on one line on phones. The widget is 100% wide up to 560 pixels, so it fits sidebars and main content columns alike. To change the height, edit the height value in the code.

Widget sizes

The embed code sets a sensible height for you. If you change the design or want more space around it, adjust the height:

LayoutRecommended height
With a title150 px
Without a title120 px
Narrow sidebar (under 300 px wide)140 to 170 px
Large hero sectionKeep 150 px; the widget caps at 560 px wide

Troubleshooting

  • Nothing appears. Some site builders only allow embedded code on paid plans, or only show it on the published site, not in the editor. Publish the page and check it there.
  • The timer shows zero. The date and time are in the past. Make a new widget with a future date.
  • The box is cut off. Increase the height value in the embed code by 20 to 30 pixels.
  • The colors don't match. Switch between the light and dark themes, and pick a number color closer to your brand.
  • Wrong end time. The widget counts down to the time on each visitor's own clock. For a single global moment, set the time as it will be in your audience's main time zone.

Why add a countdown to your site

A countdown turns a date into something visitors can feel. On a sale page it shows exactly how long is left, which helps people decide now instead of later. On an event page it builds anticipation and reminds people to register. On a wedding or personal site, it's a simple, friendly way to share the excitement. Because the widget updates every second on its own, you never have to edit your page as the date gets closer.

Privacy and performance

The widget doesn't set cookies, track visitors or load ads. It loads lazily, so it only starts when someone scrolls near it, and it's served from a global CDN. Your settings live in the embed code itself, so there's no account to manage.

Just want a countdown for yourself, or one you can share with a link? Use the Countdown Timer, which also has a fullscreen mode for TVs and projectors.

Frequently asked questions

Is the countdown widget free?

Yes, free for personal and commercial sites. There's no sign-up, no watermark inside the timer and no ads.

How do I add the widget to my website?

Copy the embed code and paste it into an HTML or Embed block on your page. Most site builders, including WordPress, Squarespace, Wix and Shopify, have one.

Which time zone does the widget use?

Each visitor's own local time. A countdown to 8:00 PM ends at 8:00 PM wherever the visitor is.

What happens when the countdown ends?

The timer stops at zero and shows “It's here!”.

Can I change the widget after embedding it?

The settings are part of the embed code. Make a new widget with your changes and replace the old code.

Will the widget slow down my site?

No. It's a tiny page that loads lazily in an iframe, so it doesn't block the rest of your page.

Does it work on mobile?

Yes. The widget resizes to fit the width of your page, down to small phone screens.

Can I remove the “by DaysGap” link?

It's a small text link below the widget, not part of the timer. We'd appreciate you keeping it, as it helps other people find the tool.

More date tools

Last updated October 2026