Free online generator

Ocean sounds for sleeping:
waves generated live.

Press play for a shoreline that never runs out: a distant roll, waves arriving in uneven sets, and foam washing back after each one. Nothing streams and nothing downloads: every wave is generated on your device while you listen.

Waves on a beach, heard from a little way back. A low roll from the far water that never stops, surf that swells and breaks in uneven sets, and a brighter wash of foam as each wave runs up the sand and drains away. About one wave every 7 to 8 seconds · two sets out of step · plays in your browser
60%
Off
Off

Sleeping to this tonight? A browser tab will not reliably keep playing once your phone locks. Veil is built to run through the night with the screen off, offline, with lock screen controls. The ocean player is browser only; in the app you get noise colors, fans, mechanical sounds and light and heavy rain, with white, pink and brown noise and the slow fan free.

On a computer? Scan to install Veil on your phone. It opens your app store.

Idle. Press play to start.

What makes ocean sounds sound like the sea?

Movement. Plain noise can be filtered until it has the color of surf, but it stays perfectly even, and the ear hears static. The sea is three sounds moving at different speeds: a low roll from the far water that never stops, the body of each wave as it rises and breaks, and the bright hiss of foam running up the sand and draining back.

LayerWhat you hearRangeHow it moves
Distant bedThe far water, a low constant rollBelow about 420 HzSteady. It never dips, so there is no silence between waves.
SurfThe body of each waveBelow about 1.5 kHzSwells and breaks with the main set of waves.
Foam washWater running up and draining backAbove about 650 HzFollows both sets of waves, brightest at the crest.

Each wave has a rounded rise, a short crest and a slower retreat, and no two are the same height or length. A second, quieter set of waves moves out of step with the first, so the shoreline never settles into a regular breathing rhythm. If you want the depth of the sea with no movement at all, brown noise is the closest steady sound.

Ocean waves for sleep: what to expect.

Many people find a steady sound easier to fall asleep to than silence, because it makes a door, a voice or a passing car less noticeable. Ocean sounds do that job with a slow rise and fall on top, and that movement is the whole choice: some people find it easy to settle into, and others notice every wave.

Two practical points. Set the volume while a wave is breaking, not in a lull, so the loudest moments stay comfortable. And if a noisy room keeps getting through in the quiet stretch between waves, a sound with no gaps covers more: heavy rain is dense and continuous, and brown noise is steady and deep.

Why generated waves beat a looped recording.

A recording of the sea is one beach, on one day, with that day's wind, gulls and passers-by baked in. It also has to loop, and waves make loops easy to hear: the ear remembers a big wave, and when the same one comes back on schedule it becomes the thing you wait for.

Nothing here is a clip. Every wave is drawn at random, with its own height, length, rise and retreat, in two sets of different lengths: four waves over 30 seconds and five over a little more than 37. The water texture underneath comes from two noise layers of 30 seconds and 37 seconds plus one sample. The layers themselves are finite, but because their lengths share no common factor, the pattern of waves does not repeat for about 103 days, and the texture under it does not line up again for about 283 days at the 22.05 kHz rate this player runs at. The two cycles are out of step with each other too, so the complete sound takes far longer than either to come back to the same point.

How this generator actually works.

Two white noise layers are mixed at half level each and split three ways: a low-pass at 420 Hz at a fixed level for the distant bed, a low-pass at 1.5 kHz for the surf, and a high-pass at 650 Hz for the foam. Every filter is a gentle Butterworth slope, so nothing rings or whistles.

The waves themselves are control signals, not audio: slow envelopes that raise and lower the surf and foam levels. Each wave rises along a smooth curve over roughly a quarter to a third of its length, holds a short crest and falls away more slowly. Each set starts at a random point in its cycle, and the wave that crosses the loop point wraps around it, so the swell continues through the join with no dip. The second set moves the surf at about a third of the main set's depth and also feeds the foam, so the wash keeps moving between the big waves.

The mix ends on a low-pass at 3.8 kHz, which keeps the top end soft, and a high-pass at 45 Hz that removes sub-bass rumble. Its level is matched to the rain player with the same loudness measurement, so moving between the two does not change how loud things are at the same volume setting. Everything is generated in a fraction of a second while the page is idle, so play usually starts at once.

Try the other sounds.

If waves are not the right texture, try light or heavy rain, or a steady sound for the same job: brown is deep and even, pink is softer on top, and seven fans add a slow sweep. Or compare all six noise colors side by side.

Common questions.

Are ocean sounds good for sleep?
Many people find a steady sound easier to fall asleep to than silence, because it makes sudden noises from outside or elsewhere in the home less noticeable. Ocean waves add a slow rise and fall on top of that, which some people find easy to settle into and others find distracting. Whether it suits you is personal, so the fairest test is a full night at a low volume.
Do these ocean waves loop?
There is no short clip on repeat. The waves come from two sets of different lengths, 30 seconds and a little over 37 seconds, each with its own randomly drawn waves, and the water texture comes from two noise layers of 30 seconds and 37 seconds plus one sample. Because the lengths share no common factor, the pattern of waves does not repeat for about 103 days, and the texture under it does not line up again for about 283 days at the 22.05 kHz rate this player runs at.
Are ocean sounds the same as white noise?
No, although this one starts from white noise. The distant roll is filtered down to the low end, which makes it closer to brown noise, and the foam is the bright part of the same noise. What makes it the sea is movement: the level swells and falls with each wave, where white noise stays perfectly even.
How loud should ocean sounds be for sleeping?
Quieter than most people set it. Aim for the lowest level that still covers whatever is disturbing you. Because waves rise and fall, set the volume while a wave is breaking rather than in a lull, so the loudest moments stay comfortable. If the quiet gaps between waves let noise through, a steady sound such as brown noise may cover more.
Will it keep playing when my phone locks?
Not reliably. Phone browsers often pause or stop audio once the screen locks or the tab moves to the background, so keep the tab open and the screen on if you use this player overnight. The Veil app is built to keep playing through the night with the screen off, with lock screen controls.
Is this ocean player free?
Yes. It plays free in your browser, with no account, no signup and no ads. Nothing streams and nothing downloads. The ocean player is browser only. The Veil app has noise colors, fans, mechanical sounds and rain: white, pink and brown noise and the slow fan are free, and the rest is included with Premium, which you can take monthly, annually or as a one-time purchase.

A sound that plays all night

Veil synthesizes noise colors, fans, mechanical sounds and rain on your phone, with controls to shape every one. Nothing prerecorded, no downloads, works offline. Weighing it against other apps? See the best white noise apps compared.

Download on App Store Get it on Google Play