🌸

Pink Noise Generator

Free, browser-only pink noise generator using Paul Kellet's IIR filter cascade for accurate −3 dB / octave power roll-off. Live log-frequency spectrum (where genuine pink noise looks flat), A/B/C color comparison between white / pink / brown, sleep timer (15 / 30 / 60 min), and WAV download. Useful for speaker calibration, room-mode measurement, audio testing, and sleep/focus listening.

Playback

Pink noise sounds fuller than white at the same setting. Start moderate.
Idle — press Play.

Live measurements

Current color
white / pink / brown
Sample rate
AudioContext.sampleRate
Measured slope
least-squares dB/oct — pink ≈ −3
Average level
mean dB across all bars

Sleep timer

Time remaining
—:——
Audio fades over the last 4 seconds so you aren't jolted by an abrupt cutoff.

Download WAV

Length
16-bit PCM mono pink noise (Kellet filter) at the audio context's sample rate. 60 s briefly freezes the UI (~250 ms) while filling the buffer.
Generated locally — never uploaded.
Live FFT spectrum — 48 bars, log frequency (20 Hz → Nyquist)

Share or embed this tool

Free to use on your own website — WordPress, Wix, or any platform. Paste one line and it works instantly, resizing to fit.


Pink Noise — What It Is and Where to Use It

This pink noise generator produces a random signal whose power falls off at −3 dB per octave from low to high frequency — equivalently, its power spectral density goes as 1/f. Pink noise is the broadband noise that contains equal power in every octave, which is why a spectrum analyser configured with a log-frequency axis (like the one below) shows it as a flat horizontal band. White noise, by contrast, has equal power per Hz and slopes upward by +3 dB/octave on the same display.

Why “equal power per octave” matters

Human hearing is roughly logarithmic in frequency — one octave (a 2× jump in Hz) is the same perceptual step whether it's 100→200 Hz or 5,000→10,000 Hz. Pink noise's flat-per-octave profile lines up with that perception, so it sounds balanced rather than “hissy” (white) or “rumbly” (brown). The same property is why pink, not white, is the standard test signal for audio measurement: it excites every octave with the same power so the room/speaker response is what the analyser is measuring, not the test signal's own bias.

Common uses

  • Speaker / monitor calibration — flat-per-octave excitation paired with a real-time analyser shows the speaker's frequency response (deviations from flat) directly, without the +3 dB/oct correction needed with white noise. For precise single-frequency checks alongside a calibration sweep, use the online tone generator as the deterministic counterpart.
  • Room-mode measurement and RT60 — pink noise excites low frequencies more than white, surfacing room modes, standing waves, and reverberation patterns at musically-relevant levels. A real-time octave-band analyzer will read well-calibrated pink noise as a flat row of bars, making response anomalies immediately visible.
  • Sleep, focus, and tinnitus masking — the gentler high-frequency content (compared to white) is less fatiguing for long-session listening. Many sleep clinicians and audiologists recommend pink over white precisely because the reduced masking efficiency at high frequencies feels less intrusive.
  • Broadcast and music production reference — pink's long-term average spectrum (LTAS) closely matches that of speech and music, so it doubles as a mix-bus loudness check. It is also the standard stimulus for measuring loudspeaker power handling (IEC 268-5).

How this generator works

The audio is produced by feeding uniform white noise through Paul Kellet's six-pole IIR filter, a canonical cascade of one-pole low-pass sections whose coefficients are tuned to approximate the 1/f power spectral density to within ±0.05 dB from ~9 Hz to ~22 kHz. The filter runs sample-by-sample inside the browser (no external library), and the output is written into a 2-second AudioBuffer that loops via a Web Audio AudioBufferSourceNode for indefinite playback at near-zero CPU. To see the time-frequency texture of the noise in detail — for example to confirm the flat spectral energy density across octaves — point the browser spectrogram tool at your speaker output while this generator plays.

About the “Compare colors” button

This plays three seconds each of white, pink, and brown noise in sequence so you can hear them back-to-back. White is the brightest (most upper-frequency content); pink sits in the middle; brown is deepest and rumbliest. Each colour uses its own generator: white via direct Math.random(), pink via the Kellet IIR cascade above, and brown via a leaky integrator on white (approximates −6 dB/octave).

Frequently Asked Questions

Why does the spectrum look flat instead of sloping down?
Because this plot uses a log-frequency X axis. Pink noise has −3 dB/octave power roll-off, but each octave is the same horizontal distance on a log scale, so the constant per-octave power lands at the same height across the chart. The “Measured slope” readout fits a least-squares line through (log₂ frequency, dB) values and reports the slope in dB/octave — it should converge to about −3.0 for genuine pink. If you point an analyser with a linear-frequency axis at this output it'll show the textbook downward slope instead.
What's the practical difference between white, pink, and brown for sleep?
Roughly: white is brightest (good for masking high-frequency intrusions like keyboard clicks), pink is most balanced (closer to perceived "natural" sound; the most-recommended default), and brown is rumbliest (often preferred for ADHD focus and deep sleep). Use the Compare button to A/B/C the three at the same volume and pick what your ear prefers.
Is the 2-second loop noticeable?
Internally the audio plays a 2-second buffer of independent Kellet-filtered random samples on loop. Statistically the loop is detectable; perceptually it isn't — the spectrum is featureless and the brain has nothing to lock onto. For maximum freshness during long sessions, download a 60-second WAV and loop it in a media player whose loop point can be crossfaded.
What does the “sleep timer” actually do?
Counts down 15, 30, or 60 minutes from the moment audio actually starts playing (arming it while idle and pressing Play later resets the countdown). Audio fades smoothly over the last 4 seconds rather than cutting off abruptly. The countdown runs on the browser's wall clock so a brief tab-suspend doesn't drift it; closing the tab cancels it entirely.
Is pink noise safe for long listening?
At moderate levels (typically <50 dB SPL at the pillow) the risks are very low. The danger is sustained high-volume exposure, which can accelerate hearing fatigue regardless of noise colour. Start the slider low, increase only as needed to mask intrusions, and place the source a metre or so away rather than right next to your ear. For infants, the same conservative levels apply.
Why pink, not white, for room measurement?
A real-time analyser averaging power per octave will read pink as flat by construction. A speaker or room with a flat response will then show as flat on the display; deviations are entirely the device under test. With white noise the analyser would have to subtract +3 dB/octave to do the same job — doable but error-prone in practice.
Does this work offline?
Yes — once the page is loaded, all noise generation, the live spectrum, the sleep timer, and the WAV download work fully offline. Nothing is uploaded or fetched after page load.
What sample rate is the WAV?
Whatever AudioContext.sampleRate reports — typically 48000 Hz on desktop and many mobile devices, occasionally 44100 Hz. The exact rate appears in the “Sample rate” readout the first time you press Play.
Can pink noise help with tinnitus masking?
Many audiologists and tinnitus clinics use broadband noise — particularly pink noise — as a partial masking signal because its balanced spectrum covers a wide frequency range without the harsh brightness of white noise. The goal isn't to eliminate tinnitus but to reduce the perceived contrast between the ringing and silence. This tool can produce continuous pink noise at a low, comfortable level, but it is not a medical device and cannot replace a proper tinnitus sound therapy program. Consult an audiologist before relying on any sound for tinnitus relief.
How accurate is the Paul Kellet IIR filter compared to "true" 1/f pink noise?
Kellet's six-pole IIR cascade is the most widely used approximation of the 1/f power spectral density in real-time audio. It achieves ±0.05 dB accuracy from roughly 9 Hz to 22 kHz at a 44.1/48 kHz sample rate — more than adequate for audio use. An alternative, the Voss-McCartney algorithm, produces statistically exact 1/f noise using multiple octave-summed white-noise sources, but at the cost of higher memory and CPU. For speaker calibration, room measurement, and sleep/masking purposes, the Kellet output is indistinguishable from ideal 1/f pink noise.
Does pink noise improve focus or help with ADHD?
Several studies suggest that steady-state background noise, including pink noise, can improve cognitive performance for some individuals by raising the ambient noise floor and masking irregular distracting sounds. Some ADHD research has explored "stochastic resonance" — the idea that low-level noise can slightly improve signal detection in underaroused neural circuits. However, results are mixed and highly individual: some people find pink noise helpful for focus, others prefer white or brown, and some find any steady noise distracting. Use the Compare button to test all three colors and find what works for you.
Is pink noise safe for babies and infants, and at what volume?
Major pediatric and audiological guidance recommends keeping infant sleep sound machines below 50 dB SPL at the sleeping position (roughly the level of a quiet conversation) and placing the source at least 2 metres from the crib. Continuous high-volume exposure (>85 dB) poses a genuine hearing-damage risk for any listener, and infants cannot signal discomfort. Use a sound level meter app to verify the level at the crib, and always prefer the lowest volume that provides effective masking.