Straight horizontal lines are the default way to separate two sections of a web page, and they look like it — flat and a little dull. A wave divider softens the join: the top section melts into the next in a curve, which guides the eye downward and makes a simple two-colour layout feel designed. You have seen them under hero banners on thousands of landing pages. This generator lets you make your own in seconds, with the exact height, rhythm and colour your page needs, and no design software.
The controls map to what your eye sees. Height sets how much vertical space the divider takes. The wave count sets the rhythm — one broad swell feels calm, six feel energetic. Layers stack extra waves behind the front one at lower opacity, faking the depth of overlapping hills; the front layer is always fully solid so it blends seamlessly into the section below. The colour should normally be the background colour of the section the wave points into: if a blue hero sits above a white section, the wave itself is white and sits at the bottom of the blue area — or use the flip option and place a blue wave at the top of the white section. Both arrangements produce the same curve.
Worked example: a landing page has a blue header area and a white features section. Set the style to Smooth, height 120, waves 2, layers 2 and the colour to white (#ffffff), then place the copied SVG at the very bottom of the blue header, in a container with no gap beneath it. The white wave rises into the blue like a shoreline, and the features section continues in white below — the join disappears. If the design later changes to a dark theme, regenerate with the new section colour; the whole job takes under a minute.
Smooth waves vs peaks
| Style | Feels like | Suits |
|---|---|---|
| Smooth, 1–2 waves | Water, fabric, calm | Health, beauty, SaaS, portfolios |
| Smooth, 4+ waves | Energy, sound, motion | Music, events, children's products |
| Peaks | Mountains, rooftops, geometry | Travel, construction, bold tech brands |
| Layered (3–4) | Depth, landscape, sea | Hero sections that need a centrepiece |
Because the output is SVG, it behaves better than any image could. The entire divider is a few lines of text — typically well under a kilobyte — so it adds nothing measurable to your page weight. It scales from a phone to a 4K monitor without blurring, because the browser redraws the curve from mathematics rather than stretching pixels. And if you paste it inline in your HTML, you can even recolour it with CSS later, or animate it gently for a living background effect.
A couple of practical tips. Always preview your wave at phone width as well as desktop width: a wave that looks gentle on a wide screen can look steep and crowded when squeezed, and dropping the wave count by one usually fixes it. Also, keep the container's line-height and margins at zero around the SVG, as this preview does — a stray gap under the shape is the most common reason a divider looks broken. With those two checks done, the wave will sit perfectly on the first try.
Waves also pair well with two other effects. Placed over a gradient background, a semi-transparent layered wave adds texture without any image files — set the section background to a gradient and let the lighter back layers show it through. And because inline SVG is just markup, a developer can animate the layers drifting slowly sideways for a subtle "living" hero section. Keep the animation gentle and respect visitors who prefer reduced motion; a divider's job is to support the content, not to distract from it. The static version you copy from here is the safe default for most sites.
Frequently asked questions
What is an SVG wave used for?
A wave divider is a decorative shape placed between two sections of a web page — for example under a hero banner — so the colour change between sections flows in a curve instead of a straight line.
Why use SVG instead of a PNG image for a wave?
SVG is a text-based vector format, so the file is a few hundred bytes, stays perfectly sharp at every screen size, and can be re-coloured by editing one value. A PNG of the same wave is larger and blurs when stretched.
How do I add the wave to my website?
Copy the generated code and paste it into your HTML where the sections meet, or download the .svg file and use it as an image or CSS background. Set the wave colour to the colour of the section below it.
What do the layers do?
Each extra layer draws another wave behind the front one with lower opacity, creating a sense of depth — like looking at overlapping hills or water. One layer gives a clean, flat divider.
What is the difference between smooth and peaks?
Smooth waves curve gently like water or fabric. Peaks are straight-edged zigzags that look like mountains or a sawtooth pattern — better for bold, geometric designs.
Can I flip the wave upside down?
Yes. Tick the flip option and the filled area moves to the top of the shape, which is what you need when the wave sits at the bottom of a coloured section instead of the top of one.
Will the wave stretch on mobile?
Yes — the generated SVG uses a viewBox with preserveAspectRatio set to none, so it stretches to the full width of its container at any screen size while keeping the height you chose.
Is this wave generator free to use commercially?
Yes. The waves you generate are simple shapes produced from your own settings; use them on personal and commercial projects without attribution.
How do I change the wave colour later?
Open the SVG code and change the fill colour value — it appears once per layer. Because SVG is plain text, any text editor can do it, or just regenerate the wave here with the new colour.