> Create a free HTML or JavaScript countdown timer for your website. Customise colours, separators, inline or sticky bar placement, and fixed or evergreen deadlines.

Source: https://plandalf.com/tools/countdown-timer
Last modified: 2026-12-04

Free tool

# Free countdown timer  
for any website.

Customise your HTML or JavaScript countdown widget, preview live and paste it onto Webflow, WordPress or Shopify.

## How to embed your HTML countdown timer

Copy the snippet once. Shadow DOM keeps your site's CSS from breaking the clock on any builder.

Platform

Where to paste the embed

Plain HTML / React / Astro

Paste the JS SDK or HTML embed block anywhere inside `<body>`.

Webflow

Add a **Code Embed** element where you want the timer (or in Page Settings for a sticky bar) and paste.

WordPress / Elementor / Divi

Drop a **Custom HTML** block on the page and paste the snippet directly.

Shopify

Add a **Custom Liquid** section in the Theme Editor and paste the embed code.

Framer & Carrd

Use an **Embed** component set to HTML mode and paste the snippet.

## JavaScript countdown timer with custom tracking hooks

Uses Plandalf's plandalf('countdown', options) command queue with full style customisation and optional hooks for your own backend.

```
<div id="timer"></div>
<script async src="https://plandalf.com/embed/countdown.js"></script>
<script>
  window.plandalf = window.plandalf || function () { (window.plandalf.q = window.plandalf.q || []).push(arguments); };
  plandalf('countdown', {
    target: '#timer',
    // Plug in your own backend, cookie, or CRM deadline
    resolveDeadline: () => window.__USER_OFFER_ENDS_AT__,
    style: {
      bg: '#111111',
      digitColor: '#ffffff',
      labelColor: '#888888',
      digitBoxBg: '#1e1e1e',
      label: 'Your invite expires in',
    },
    onExpired: ({ deadlineMs }) => {
      document.querySelector('#buy-btn').disabled = true;
    },
  });
</script>
```

Need the full list of `style` customisations, DOM events (`plandalf:expired`), and handle methods (`getRemaining()`, `getDeadline()`, `close()`)? Read the [Free countdown timer SDK documentation](https://plandalf.com/docs/promos/free-countdown-sdk).

## Free local timer vs Plandalf Deadline timers

Start free with client-side config. Move to server-enforced deadlines when real revenue depends on the clock.

Capability

Free local timer

Plandalf Deadline timers

Price

Free forever (no account)

Free for first 25 people/mo, then $25/mo

Visual customisation

Full `style` tokens (colours, boxes, separators)

Visual editor + synced site & email design

Fixed date countdown

Yes

Yes

Evergreen countdown timer

Browser localStorage (resets if cleared)

Server-side per contact across devices

Email countdown GIF

Not included

Included, synced to each subscriber

Automatic checkout price change

Manual via `onExpired` hook

Built in on [Deadline timers](https://plandalf.com/products/promos)

## Countdown timer FAQ

How do I add a free HTML countdown timer to my website?

Configure your deadline, colours and placement in the builder above, click Copy embed, and paste the HTML or JavaScript snippet into your page. It works on plain HTML, Webflow, WordPress, Shopify, Framer and Carrd with no account required.

Is this website countdown timer completely free?

Yes. The hosted script at plandalf.com/embed/countdown.js is free forever with no traffic caps, no cookies and no server-side tracking. It includes a small "Free timer by Plandalf" attribution link.

How does the evergreen countdown timer work without a server?

In Local evergreen mode, the script stores a single deadline timestamp in the visitor's browser localStorage under plandalf\_free\_timer\_<storageKey>. Refreshing the page keeps the countdown running instead of restarting it.

Can I connect my own tracking or listen for when the timer expires?

Yes. Pass resolveDeadline to feed a deadline from your own API or cookie, use onTick and onExpired callbacks, or listen for the bubbling plandalf:expired DOM event on the host element. Full details are in our SDK docs at /docs/promos/free-countdown-sdk.

When should I upgrade to Plandalf Deadline timers?

Use this free HTML and JavaScript countdown timer for public fixed-date launches and basic browser evergreen clocks. Upgrade to Plandalf Deadline timers when you need server-enforced per-buyer deadlines across devices, synced animated email countdown GIFs, and automatic checkout price changes at zero.

![Aarogorn](https://plandalf.com/images/faces/aarongorn-192.webp)![Bilbert](https://plandalf.com/images/faces/bilbert-192.webp)![Buildo](https://plandalf.com/images/faces/buildo-192.webp)![Foundo](https://plandalf.com/images/faces/foundo-192.webp)![Legoli](https://plandalf.com/images/faces/legoli-192.webp)

## Built by a team obsessed  
with conversion.

Five people. The ones who answer chat also write the code.

No credit card required.
