World Clock

New

Show the time in several cities at once. Choose your cities, then show them as digital cards, small analog faces or a compact list, with day and night and the difference from each visitor's own time. Copy the code and paste it into your page. The clock is plain HTML, CSS and a little JavaScript, with nothing loaded from xorbin.com.

Live preview
Embed code

Everything happens in your browser. The code is self-contained: it doesn't load anything from xorbin.com and doesn't track your visitors. The share link keeps your settings in the part of the address after #, which is never sent to a server.

How to add the world clock to your website

  1. Open a city under Cities and set its name and time zone. Use the arrows to reorder cities, ✕ to remove one, and + Add city for more.
  2. Choose the style, time format and colors. The preview updates as you go.
  3. Click Copy code.
  4. Paste it into your page as HTML, where the clock should appear.
  • WordPress: add a Custom HTML block and paste the code.
  • Shopify: add a Custom Liquid section in the theme editor.
  • Wix: use Embed code → Embed HTML.
  • Squarespace: add a Code block.
  • Webflow: drag in an Embed element.
  • Plain HTML: paste the code where the widget should appear.

To come back to your design later, click Copy share link and save the link. Opening it restores every setting.

Features

Three styles

Digital cards for a section of a page, analog faces for a classic look, or a compact list for a sidebar or footer.

Always correct

The time comes from the visitor's device and the browser's time zone database, so daylight saving changes are handled for every city. Nothing is loaded from a server.

Day and night

A sun or moon shows whether it's day in each city, and cards can turn dark at night, so visitors see at a glance who is awake.

Time difference

Each city can show how far ahead or behind it is from the visitor, such as +2h or −5h30, and the weekday when it's already tomorrow there.

Ideas for using it

  • Remote teams: show where your colleagues are and whether they're in working hours.
  • Customer support: show the time at your offices next to your opening hours.
  • Travel and events: show the local time at a destination or venue.
  • Trading and news: show the time in major market cities.

Choose Visitor's own time zone for a city to add a card with the visitor's own time, for comparison.

Frequently asked questions

Does it handle daylight saving time?

Yes. The clock works out each city's offset every time it updates, using the time zone rules built into the browser, so it changes on the right day in every country.

Where does the time come from?

From the visitor's device clock. Phones and computers sync it automatically, so it's accurate to the second for almost everyone. If someone's device clock is wrong, the widget shows the same wrong time.

Why is the weekday in another language?

The weekday follows your page's language, set by the lang attribute on the <html> tag. Without it, the visitor's browser language is used.

Can I name a city differently from its time zone?

Yes. The name is free text, so you can write "Head office", "Support team" or a city that shares a time zone with a bigger one, such as Kaunas in Europe/Vilnius.

Can I remove the Xorbin credit?

Yes. Turn off the credit link under Credit before you copy the code. It changes nothing else.

Further reading

Last updated:

© 2008–2026 XORBIN.COM. All rights reserved.