Sleep Sounds — White, Pink, Brown
Sleep sounds with continuous white, pink and brown noise plus 15–60 minute timers and gentle fade-out. Mask night noise. Free in your browser, no download.
Tool controls
Protect your hearing. Start at a low volume. Never raise the volume to make a tone audible. Levels are shown in dBFS, relative to full scale — not SPL.
How it works
White, pink, and brown noise is synthesized live in your browser using an AudioWorklet without looping or streaming. The sleep timer employs sample-accurate hardware AudioParam automation to execute a 30-second gentle fade-out down to complete silence.
On this page
Sleep sounds play continuous white, pink or brown noise synthesized live in your browser with the Web Audio API, with 15, 30 and 60-minute timers and an automatic 30-second fade-out. Nothing is streamed, nothing is stored, and playback continues if the connection drops.
How to use it
- Choose a noise colour. Three cards select White Noise (0 dB per octave), Pink Noise (−3 dB per octave) or Brown Noise (−6 dB per octave, the default).
- Set a timer. The pills select 15, 30 or 60 minutes, or Continuous (Off) for playback that runs until you stop it. The default is 30 minutes.
- Press Play sleep sounds. The status badge changes to Active sleep timer and the countdown ring shows the time left. A 1.5-second fade-in keeps the start from being abrupt.
- Trim the level. The volume slider runs from 0.01 to 0.8 linear gain with a dBFS readout, and a warning appears above the 0.45 safety limit (about −6.9 dBFS). Start lower than you think you need.
- Warm the tone if white noise hisses. The Bedtime Warmth Filter applies a low-pass at 3.5 kHz, rolling off the top end for sensitive ears.
- Leave it running. Bedside Night View dims the screen to a large bedside clock; tap the overlay to return. Download WAV Loop renders a 10-second stereo file for offline players and flights.
Masking: why a steady noise floor helps
Sleep noise works by masking rather than soothing: a steady broadband floor raises the ambient level in the room, so sudden sounds arrive with far less contrast against the background. A car door or a barking dog wakes people mainly through its suddenness, the step change from quiet to loud, not through absolute level. A smooth, continuous spectrum reduces that step change, which is why the noise can sit at a low, unobtrusive level while still doing the work.
The three colours are one noise source shaped by different filters, not three different recordings. That matters when you pick one: the spectrum, not the mood label, decides which sounds get masked. Equal-loudness behaviour (ISO 226) also means low-frequency energy must be stronger before it sounds as loud as midrange energy, so brown noise at the same level sounds softer and deeper than white.
| Noise colour | Spectral slope | Character | Masks best |
|---|---|---|---|
| White | 0 dB/octave, equal energy per hertz | Bright hiss, like TV static | Sharp high-frequency transients: horns, clatter, cutlery |
| Pink | −3 dB/octave, equal energy per octave | Steady rain or wind | Speech and broadband room noise; a middle setting for most rooms |
| Brown | −6 dB/octave, energy concentrated low | Deep rumble, waterfall, jet cabin | Low-frequency traffic rumble, footsteps, voices through walls |
The timer and the fade-out
The fade-out is the point of the timer: a hard cut to silence can wake you, because the auditory system reacts to the change even while you sleep. The engine schedules that fade on the audio clock through AudioParam automation rather than a JavaScript timer, so it stays smooth when the tab is busy or the screen is dark. Every preset ends with a 30-second glide to zero; stopping manually releases the sound in 0.4 seconds instead.
- 15 minutes (900 s): a nap or a short settling period.
- 30 minutes (1800 s): the default; enough time to fall asleep inside the fade.
- 60 minutes (3600 s): slow sleep onset or noisy neighbours.
- Continuous (Off): no fade at all; the badge reads “Playing continuous”.
Keeping the level sane
A practical calibration beats a number on a slider: set the volume so a normal conversation at arm’s length would still be audible over the noise, and keep phone speakers at least a metre from the pillow. If you want the number, run the Decibel Meter at pillow height and aim for the low 50s to about 60 dBA. All-night sessions are the case to be careful with, because a sealed earbud can deliver the same level for eight hours; speakers are the safer choice.
Accuracy, limits and troubleshooting
- The tool synthesizes noise; it does not stream rain or ocean recordings. A “rain” character comes from the pink spectrum, not from a field recording, so do not expect individual droplets.
- dBFS is digital full scale, not dB SPL. The readout describes the signal the page generates; the sound pressure at your ear depends on the device, its volume setting and the distance to your head.
- The volume warning above 0.45 gain is a fixed gain limit, not a calibrated loudness measurement. Treat it as a nudge to check the level, not as a certified safety threshold.
- Offline playback works because the AudioWorklet runs locally. The Download WAV Loop button renders a 10-second stereo loop at your chosen colour and level for players that cannot run a browser tab.
- Background behaviour differs by platform. Desktop browsers keep the audio running in a background tab; on phones, locking the screen can suspend browser audio, so test your device before relying on it all night.
- The timer options are fixed at 15, 30 and 60 minutes, or continuous. There is no custom countdown field; the four pills are the whole set.
Related tools
- Noise Generator — the full noise lab with more colours, filters and level control.
- Brown Note — a dedicated deep brown-noise generator for low-frequency masking.
- Binaural Beats — slow-beat tones for relaxation experiments, which need headphones to work.
- Decibel Meter: measure the level at your pillow so the 60 dBA guideline becomes a real number.
Frequently asked questions
Which noise color is best for falling asleep?
It depends on your bedroom acoustic environment and personal sensitivity. Pink noise has equal energy per octave (-3 dB/octave) and closely mimics rainfall or rustling leaves; clinical sleep studies associate it with improved slow-wave deep sleep and memory consolidation. Brown noise has an even steeper roll-off (-6 dB/octave) resulting in a warm, velvety rumble similar to a waterfall or distant jet cabin, which many people with ADHD or racing thoughts prefer. White noise has equal energy across all frequencies and is best for masking sharp, erratic sudden sounds like traffic horns, loud neighbors, or barking dogs.
Why is the timer fade-out important for sleep?
Human hearing remains vigilant during sleep. The brain's auditory cortex continues to process ambient sound and monitors for sudden environmental changes. If a sleep sound abruptly cuts out after 30 or 60 minutes, the sudden transition to silence triggers an acoustic startle response and micro-arousal that can wake you up. Our sleep sounds tool includes an automatic 30-second smooth fade-out at the end of every timed session, gently lowering volume to zero without disturbing your sleep cycle.
Is it safe to play noise all night while sleeping?
Yes, provided the volume is kept at a safe, moderate listening level. The American Academy of Pediatrics and audiology guidelines recommend keeping sleep sound machines below 60 dBA at the sleeper's ear level (roughly conversational speech volume or quieter). Avoid high volumes, especially when using headphones or earbuds in bed, to prevent auditory fatigue and protect your hearing.
Does this tool require an internet connection or audio streaming?
No. All sound is synthesized live in real time directly within your web browser using the Web Audio API and an AudioWorklet. No audio files are streamed, nothing is tracked or recorded, and audio playback continues seamlessly even if your device goes offline. You can also download a seamless offline WAV loop for air travel or offline sound players.
What does the Bedtime Warmth Filter do?
The Bedtime Warmth Filter applies a gentle low-pass filter rolling off high frequencies above 3.5 kHz. This eliminates harsh upper-frequency hiss from white or pink noise, creating a softer, warmer, womb-like acoustic texture that is particularly soothing for sensitive ears.
What is the best noise for sleep?
Pink noise suits most sleepers because its equal energy per octave mimics rain and stays gentle on the ears. Brown noise feels deeper and helps when traffic or voices break through, while white noise masks sharp sudden sounds best. Keep volume moderate, set a timer with fade-out, and switch colors if you wake mid-cycle.