About SVG Wave Generator
Wavy section dividers make a page feel less boxy. Set how many layers to stack, how tall the crests are and how many fit across, pick smooth curves, sharp peaks or flat steps, and choose a front and a back color: the layers in between are shaded from one to the other.
The result is a small hand-readable SVG file that stretches to any width, plus a ready CSS rule that puts it at the top or bottom of a section. The same variation number always gives the same waves, so a link to your settings brings back exactly what you made.
How it works
- Each layer follows a sine curve. Its crest height is the amplitude you set, and the layers sit one under another across the height.
- Smooth waves are drawn as cubic Bézier curves through points along the sine; peaks join the crests and troughs with straight lines; steps hold the wave height flat across short treads.
- The variation number seeds a repeatable random shift and height for every layer except the front one, so the stack looks hand-drawn but can be recreated exactly.
- The SVG uses preserveAspectRatio="none", so it stretches to fill whatever box you give it, which is how dividers are usually used.
Questions
How do I put the wave at the bottom of a section?
Copy the CSS rule and add an element with the class wave-divider as the last child of the section, or paste the SVG markup there directly. Choose Top to get a wave that hangs down from the top edge instead.
Why does the wave look squashed on narrow screens?
The SVG is set to stretch to its box, so the crests get closer together as the box narrows. Lower the frequency or the height for small screens, or use a second wave in a media query.
Can I get a transparent background?
Yes. The background is transparent unless you turn on Fill the background, in both the SVG and the PNG download. The checkerboard in the preview shows the transparent parts.
What sizes can I make?
From 100 to 3840 pixels wide and 20 to 1200 pixels tall. The SVG scales without losing quality anyway; the size mostly matters for the PNG download and the proportions.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.