WorldClock.jp uses cookies for analytics and advertising. See About WorldClock.jp for details.

Skip to main content
WorldClock.jp

Embed Widget

Put the WorldClock.jp world clock straight onto your own site. The seconds keep ticking, and each card shifts through morning, day, evening and night as the hours pass — and you can drop that clock into the middle of an article or a sidebar with a single line of code. Line up as many as six cities, and choose the look, the arrangement and the colors to match the page you are pasting into.

Choose cities (up to 6)

East Asia

Southeast & South Asia

Europe

Middle East

Africa

North America

Latin America

Oceania

Other

Display order

  1. 1Tokyo

Cities appear in the order you picked them. Use ↑↓ to reorder. Vertical follows this order from top to bottom, horizontal from left to right.

Display mode

Colors

“Auto” follows the dark mode setting on the visitor’s device. On a light page, though, visitors who use dark mode will see a dark clock standing out on its own. Pick “Light” or “Dark” to lock the colors to the page you are pasting into.

Widget language

The language used for city names, dates and weekdays in the widget. It is fixed to what you choose here regardless of the visitor’s settings, so pick the language of the page you are pasting into.

Fields to show

Fields you turn off are left out of the widget, and the height shrinks to match. Which fields are available depends on the display mode. “Difference from home city” is never shown, because an embedded widget has no home city.

Time and date format

The format you pick here is fixed in the embed code. Your own display settings on WorldClock.jp are not applied, so the look you choose stays the same for every visitor. In analog mode, the seconds setting controls the second hand and the 24-hour setting applies to the digital time shown alongside the dial.

Arrangement

Vertical fills each column from top to bottom and moves to the next column when a column is full, so you choose the number of columns here. Horizontal fills each row from left to right and wraps to a new row when the width runs out, so the width decides how many fit per row and the number of rows follows automatically.

These settings produce 300 × 241 pixels.

The width is set automatically to fit the cities and fields you chose, with a little room to spare — text is slightly wider on some phones and computers than others. Typing a number turns this off and keeps the width you entered.

Preview

Embed code

Copy the code below and paste it into your HTML.

<iframe src="https://worldclock.jp/widget/en/tokyo/" width="300" height="241" style="border:0;border-radius:8px;" loading="lazy" title="Tokyo — WorldClock.jp"></iframe>

How to install

  1. Choose the cities, display mode, arrangement and width, and check the preview.
  2. Press “Copy code” to copy the embed code.
  3. Paste it into the HTML where you want the clock. In WordPress use a “Custom HTML” block; in other editors switch to HTML editing first.
  4. Open the page and check that the clock is running.

Before you paste

  • The width and height in the code are calculated from the settings on this page. Editing those numbers afterwards changes how the cards wrap, which leaves gaps or cuts the clock off. To resize, change the settings here and generate the code again.
  • The “Powered by WorldClock.jp” line at the bottom of the widget is a condition of use. It lives inside the iframe so it cannot be removed by accident — please do not hide it with CSS either.
  • You can place several embeds on one page. Generate a separate code for each set of cities.
  • The clock shows the local time in each city, not the time on the visitor's device, and daylight saving changes are applied automatically.
  • Colors follow the visitor's dark mode setting, so the widget stays readable on both light and dark pages.
  • To keep phones tidy, pick a width narrower than the article area you are pasting into.

Your choices are saved in this browser, so next time you open this page you start from the same settings. Use the button below to reset them to the defaults.