Design a live countdown to any date and generate a self-contained, embeddable HTML snippet — no dependencies, fully offline.
A zero-dependency countdown widget builder. Pick a target date, time, label, and visual theme, watch a live days/hours/minutes/seconds preview update in real time, then copy or download a small standalone HTML fragment (inline
<style>+<script>, no external files) that reproduces the exact same live countdown when pasted into any other page.
Countdown Widget Builder Pro runs entirely in the browser with no build step, no frameworks, and no network calls — open index.html from disk and it works. The settings form on the left drives a live preview on the right, and the Generate Snippet button serializes the current configuration into a fully self-contained <div> + scoped <style> + <script> block with its own tick loop — paste it into any HTML page (a blog post, a landing page, a CMS custom-HTML block) and it counts down independently, with no reference back to this tool.
- Live preview — days / hours / minutes / seconds update every second as you type, matching the generated snippet pixel-for-pixel.
- 5 visual themes — Aurora, Midnight, Sunset, Mint, and Mono — plus a custom accent color picker and 3 digit sizes (compact/medium/large).
- Two timezone modes: viewer's local timezone (the target wall-clock time is re-resolved in each visitor's own browser, correct across DST) or UTC (a single fixed instant, identical for every visitor worldwide).
- Custom label and expired message — e.g. "Product Launch" → "It's here!" once the countdown reaches zero.
- Optional unit labels — toggle the "Days / Hours / Min / Sec" captions under each number.
- Self-contained embeddable snippet — a single
<div id="cdw-…">with an inline, ID-scoped<style>block (won't clash with the host page's CSS) and an inline<script>that computes the countdown and ticks every second withsetInterval, using only the target's date/time components and timezone mode baked in — no external JS, no CDN, no build step. - Copy the snippet to clipboard or Download it as a standalone
countdown-widget.htmlfile. - Auto-persist — your last configuration is saved to
localStorageand restored on return; Reset returns to sensible defaults. - Dark & light themes for the builder UI itself, fully responsive down to 360px, accessible, and keyboard-driven.
No dependencies, no build step.
git clone https://github.com/kasapdev/countdown-widget-pro.git
cd countdown-widget-proThen simply open index.html in any modern browser (double-click it, or file:// it). That's it.
- Fill in a Label, target date/time, and pick a timezone mode.
- Choose a visual theme, accent color, and digit size — the live preview updates instantly.
- Set the message shown when expired and whether to show unit labels.
- Click Generate Snippet (or press Ctrl/⌘+Enter).
- Copy the snippet into your page's HTML, or Download it as a ready-to-open standalone file.
| Action | Shortcut |
|---|---|
| Generate snippet | Ctrl/⌘ + Enter |
| Download snippet | Ctrl/⌘ + S |
| Show shortcuts help | ? |
| Close dialog | Esc |
Screenshots coming soon.
- Additional themes and a fully custom color builder
- Optional confetti / celebration animation on expiry
- Multiple simultaneous countdowns on one exported snippet
- Recurring countdowns (e.g. "next Friday at 5pm")
- Localized unit labels (translations)
MIT Licensed.
One of 45+ zero-dependency vanilla JS tools, all free and open source — see the full list.