Widget
Free time zone clock widget for your website
Show your readers the live time in two cities and the difference between them. Pick the cities, copy one snippet, paste it into your page. It updates every second, follows daylight saving time and never tracks anyone.
Preview
Your snippet
How it works
The snippet is an <iframe> with a one-line credit link underneath. The iframe loads a small,
self-contained page that computes both clocks in the reader's browser. Nothing is sent back to us or anyone else.
| Parameter | Values |
|---|---|
| from, to | City slugs, e.g. new-york, london |
| theme | light (default), dark or auto |
| hours | 24 or 12; leave it out to follow the reader's choice |
Questions people ask
Is the time zone widget free?
Yes. Copy the snippet and paste it into any page that accepts HTML. There is no sign-up and no API key.
Does the widget track my visitors?
No. It sets no cookies, loads no analytics and makes no requests to third parties. It only loads its own script and the city list from timedifferencebetween.com.
Does it handle daylight saving time?
Yes. The widget computes both clocks in the reader's browser from the IANA time zone database, so it is right before, during and after every clock change.
Can I change the size?
Change the width and height attributes of the iframe. The widget adapts to widths from about 300 pixels.
Which cities can I use?
Any of the more than 5,000 cities in our list, by slug: new-york, london, san-francisco, tokyo and so on. The configurator on this page suggests them as you type.