Noise Machine

Play white, pink or brown noise generated live by the Web Audio API, with master volume, a low-pass filter and a fade-out sleep timer.

The noise is synthesized from random numbers inside this page. Nothing is downloaded or uploaded, and the machine keeps no log of your listening.

Stopped

The timer counts in this tab: keep it open. Background tabs can be throttled by the browser, so the fade may fire up to a minute late.

How It Works

On Start the page builds a 4-second Float32Array of samples — plain random numbers for white noise, then filtered variants for pink and brown — loads it into an AudioBuffer, and loops it through a low-pass filter and a master gain with the Web Audio API. Colors are switched with a quick fade so the seam is never a click, and Start and Stop ramp the gain over one second instead of cutting it abruptly.

What the colors mean
Named after light, the colors describe how energy is spread across frequencies. White noise has the same energy in every frequency band, which sounds bright and hissy. Pink noise loses about 3 dB per octave — high bands get progressively less energy — so it sounds even and natural to the ear, like steady rain. Brown (Brownian) noise drops about 6 dB per octave, most of its energy sitting in the deep rumble. These are listening impressions, not lab measurements.
Why people use it for focus
A steady noise bed raises the floor under sudden sounds — doors, keyboards, conversation — so they arrive as variations in a wash instead of sharp interruptions. Many people find that makes open offices and shared apartments easier to work in; it is personal preference, not a medical treatment, and this page makes no health claims.
Volume safety and timer math
Noise is broadband energy, so keep the level low — comfortably quiet at your listening position, and the low-pass slider lets you trade brightness for softness without touching volume. The sleep timer is a simple countdown (minutes × 60 seconds) armed when selected; at zero it ramps the master gain to silence over about three seconds and stops the source. Background-tab throttling can delay that fade by up to a minute.

Frequently Asked Questions

Is the loop seam audible?

The buffer is 4 seconds long and loops without a crossfade. For white noise the seam is essentially impossible to hear because every sample is independent; pink and brown are smoothed by their filters, so at most a very attentive listener may notice a faint rhythm in the deep rumble of brown noise after many minutes. If you do, the low-pass slider hides it further.

Does it drain battery or CPU?

Less than a video. The noise is computed once into a buffer and then just looped by Web Audio, with one biquad filter and one gain node on the output — a negligible share of CPU. Keeping the tab open does consume some battery, far below a music app or a YouTube loop.

Headphones or speakers?

Either works; the sound is generated the same way. Speakers are gentler for long sessions because the level in your ear is lower and room air softens highs. With headphones keep the volume clearly below comfort — noise is broadband energy, and what feels quiet after an hour can still be loud.

Does the sleep timer work if I close the tab?

No. The timer is a countdown inside this page, so audio and fade-out stop when the tab closes, and background tabs may be throttled by the browser so the fade can land up to a minute late. Keep the tab open (you can switch windows) for the timer to fire.

Is anything uploaded to a server?

No — there is nothing to upload. The noise is synthesized from random numbers by the Web Audio API inside this page: no audio files are downloaded, no streaming is involved, and once the page is loaded the machine runs fully offline.