Home › Time & Date › Clock Widget Generator

Clock Widget Generator

Build a live analog or digital clock for your website, blog, Notion page or stream overlay. Choose the time zone, dial, colors and 12- or 24-hour format, watch the preview tick, then copy a tiny self-contained HTML snippet, an iframe or a link.

Last updated:

1. Clock & time zone Clock type
Popular zones

2. Display
3. Colors Color themes

Live preview

Advertisement
Advertisement

How to use the Clock Widget Generator

  1. Pick the clock type: analog, digital, or both together.
  2. Choose the time zone: a specific city such as New York or Tokyo, or Visitor's time to show each reader their own local time. Add an optional label like "London office".
  3. Set the display: dial style, digital style, size, font, 12/24-hour format, seconds, date and zone name.
  4. Style it: click a color theme or set your own colors and corner radius; the live preview updates instantly.
  5. Copy the embed: use HTML + JS for websites, iframe where scripts are blocked, or the Link tab for Notion, then paste it into your page.

Which clock style fits where?

UseSuggested setupWhy
Business "our local time" boxDigital, named city, 12-hour, seconds off, zone name onCustomers instantly see whether you are open; the zone abbreviation (EST/EDT) removes doubt.
Remote team pageSeveral small digital clocks, one per officeScannable at a glance; each snippet is independent.
Classroom or teaching pageAnalog, numbers 1–12, large, seconds onFull numerals and a moving second hand help students read an analog face.
Blog sidebar or footerAnalog, tick marks or dots, small, transparent backgroundDecorative and calm; blends into any theme.
Live stream overlay (OBS)Digital tiles, transparent background, Link tabAdd the link as a Browser Source; transparency keeps the scene visible behind it.
Notion dashboardAnalog + digital, medium, date onOne embed gives a clock face, exact time and today's date.

How the widget tells the time

The clock reads the current moment from the visitor's device (Date.now(), milliseconds since 1 January 1970 UTC) and converts it to the chosen zone with the browser's built-in Intl.DateTimeFormat and the IANA time zone database. Because the zone is stored by name, such as Europe/London, rather than as a fixed offset, the clock follows daylight saving and any future rule changes your visitors' browsers learn about.

The analog hands use the standard angles, measured clockwise from 12:

  • Second hand = seconds × 6° (360° ÷ 60)
  • Minute hand = (minutes + seconds ÷ 60) × 6°
  • Hour hand = (hours mod 12 + minutes ÷ 60) × 30° (360° ÷ 12)

So at 3:30 the hour hand sits at 105°, exactly halfway between the 3 and the 4, just like a real wall clock. With the smooth sweep option the second hand also includes milliseconds and glides instead of jumping.

Tips for a clean-looking clock

  • Turn seconds off for business-hours clocks; a ticking number draws attention away from your content.
  • Label the location ("Head office, Denver") when the zone name alone could confuse visitors.
  • Use 24-hour time for international audiences and schedules to avoid AM/PM mix-ups.
  • Check contrast with the Dark and Grid preview backgrounds before using a transparent background.
  • Keep one snippet per clock. Each has a unique ID, so copying the same code twice on one page shows only the first clock; generate a new one instead.

Frequently asked questions

How do I add a clock to my website?

Design the clock, stay on the HTML + JS code tab and press Copy code. Paste it into a Custom HTML block (WordPress), Code block (Squarespace), Embed HTML element (Wix), Embed element (Webflow) or straight into your page's HTML. The clock starts ticking as soon as the page loads; no files or accounts are needed.

Does the clock widget handle daylight saving time?

Yes. The widget never hard-codes an offset. Every second it asks the visitor's browser what time it is in the chosen IANA time zone (for example America/New_York), and browsers ship an up-to-date time zone database, so the switch between standard and daylight time happens automatically on the correct date.

What does the 'Visitor's own local time' option do?

Instead of one fixed city, the clock shows whatever time zone the visitor's device is set to, so a reader in Chicago sees Central time and a reader in Paris sees Central European time. Choose a named zone instead when the clock should show your office, store or event location for everyone.

How accurate is the clock?

It is as accurate as the visitor's device clock, which on phones and most computers is synchronized automatically over the internet and is usually within a fraction of a second of official time. The widget re-reads the time on every tick rather than counting on its own, so it never drifts even if the tab was asleep.

Can I put several clocks for different cities on one page?

Yes. Generate one clock per city and paste each snippet; every snippet gets its own random ID and scoped CSS, so they don't interfere. For a quick office wall of time zones, the Small size with the digital style fits three or four clocks side by side.

How do I add a clock to Notion?

Open the Link (Notion) tab and press Copy link. In Notion, type /embed, paste the link and choose Embed link, then drag the block's edges to fit. All settings are stored inside the link, so nothing is saved on a server and the clock keeps working.

Does the widget use cookies or slow my page down?

No cookies, no tracking and no external requests. The snippet is a few kilobytes of HTML, CSS and plain JavaScript that updates the display once per second (or with the browser's animation frame if you turn on the smooth sweeping second hand, which pauses automatically in background tabs).

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Countdown Widget GeneratorDesign an embeddable countdown and copy HTML code or an iframe link for your website or Notion.World ClockCurrent time in cities worldwide with day and night shading and saved clocks.Analog ClockLive analog clock with a smooth sweeping second hand, Roman numerals, themes and full screen.Digital Clock with SecondsBig exact-time clock with seconds, 12/24h, time zones and a sync check.Time Zone ConverterCompare time zones and plan meetings.UTC Time NowLive UTC and GMT clock with ISO 8601, Unix time and an offset converter.Online Clock (Full Screen)Big full-screen digital and analog clock with 12/24h, date and themes.Flip ClockA full-screen retro flip clock with 12/24-hour time, seconds, date and dark display.Daylight Saving Time DatesSee when daylight saving time starts and ends in the US, UK, EU, Australia and NZ.CST to EST ConverterConvert Central time to Eastern time for any date, with live clocks and a 24-hour table.EST to IST ConverterConvert US Eastern time (EST/EDT) to India time (IST) for any date, with live clocks.EST to PST ConverterConvert Eastern time to Pacific time for any date, with live clocks and an hourly table.GMT to EST ConverterConvert GMT or UK time to US Eastern time for any date, with live clocks and a 24-hour table.IST to EST ConverterConvert India time (IST) to US Eastern time for any date, with live clocks and an hourly table.PST to EST ConverterConvert Pacific time to Eastern time for any date, with live clocks and an hourly table.Current Time in ArizonaLive clock for Arizona (MST all year, no DST) with time difference, sunrise and a converter.Current Time in CaliforniaLive Pacific Time clock for California with PST/PDT, time difference, sunrise and a converter.Current Time in ChinaLive Beijing Time clock: date, UTC+8, sunrise/sunset and the time difference from you.Current Time in DubaiLive clock for Dubai (UTC+4) with date, time difference, sunrise, sunset and a converter.Current Time in IndiaLive India time (IST, UTC+5:30) with date, your time difference, sunrise/sunset and a converter.Current Time in JapanLive Japan clock (JST, UTC+9) with date, era year, time difference, sunrise/sunset and converter.Current Time in LondonLive London time (GMT/BST) with date, UTC offset, DST dates, sunrise/sunset and a converter.Current Time in New YorkLive New York clock with date, EST/EDT offset, DST status, sunrise/sunset and a converter.Current Time in the PhilippinesLive Manila clock for the Philippines (UTC+8) with time difference, sunrise and a converter.Current Time in SydneyLive clock for Sydney, Australia with AEST/AEDT, time difference, sunrise and a converter.UTC to EST ConverterConvert UTC (Zulu) time to US Eastern time for any date, with live clocks and a 24-hour table.Shot ClockBasketball shot clock with 24/14, 30/20 or custom resets, buzzer, tenths, shortcuts and fullscreen.Area Code Time Zone LookupEnter a US or Canadian area code to see its state, time zone and current local time.Clock Accuracy CheckerCheck how many milliseconds your device clock is ahead or behind and see the exact time.Exam ClockBig classroom exam clock: current time, start and finish times, time left, reading time and warnings.Online Punch ClockClock in and out with breaks, a live shift timer, weekly hours, overtime and CSV export.Time Zone MapInteractive world time zone map: click any country for its zone, UTC offset, local time and DST dates.US Time Zones MapMap of US states by time zone with live clocks for Eastern, Central, Mountain, Pacific, Alaska and Hawaii.Current Time in ChicagoLive Central Time clock for Chicago with CST/CDT, time difference, sunrise/sunset, converter.Current Time in TexasLive Central Time clock for Texas with CST/CDT, time difference, sunrise/sunset and converter.
See all 35 Time Zones & World Clocks →