Online Clock

A full-screen clock for your desk or wall display: Swiss-style analog face or digital readout, 12 or 24 hour, classic or LCD style, showing your local time.

The interactive tool loads here when JavaScript runs.

About this tool

What is Online Clock?

The Online Clock shows your current local time as a Swiss railway style analog face or as a large digital readout with the full date. In digital mode you can switch between 12 and 24 hour time and between a classic monospace look and a green-on-black LCD style.

The fullscreen button turns any screen into a wall or desk clock: a spare monitor, a TV in a meeting room or a tablet on a stand. The clock is built from SVG and text, so it stays sharp at any size.

The time is your device's own clock in the time zone your operating system is set to. Nothing is fetched from a server.

  • Analog Swiss-style face and digital mode
  • 12 and 24 hour formats, midnight shown as 00
  • Classic and LCD digital styles
  • Fullscreen, sharp at any size
  • Updates in step with each real second
  • Uses your device clock; no network calls
Read the guide: Stopwatches, Countdown Timers and Clocks in the Browser: Why Time Drifts

Updated

How to use Online Clock

  1. Open the page; it starts in analog mode with your local time.
  2. Click the Digital button to switch modes, and Analog to switch back.
  3. In digital mode, toggle 12h or 24h Format and choose Classic or LCD Style.
  4. Click the expand icon for fullscreen; press Esc to exit.

Worked example

Same moment, two formats

Input

14:05:09 local time, 12h and 24h

Output

2:05:09 PM and 14:05:09

The 12-hour format drops the leading zero and adds AM or PM; 24-hour always uses two digits, and midnight shows as 00:05:09, never 24:05:09.

Background and insight

The analog face uses the classic geometry: the hour hand moves 30 degrees per hour plus 0.5 degrees per minute, the minute hand 6 degrees per minute, and the second hand 6 degrees per second. The second hand steps once a second rather than sweeping.

Updates are scheduled just after each whole second instead of every 1000 ms from whenever the page loaded. A plain one-second interval starting at a random moment can show each second up to almost a full second late, and drifts further as ticks are delayed; aligning to the next second keeps the display in step with your system clock.

The 24-hour format uses the h23 hour cycle, so midnight reads 00:00:00. Some older browser versions printed 24:00:00 when asked for hour12: false, which is a classic bug in clock pages.

Common use cases

  • Desk and wall display

    Leave a fullscreen clock on a second monitor or an old tablet.

  • Meeting rooms and studios

    Show a large clock on a TV during recordings, live streams or workshops.

  • Exams and classrooms

    Project the current time so everyone can see it.

  • Checking your system clock

    Compare the display against a phone or radio clock to see whether your computer clock is off.

Tips and limitations

  • If the time looks wrong by a whole hour, check your operating system time zone setting.
  • Keep the screen awake with your OS power settings; browsers may dim or sleep a display left on a static page.
  • The LCD style uses a seven-segment font only if one is installed; otherwise it falls back to a monospace font.
  • For other cities, use the World Clock, which shows several zones at once.

Sources and further reading

  1. Intl.Locale.prototype.hourCycle, MDN Web Docs. The h11, h12, h23 and h24 hour cycles
  2. Unicode Technical Standard #35, Part 4: Dates, Unicode Consortium. The CLDR hour symbols behind 00:00 versus 24:00
  3. Window: setInterval() method, MDN Web Docs. Why a plain one-second interval drifts and can be delayed

Frequently asked questions

Is the online clock time exact?

It shows your device's system time, which operating systems keep synchronised over NTP, usually to within a fraction of a second. The display updates just after each whole second. If your computer clock is wrong, the clock shows the same wrong time.

How do I make the online clock fullscreen?

Click the expand icon next to the Time and mode badges, or hover the clock and click the small expand button on it. The browser hides everything except the clock. Press Esc to leave fullscreen.

Can I switch the online clock to 24-hour time?

Yes. Switch to digital mode with the Digital button, then click the 12h Format button to toggle it to 24h. The analog face is always a 12-hour dial.

Which time zone does the online clock use?

Your operating system's time zone, as reported to the browser. To see another place, use the World Clock instead, which takes IANA zone names such as Europe/Paris and handles daylight saving time for each one.

Does the online clock drift if I leave it open for days?

No. Every update reads the system clock afresh instead of adding a second to the previous value, so nothing accumulates. After the screen sleeps or the tab is hidden, the next update shows the correct time straight away.

Is there an in-depth guide to Online Clock?

Yes. “Stopwatches, Countdown Timers and Clocks in the Browser: Why Time Drifts” covers the background, how it works, common pitfalls and worked examples. Read the full guide.