White Noise Generator for Focus & Sleep

Generate white, pink, or brown noise for concentration, relaxation, and sleep. No ads, no signup.

Runs in your browser. No data leaves your device.

About this tool

Plays continuous white, pink or brown noise generated in the browser, for masking background sound while focusing or sleeping. Pick a noise color, press PLAY, and adjust the volume; optional Tone, Low cut and Waves sliders shape the sound. No audio files are downloaded; the noise is computed locally.

Features
  • Three noise colors: White (default), Pink and Brown
  • Noise is pre-computed into a 6-second mono AudioBuffer whose end crossfades (50 ms, equal power) into its start, so the loop has no click, and played by a looping AudioBufferSourceNode
  • Signal chain: high-pass (Low cut) -> low-pass (Tone) -> Waves gain modulated by a sine LFO -> volume gain; every change glides over about 30 ms
  • White noise: uniform random samples in -1..1 (Math.random)
  • Pink noise: white noise filtered by a bank of one-pole filters (Paul Kellett style refined pink filter) scaled by 0.11
  • Brown noise: leaky integration of white noise ((last + 0.02 x white) / 1.02), scaled by 3.5
  • Volume slider 0-100% (default 50%) maps linearly to gain 0-1 and updates live while playing
  • Tone: low-pass cutoff from 200 Hz to 20 kHz on a log scale (default Open = 20 kHz)
  • Low cut: high-pass cutoff from 20 Hz (Off) to 1 kHz on a log scale
  • Waves: slow volume swell; depth 0-100% (gain moves between 1 - depth and 1), Wave speed one swell every 20 s to 2 s
  • Reset button returns the shaping sliders to plain noise
  • Switching noise color while playing swaps only the noise source; the filters and waves keep running
How to use it
  1. Choose White Noise, Pink Noise or Brown Noise
  2. Press PLAY
  3. Adjust the Volume slider to a comfortable level
  4. Optionally shape the sound with Tone, Low cut and Waves
  5. Press STOP to end
Outputs
  • Continuous noise played through the device speakers or headphones; no file export
Limits and notes
  • Requires the Web Audio API
  • Because a 6-second buffer is looped, the noise pattern repeats every 6 seconds
  • Playback stops when you leave the page (audio context is closed on unmount); background tab or screen-lock behavior depends on the browser
  • Noise type, volume and shaping are saved in localStorage (overtooled:white-noise:settings)

Frequently Asked Questions

How does the White Noise Generator work?

When you press Play, the tool fills a 6-second Web Audio buffer with random samples and loops it seamlessly (the end crossfades into the start, so there is no click). White noise uses uniformly random values. Pink noise passes those values through a bank of simple low-pass filters (Paul Kellett's pink filter) so energy falls about 3 dB per octave. Brown noise uses a leaky integrator of random steps for a deeper rumble. The noise then runs through a high-pass filter (Low cut), a low-pass filter (Tone), a slowly modulated gain (Waves) and the volume, all adjustable live. Nothing is streamed or downloaded.

Can I make the noise softer or more like the ocean?

Yes. Lower Tone to roll off the hiss for a darker, softer sound, raise Low cut to remove rumble on small speakers, and turn up Waves for a slow rise and fall in volume like surf; Wave speed sets how often it swells (every 20 to 2 seconds). Reset puts the shaping back to plain noise. Your settings are remembered on this device.

What is the difference between white, pink, and brown noise?

White noise has equal energy at all frequencies (like static). Pink noise reduces higher frequencies for a softer sound (like rain). Brown noise reduces highs even further for a deep rumble (like a waterfall). Most people find pink or brown noise more pleasant for sleep.

Can I use it while sleeping?

Yes. The noise generator runs continuously. Keep the tab open and your device plugged in. Some browsers may pause audio when the screen locks, so check your device settings.

Does it use a lot of battery or data?

The noise is generated locally using the Web Audio API -- no audio files are streamed. Data usage is zero and battery impact is minimal.