ClockCC clockcc.com

World time · Time zone converter · Weather · Holidays · Exchange rates · City guides

Open the widget configurator →

How to Embed a Clock Widget in Any Website (HTML)

If you edit HTML directly — your own site, a static host like Netlify, Vercel or GitHub Pages, or a hand-built page — there is nothing between you and the widget: paste the iframe where it should appear.

Widgets that work here

All nine ClockCC widgets work on this platform: the single-city clock, the minimal digital clock, the analog dial, the clock wall, the event countdown, the moon-phase widget, the split-flap clock, the inline badge and the wide bar. Build yours in the configurator — every configuration gets its own clean widget link and iframe code.

Free, no account, no key. The small line at the bottom of each widget links back to ClockCC — please keep it; it is what keeps the widgets free.

Step by step

  1. Build your widget in the ClockCC configurator and copy the iframe code.
  2. Open the page's HTML and paste the iframe code where the clock should appear — inside the element that should contain it.
  3. Save and reload. To restyle later, change the width/height attributes or regenerate the code in the configurator.
  4. Check the published page (not just the editor) on desktop and phone — that is what your visitors get.

Good to know before you start

  • The iframe is self-contained: it loads once, syncs with server time, then runs on its own — no scripts from this site run in your page, and nothing is tracked.
  • Keep the width and height from the configurator's fixed tiers: they are measured so the clock is never cut off at any size.
  • One honest limit: these widgets cannot be embedded in Medium, Substack, WeChat Official Accounts, Xiaohongshu or Zhihu — those platforms do not allow custom HTML or iframes at all, so no clock widget from anyone works there.

Open the widget configurator →

All platform guides

From this site

🎉 Live countdowns to the world's festivals

Spring Festival, Christmas, Easter, Diwali, the next daylight-saving change and more — each with its own page and a shareable countdown card.

See the countdowns →

From this site

🧰 Free time tools, all in one toolbox

Exact time with milliseconds, a Unix timestamp converter, stopwatch, countdown timer, duration and week & age calculators.

Open the toolbox →

Data sources: Open-Meteo (weather) · ExchangeRate API (exchange rates, hourly/daily updates) · Nager.Date (holidays) · Wikipedia (On This Day) · GeoNames (data-layer city basics, CC BY 4.0)