How to use the White Noise Generator
- Press Play. If you have not saved a mix yet, brown noise starts at a comfortable level.
- Raise the sliders for white, pink or brown noise and the nature sounds (rain, ocean, wind, fan, fire) to build your own blend, or tap a quick mix.
- Set the master volume low at first, then raise it until the noise just covers background sounds.
- Choose a sleep timer if you want the sound to fade out over the last minute and stop by itself.
- Leave the tab open. Playback continues in the background, and your mix is remembered next time.
What this white noise generator does
This page is a small noise machine that runs entirely in your browser. Nothing is streamed or downloaded: every sound is synthesised on your device with the Web Audio API from random numbers and filters. You can play one colour of noise on its own or layer several sounds, each with its own volume slider, and a master volume on top. Your mix and timer choice are saved in your browser, so the next visit starts where you left off.
White, pink and brown noise: what is the difference?
All three are random signals. They differ in how their energy is spread across frequencies, which changes how they sound.
| Noise | Spectrum | Sounds like |
|---|---|---|
| White | Equal power per hertz (flat) | Bright hiss, like an untuned radio or TV static |
| Pink | Power falls 3 dB per octave (1/f) | Fuller and softer, closer to steady rain or wind |
| Brown | Power falls 6 dB per octave (1/f²) | Deep rumble, like a distant waterfall or a plane cabin |
Because our hearing perceives pitch in octaves, white noise sounds hissy: the top octave alone (about 10–20 kHz) holds half of its energy. Pink noise has the same energy in every octave, which most people find more balanced. Brown noise pushes the energy further into the bass and is popular for sleep and concentration because it masks low rumbles without the hiss.
How the sounds are made
- White noise is a stream of independent random samples.
- Pink noise passes white noise through Paul Kellet's well-known “refined” filter, a set of seven parallel one-pole filters that approximates a −3 dB/octave slope to within a fraction of a decibel across the audible band.
- Brown noise is integrated white noise (a random walk). A tiny leak (the 0.997 factor, which flattens the slope only below about 20 Hz) keeps it from drifting away from zero.
The nature sounds are built from the same ingredients. Rain is band-limited pink noise with thousands of tiny, randomly timed droplet impacts. Ocean waves follow a surf envelope that rises over a few seconds and washes out slowly, opening a filter as each wave breaks. Wind sends noise through a resonant band-pass filter whose centre drifts with the gusts. The fan adds a subtle blade flutter and a faint motor hum to airflow noise, and the fireplace mixes a low roar with bursts of crackles and occasional pops.
Each sound is rendered as a stereo loop between 8 and 40 seconds long, with different random noise in the left and right channels for a wide, natural image. The end of each loop is crossfaded into its start, so there is no click where it repeats.
Using noise for sleep, focus and babies
Steady noise works by masking: a constant sound makes sudden changes, such as a door, traffic or a neighbour's TV, less noticeable. Research on noise and sleep is mixed, and steady noise is no substitute for treating insomnia or tinnitus with a professional, but many people simply find it relaxing. Some practical tips:
- Keep the volume moderate. Set it just loud enough to blur the sounds you want to mask. For long sessions, quieter is safer for your hearing.
- For babies, a 2014 study in the journal Pediatrics found that infant sleep machines can be surprisingly loud at close range, and suggested placing them as far from the crib as possible, at a low volume. Do not put a phone or speaker inside the cot.
- Try pink or brown first if white noise feels harsh. Many people prefer a rain or fan blend for the whole night.
- Use the sleep timer if you only need help falling asleep. The fade is scheduled on the audio clock, so it still happens on time when the tab is in the background or the screen is dimmed.
Need to time a work session instead? Pair a focus mix with the Pomodoro timer, or use the sleep calculator to plan your bedtime.
Playback in the background and on phones
Once started, Web Audio keeps playing when you switch tabs or minimise the window on desktop browsers. On phones, the operating system has the final say: iPhones may mute web audio when the ring/silent switch is on, and some phones pause web pages when the screen locks or the battery saver is active. If the sound stops, unlock the phone and press Play again, or keep the browser in the foreground. The noise is generated by your processor, so it does not use mobile data after the page has loaded.
Frequently asked questions
Is brown noise better than white noise for sleep?
Will it keep playing if I switch tabs or lock my screen?
Does this use mobile data or download audio files?
How loud should white noise be?
How does the sleep timer work?
Does the sound loop?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.