Sleep Timer with Music
Rain or ocean that plays while you fall asleep and fades out on its own.
The whole point of a sleep timer is that it ends without you noticing. This one fades the bed out over four seconds rather than cutting it, and the alarm can be muted entirely from the header if you only want the sound to stop. Forty-five minutes suits most people — long enough to get to sleep, short enough that the sound is not still running at 3am.
Space start/pause · R reset · +− adjust
Floating Picture-in-Picture needs a Chromium browser; this one doesn't support it.
Background sound
OffSteady rainfall against a window, with slow swells. Plays while the countdown runs and fades out at zero, so the alarm is never buried.
Quick Timers
More ways to run this timer
Proven Timer Pages
Browse every timer with rain, waves, fire and focus sound →Related Timers
Embed this timer
Paste this into any page — a class blog, a lesson plan, a meeting agenda — and visitors get a working sleep timer with music with no script tag, no account and no tracking. Please keep the credit link.
About the Sleep Timer with Music
A free sleep timer with background sound. Rain, ocean waves or brown noise play for the length you set and fade out gently instead of stopping dead, so nothing wakes you when the timer ends.
TimerHub calculates remaining time from an absolute finish timestamp, so missed browser callbacks do not create drift. Read the timing accuracy methodology and reproducible tests.
Common Uses
- Falling asleep to rain
- Masking street or neighbour noise
- Napping without oversleeping
- Winding down after a late shift
- Settling a restless evening
How to Use the Sleep Timer with Music
- Click Start (or press Space) to begin your 45 minute countdown
- Press Space again to pause and resume, or R to reset the timer
- Use the +/- buttons to adjust by 1 minute while running
- Toggle Repeat to loop the countdown automatically, and watch the finish time under the display
- Use the Fullscreen control below the timer for a large full-screen countdown (Esc to exit)
- Pick a background sound — rain, ocean, fireplace or brown noise — that fades out at zero
- Choose or mute the alarm sound from the sound settings in the header
- Add
?autostart=1to the link to start the countdown on load - Enable notifications for alerts when your sleep timer with music finishes, even in a background tab
Frequently Asked Questions
Can I stop the alarm from sounding at the end?▾
Yes — mute sounds with the speaker button in the header. The background bed still fades out at zero, so the room simply goes quiet instead of an alarm going off next to you.
Will my phone screen stay on all night?▾
Most phones dim and lock on their own schedule, and the countdown keeps running from an absolute finish time regardless. If you want the sound to run uninterrupted, plug the phone in and keep the tab in the foreground.
Where does the music come from — is it a YouTube video?▾
Neither. Every background sound is generated live in your browser with the Web Audio API. Nothing streams, nothing buffers, there are no ads or mid-roll breaks, and the sound never loops back on itself because it is never the same two seconds running.
Does the sound stop when the timer finishes?▾
Yes. The background bed fades out over about four seconds as the alarm sounds, so you always hear the end of the countdown. Pausing the timer fades the sound out too, and resuming brings it back.
Can I use the background sound without the visual backdrop?▾
Yes. The backdrop is a separate toggle in the background sound panel. Turn it off for a plain black screen, or leave it on and switch to fullscreen for a full-screen rain window, starfield, or ember drift behind the countdown.
Will it keep playing if I switch tabs?▾
The countdown keeps running from an absolute finish time, so it stays accurate in a background tab. Browsers may throttle audio in hidden tabs, so keep the tab visible — or in a Picture-in-Picture float — if you want unbroken sound.