Generators · 100% free

Sale Countdown HTML Snippet Generator

Generate a sale-countdown HTML/JS snippet to embed in your storefront, ticks live, no library.

Shopify Klaviyo Any web
Sale ends in
00d 12:34:56
html
<div style="font-family:system-ui,sans-serif;text-align:center;padding:1rem;border:1px solid #eee;border-radius:8px;max-width:480px;margin:0 auto">
  <div style="font-size:14px;color:#555;margin-bottom:.5rem">Sale ends in</div>
  <div id="cd-20261225235959" style="font-size:28px;font-weight:600;color:#dc2626">--:--:--:--</div>
</div>
<script>(function(){
  var t = new Date("2026-12-25T23:59:59.000Z").getTime();
  var el = document.getElementById('cd-20261225235959');
  function tick(){
    var d = t - Date.now();
    if (d <= 0) { el.textContent = 'Ends now'; return; }
    var days = Math.floor(d/86400000);
    var hrs = Math.floor(d/3600000)%24;
    var mins = Math.floor(d/60000)%60;
    var secs = Math.floor(d/1000)%60;
    el.textContent = (days?days+'d ':'')+String(hrs).padStart(2,'0')+':'+String(mins).padStart(2,'0')+':'+String(secs).padStart(2,'0');
    setTimeout(tick, 1000);
  }
  tick();
})();</script>

About this tool

Generate self-contained HTML+JS countdown timer for sale endings, drops, flash deals. Embed in Shopify, Klaviyo, BigCommerce.

More free tools

See all tools →
Free forever · No card

Why wait? Try it free today.

Stop managing feeds manually. Start optimising with AI in 30 seconds.

  • 100% free forever, no credit card required
  • 1 brand, 1 feed, 100,000 products per feed
  • Full AI Product Optimisation, Rule Engine, and 200+ channel exports
  • Pay only for AI credits when you need them