Skip to main content

Embeddable Timezone Widget

Add a live timezone converter to any webpage with one line of HTML. No sign-up, no API key, no framework. The widget shows current times in both cities, updates every minute, and includes a branded link back to the full converter.

  • ·No dependencies — pure JavaScript, under 3 KB gzipped
  • ·Works on any static HTML page, blog, or CMS
  • ·50+ supported timezone pairs (city and abbreviation)
  • ·Live times — updates every 60 seconds in the browser
  • ·Accessible markup with ARIA labels

Live Demo

These previews use the same logic as the embed script — live times, updating every minute.

City pair — data-route="new-york-london"

<script src="https://timezonecast.com/widget.js" data-route="new-york-london"></script>

Abbreviation pair — data-route="est-pst"

<script src="https://timezonecast.com/widget.js" data-route="est-pst"></script>

Asia pair — data-route="los-angeles-tokyo"

<script src="https://timezonecast.com/widget.js" data-route="los-angeles-tokyo"></script>

How to Embed

Paste the script tag anywhere in your HTML body. Replace new-york-london with any supported route from the table below.

<!-- Place anywhere in your page body -->
<script src="https://timezonecast.com/widget.js" data-route="new-york-london"></script>

The widget renders inline at the position of the script tag. You can place multiple widgets on the same page with different routes — the CSS is only injected once.

<!-- Multiple widgets on one page -->
<p>Our London team: <script src="https://timezonecast.com/widget.js" data-route="new-york-london"></script></p>
<p>Our Singapore team: <script src="https://timezonecast.com/widget.js" data-route="new-york-singapore"></script></p>

If a route is not recognised, the widget renders a plain-text error message — no broken layout, no console errors.

Supported Routes

City pairs

data-routeFromToConverter
new-york-londonNew YorkLondonnew-york-to-london-time
london-new-yorkLondonNew Yorklondon-to-new-york-time
los-angeles-tokyoLos AngelesTokyolos-angeles-to-tokyo-time
tokyo-los-angelesTokyoLos Angelestokyo-to-los-angeles-time
new-york-berlinNew YorkBerlinnew-york-to-berlin-time
berlin-new-yorkBerlinNew Yorkberlin-to-new-york-time
san-francisco-londonSan FranciscoLondonsan-francisco-to-london-time
london-san-franciscoLondonSan Franciscolondon-to-san-francisco-time
new-york-los-angelesNew YorkLos Angelesnew-york-to-los-angeles-time
chicago-londonChicagoLondonchicago-to-london-time
toronto-londonTorontoLondontoronto-to-london-time
sydney-new-yorkSydneyNew Yorksydney-to-new-york-time
singapore-londonSingaporeLondonsingapore-to-london-time
london-dubaiLondonDubailondon-to-dubai-time
london-tokyoLondonTokyolondon-to-tokyo-time
new-york-singaporeNew YorkSingaporenew-york-to-singapore-time

Abbreviation pairs

data-routeFromToConverter
est-pstNew YorkLos Angelesest-to-pst
pst-estLos AngelesNew Yorkpst-to-est
est-gmtNew YorkLondonest-to-gmt
gmt-estLondonNew Yorkgmt-to-est
est-cetNew YorkParisest-to-cet
cet-estParisNew Yorkcet-to-est
est-istNew YorkMumbaiest-to-ist
ist-estMumbaiNew Yorkist-to-est
pst-gmtLos AngelesLondonpst-to-gmt
gmt-pstLondonLos Angelesgmt-to-pst
utc-estUTCNew Yorkutc-to-est
utc-pstUTCLos Angelesutc-to-pst
jst-estTokyoNew Yorkjst-to-est
jst-pstTokyoLos Angelesjst-to-pst
sgt-gmtSingaporeLondonsgt-to-gmt
gmt-sgtLondonSingaporegmt-to-sgt

Related Tools