Online Alarm Clock
An alarm set for 6:30 AM at 11:15 PM rings in 7 h 15 min. Add as many named alarms as you like in 12-hour or 24-hour time, repeat them on chosen days, snooze for 5 and 10 minutes and pick a tone. An online alarm only rings while this page stays open in a browser on a device that is awake, so keep the tab open and, if you can, turn on “Keep the screen on”.
Updated By ponderloop editorial · How we checkRuns in your browser: nothing you enter is uploadedHow this tool works
Current time
--:--:--
The live clock starts when JavaScript loads.
Keep this tab open and the device awake: an alarm can only ring while this page is running. Sound starts after your first click or key press on the page.
Add an alarm
Your alarms
No alarms yet. Add one above; it will ring while this page stays open.
Sound and screen
Alarms and settings are saved in this browser only. Nothing is sent anywhere.
How long until my alarm?
Rings in 7 h 15 min
An alarm set for 6:30 AM at 11:15 PM rings in 7 h 15 min, after midnight.
- Time until the alarm
- 7 h 15 min
- Alarm time
- 6:30 AM (06:30)
- Current time
- 11:15 PM (23:15)
- Rings
- tomorrow
- In minutes
- 435 min
The working
- 6:30 AM is 390 minutes after midnight; 11:15 PM is 1395 minutes after midnight.
- The alarm time has already passed today, so it rings tomorrow: 390 + 1440 − 1395 = 435 minutes.
- 435 minutes = 7 h 15 min.
Time until an alarm: examples
| Current time | Alarm time | Rings in | Rings |
|---|---|---|---|
| 11:15 PM | 6:30 AM | 7 h 15 min | tomorrow |
| 10:00 PM | 6:00 AM | 8 h | tomorrow |
| 12:00 AM | 7:00 AM | 7 h | today |
| 3:20 PM | 7:00 PM | 3 h 40 min | today |
| 6:29 AM | 6:30 AM | 1 min | today |
| 9:45 AM | 9:45 AM | 24 h | tomorrow |
| 11:59 PM | 12:01 AM | 2 min | tomorrow |
12-hour and 24-hour time
| 12-hour | 24-hour | In words |
|---|---|---|
| 12:00 AM | 00:00 | Midnight, the start of the day |
| 1:00 AM | 01:00 | First hour after midnight |
| 6:30 AM | 06:30 | A typical wake-up time |
| 12:00 PM | 12:00 | Noon |
| 1:00 PM | 13:00 | First hour after noon |
| 6:00 PM | 18:00 | Evening |
| 10:00 PM | 22:00 | Late evening |
| 11:59 PM | 23:59 | The last minute of the day |
How to set an online alarm
- Type the time. Enter the alarm time under “Add an alarm” as 6:30 AM or 18:30, add a name such as “Work”, and tick the days it should repeat. With no day ticked it rings once.
- Pick a tone and add it. Choose one of the tones (beeps, chime, bell, rising, two-tone), press Play to hear it, then press Add alarm. The first click or key press also allows sound, which browsers require.
- Keep the page open. Leave this tab open on a device that stays awake. Turn on “Keep the screen on while an alarm is set” and plug the device in if you can; the list shows how long each alarm has to ring.
- Snooze or dismiss. When an alarm rings the page flashes, the tab title changes and the sound plays. Snooze for 5 and 10 minutes or dismiss it; a repeating alarm then waits for its next day and a one-time alarm switches itself off.
Frequently asked questions
- Does the alarm work when the screen is off or the tab is closed?
- It cannot ring if the tab is closed or the browser is shut down, because the alarm is a web page and nothing runs once it is gone. A tab that is open but in the background normally still rings, because the tone is booked on the browser’s audio clock ahead of time, and a locked screen can mean the device sleeps and everything stops. That is why there is a “Keep the screen on” switch: the screen then stays lit while an alarm is set. If the device sleeps or the page is closed past an alarm’s time, the alarm is marked missed and does not ring late. For anything you cannot afford to miss, use the alarm built into your phone or watch as well.
- Does it work on an iPhone?
- Only with limits. Safari on iPhone suspends web pages and their sound when the screen locks or you switch apps for long, the silent switch mutes web page sound, and web notifications on iPhone are limited to sites added to the Home Screen and need a push service this page does not use. Keeping the screen on through the Screen Wake Lock option works on recent versions of iOS (16.4 and later). So an iPhone can ring this alarm only while Safari is open on the page, the screen is on and the ringer is up. Use the Clock app for a real wake-up alarm.
- How loud is the alarm, and can I change the sound?
- The tones (beeps, chime, bell, rising, two-tone) are generated in your browser, so there are no audio files and they work offline once the page has loaded. Loudness follows the Volume slider here and your device’s own volume, and the tone does not get louder by itself. Use “Turn sound on and test” before relying on it. The sound plays for up to 60 seconds; the page keeps flashing until you dismiss the alarm.
- What does snooze do?
- Snooze silences the alarm and rings it again after 5 and 10 minutes, whichever button you press. A repeating alarm keeps its normal schedule afterwards, so snoozing today does not move tomorrow’s alarm. Dismissing instead ends the alarm: a one-time alarm switches itself off.
- Is an alarm for the time it is now set for tomorrow?
- Yes. An alarm for the current minute rings a full day later: set for 9:45 AM at 9:45 AM it rings in 24 h, and set one minute ahead it rings in 1 min. An alarm for noon set at midnight rings in 12 h.
- How do alarms behave when the clocks change for daylight saving?
- Alarms follow the wall clock of your device, so 6:30 AM stays 6:30 AM. “Rings in” counts real elapsed time, so on the night the clocks go forward an alarm is an hour closer than the clock difference suggests, and an hour farther on the night they go back. A time inside the hour that is skipped (such as 2:30 AM when the clocks jump from 2:00 to 3:00) rings at the first moment after the gap; a time inside the repeated hour rings the first time it occurs.
- Which time zone does it use?
- The one your device is set to. The big clock shows its short name under the date. If you travel, alarms follow the device’s new zone; to compare other cities, use the time zone converter.
- Is anything I enter sent to a server, and how many alarms can I save?
- No. Alarm names, times and settings stay in this browser’s local storage (up to 20 alarms), and nothing you type is uploaded. Anonymous usage statistics record only which button was pressed. “Remove all alarms and saved data” deletes everything, and clearing the site data in your browser does too. Notifications are off until you turn them on, and the browser’s permission prompt appears only then.
How it works
Each alarm is stored as a wall-clock time and the moment it next rings, found with the device’s local date and time (the first matching time after now on one of the chosen days). The “Rings in” text is the real elapsed time from the start of the current minute to that moment. The page checks the clock once a second and also when the tab becomes visible again; because background tabs run timers slowly, each coming alarm is also booked on the Web Audio clock, which is not throttled, and the tone plays on time even then. An alarm found more than five minutes late (a sleeping device) is marked missed instead of ringing. Tones are short oscillator patterns made with the Web Audio API, with no audio files; sound starts only after a click or key press, as browsers require. The screen is kept on with the Screen Wake Lock API where it exists. The calculator part is plain arithmetic on minutes after midnight: the alarm minute minus the current minute, plus a day when the result is zero or negative.
To set an alarm from a 24-hour time, convert military time to 12-hour; to check how long you will sleep, calculate the hours between two times.
Sources
- MDN: Screen Wake Lock API
- MDN: Web Audio API
- MDN: Autoplay guide for media and Web Audio APIs
- MDN: Notification.requestPermission()
- MDN: why timers in background tabs run late
- WebKit: WebKit features in Safari 16.4
- WebKit: Web Push for Web Apps on iOS and iPadOS
- ISO 8601: date and time format (24-hour clock)
More free tools
- Online TimerFree online timer with alarm: run several named timers at once, quick presets, Pomodoro mode, +1 min, full screen and notifications.
- Pomodoro TimerFree Pomodoro timer: 25-minute focus sessions, 5-minute breaks and a long break every 4 sessions. Editable lengths, auto-start, session counter, alarm.
- World ClockSee the current local time in cities around the world: live clocks, UTC offsets, daylight saving badges, day or night, and a slider to compare times.
- Months Between Dates CalculatorHow many months between two dates? Whole months plus leftover days, fractional months, and a lease or billing-cycle mode with month-end dates explained.
- How Long Ago CalculatorHow long ago was a date? Years, months and days since any date, plus the total in days, weeks, hours and minutes. Also counts the time until a future date.
- Days Between DatesHow many days between two dates? Enter a start and end date for the days, weeks, months and business days, plus worked examples and a leap-year note.