Clever Quest Lab ← Labs

Noise Generator

Play white, pink, brown and other noise colours and see why they differ.

Sound is off. Press Play to start.

Live spectrum (smoothed)Theoretical shape of this colour

Keyboard: Space plays or stops, keys 1 to 6 pick the colour. Nothing plays until you press Play.

Readouts

Colour
White
Theoretical slope
0 dB/oct
Measured live
–
Power density S(f) ∝ 1/fn
n = 0 (flat)
Output
Stereo
Sleep timer
Off

Slope is measured between 100 Hz and 8 kHz.

Colour

Noise colour

“Green” is an informal name with no agreed definition. Here it is noise limited to a band around 500 Hz.

Volume and tone

The filters are 24 dB/octave and act on the sound you hear and on the spectrum below the dashed line, not on the dashed line itself.

Sleep timer

Sleep timer

The timer starts when you press Play. The last 30 seconds fade out slowly, then the sound stops.

Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves the colour, volume, filters, stereo switch and sleep timer choice on this device.

Added · Updated : sleep answer now cites a 2021 systematic review

How to use it

Press Play, then pick a colour. Start with the volume low and raise it slowly: steady noise is tiring, so choose a level at which you could still hold a conversation. Press Play again or tap Space to stop. The graph shows the spectrum of what you hear, with frequency across the bottom on a logarithmic axis from 20 Hz to 20 kHz and level up the side in decibels. The dashed line is the slope the chosen colour should have in theory, and the “Measured live” readout fits a straight line to the live spectrum between 100 Hz and 8 kHz so you can compare the two.

Controls

How it works

Noise is a random signal. You cannot predict the next sample, but you can describe how its power is spread over frequency. That description is the power spectral density: the power in a narrow slice of the spectrum, per hertz. A colour name is shorthand for the shape of that curve, borrowed from white light, which contains all visible frequencies. If the density follows a power law, it can be written as:

S(f) ∝ 1 / fn, so the slope is −10 · log10(2) · n ≈ −3.01 · n dB per octave

The page builds each colour once, when you first select it, with the method of Timmer and König (1995): it fills a spectrum with random complex numbers from the browser’s pseudo-random number generator, scales their size by the power law and applies an inverse fast Fourier transform. The result is 11.9 seconds of noise (219 samples at 44.1 kHz) that loops without a click or gap, because the signal is periodic by construction; a very attentive listener may still notice the repeat. The left and right channels are independent. Frequencies below 20 Hz are rolled off so brown noise does not waste energy on inaudible rumble. Levels are matched by overall (RMS) power within 2.5 dB, but a hissy colour still sounds louder than a rumbly one, since the ear is most sensitive between 2 and 5 kHz.

Things to try

Frequently asked questions

Does noise help you sleep?

The evidence is weak. A systematic review of 38 studies (Riedy and colleagues, 2021, in Sources) rated the evidence that continuous broadband noise improves sleep as very low quality: some studies found better sleep, others worse. This page is a demonstration, not medical advice. If you struggle to sleep or have hearing problems, talk to a health professional.

How loud should I play it?

Moderate. Loud sound played for hours can damage hearing, and you should still be able to hear alarms and people speaking to you.

Why does brown noise make my speakers rattle?

Its power is concentrated in the bass. Small speakers may distort, so lower the volume or raise the low-cut.

Does it keep playing when I switch tabs?

On a desktop computer, yes: the noise continues in a background tab, and only the graph stops redrawing. The sleep timer still ends on time. Phones and tablets may pause web audio when the screen locks or the browser goes to the background, and the page cannot prevent that.

Sources