White Noise Generator

Mix white, pink and brown noise with rain, ocean waves, wind, a fan and a crackling fire. Every sound is synthesised live in your browser, and a sleep timer fades it out gently.

Free, no sign-upRuns in your browserUpdated November 2026
Press Play to start. Sounds are generated on your device.
Quick mixes
Sleep timer
The sound fades out over the last minute.

Tip: start at a low volume. Playback continues when you switch tabs; keep this tab open. Your mix is remembered on this device.

How to use the White Noise Generator

  1. Press Play. If you have not saved a mix yet, brown noise starts at a comfortable level.
  2. 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.
  3. Set the master volume low at first, then raise it until the noise just covers background sounds.
  4. Choose a sleep timer if you want the sound to fade out over the last minute and stop by itself.
  5. 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.

NoiseSpectrumSounds like
WhiteEqual power per hertz (flat)Bright hiss, like an untuned radio or TV static
PinkPower falls 3 dB per octave (1/f)Fuller and softer, closer to steady rain or wind
BrownPower 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.
brown[n] = 0.997 × brown[n−1] + 0.02 × white[n]

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?
There is no single best colour. Brown noise has much more bass and less hiss, and many people find it more soothing; white noise masks high-pitched sounds better. Try each for a few nights and keep the one you find most comfortable.
Will it keep playing if I switch tabs or lock my screen?
On desktop browsers it keeps playing in a background tab. On phones it depends on the operating system and power settings; some pause web audio when the screen locks. Keep this tab open, because closing it stops the sound.
Does this use mobile data or download audio files?
No. All sounds are generated mathematically in your browser after the page loads. No audio files are streamed, so it works offline once the page is open.
How loud should white noise be?
Only as loud as needed to mask distracting sounds. For long listening, keep it at a quiet, conversation-like level or lower. For babies, keep the speaker away from the crib and the volume low.
How does the sleep timer work?
Choose a duration and the sound fades out smoothly over the final minute, then stops. The fade is scheduled on the audio clock, so it stays on time even if the browser slows down timers in a background tab.
Does the sound loop?
Each sound is a generated stereo loop of 8 to 40 seconds, crossfaded so there is no click at the seam. Noise has no melody, so the repetition is very hard to notice. Each time you press Play, new random loops are generated.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.