Skip to content
  1. Home
  2. Free timer generator

Free countdown timer generator

Design a countdown, copy the code, paste it anywhere that accepts HTML. Free, no account, no tracking, and the timer hides itself when it ends.

Your embed code

Paste this into any page or HTML block. It's self-contained: no external files, no cookies.

<!-- Countdown timer from quickofftimers.com -->
<div id="qo-cd" role="timer" style="font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#17130f;background:#ffffff;border:1px solid rgba(0,0,0,.12);border-radius:14px;padding:20px 16px;text-align:center;max-width:520px;margin:0 auto"><p style="margin:0 0 4px;font-size:18px;font-weight:700">Sale ends in</p><p style="margin:0 0 14px;font-size:14px;opacity:.75">Don&#39;t miss 20% off everything</p><div data-t style="display:flex;justify-content:center;gap:10px"></div></div>
<script>
(function () {
  var el = document.getElementById("qo-cd");
  var end = new Date("2026-12-04T10:05:18.567Z").getTime();
  var labels = ["Days","Hrs","Min","Sec"];
  var minimal = false;
  var accent = "#e4511b";
  var out = el.querySelector("[data-t]");
  function pad(n) { return (n < 10 ? "0" : "") + n; }
  function tick() {
    var s = Math.floor((end - Date.now()) / 1000);
    if (s <= 0) {
      el.textContent = "This offer has ended.";
      clearInterval(timer);
      return;
    }
    var p = [Math.floor(s / 86400), Math.floor(s % 86400 / 3600), Math.floor(s % 3600 / 60), s % 60];
    if (minimal) {
      out.textContent = (p[0] ? p[0] + " " + labels[0] + " " : "") + pad(p[1]) + ":" + pad(p[2]) + ":" + pad(p[3]);
      return;
    }
    var html = "";
    for (var i = 0; i < 4; i++) {
      if (i === 0 && !p[0]) continue;
      html += '<div style="min-width:56px"><div style="font-size:32px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:' + accent + '">' + pad(p[i]) + '</div><div style="font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.65;margin-top:6px">' + labels[i] + "</div></div>";
    }
    out.innerHTML = html;
  }
  var timer = setInterval(tick, 1000);
  tick();
})();
</script>
On Shopify? Skip the code.QuickOff adds timers to product pages and collection cards without editing your theme, syncs them to your discounts and matches your theme automatically.
Install free on Shopify

How to use your timer

  1. Set the end date and time. It's saved as an exact moment, so every visitor sees the same deadline wherever they are.
  2. Choose a style and colors, and edit the text and labels into your language.
  3. Copy the code and paste it into a custom HTML block in your site builder, landing page tool or theme.
  4. When the deadline passes, the timer swaps itself for your ‘ended’ message.

Frequently asked questions

Is the generator really free?

Yes. There's no sign-up, no watermark and no tracking. The code runs entirely in your visitor's browser.

Will the timer show the same deadline to everyone?

Yes. The end time is stored as an exact UTC moment, so a shopper in Tokyo and one in London count down to the same second.

Can I use it in emails?

No. Email clients block JavaScript, so live timers in email need an image-based service. This snippet is for web pages.

Can I use it on Shopify?

You can paste it into a Custom Liquid section. For timers on every product page or card, synced to your discounts, the QuickOff app is easier and stays in step with your sales.

Add a timer your shoppers can trust

Pick a Shopify discount, and QuickOff shows a countdown that starts, moves and ends with it, styled like the rest of your store.

Install free on ShopifyPaid plans include a 14-day free trial