SVG Wave Background Generator
Design a wave divider or background, preview it at your size, and download a small, clean SVG file that stays sharp at any width.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" width="1440" height="320" preserveAspectRatio="none"><path d="M0,320 L0,3.2 C40,16.8 160,85.3 240,84.8 C320,84.3 400,0 480,0 C560,3.4 640,105.4 720,105.4 C800,105.4 880,1.6 960,0 C1040,0 1120,95.9 1200,95.9 C1280,95.9 1400,16 1440,0 L1440,320 Z" fill="#C4B5FD" fill-opacity="0.6"/><path d="M0,320 L0,73.4 C40,90.9 160,181 240,178.3 C320,175.7 400,59.1 480,57.6 C560,56 640,165.7 720,168.8 C800,171.9 880,73.4 960,76.1 C1040,78.9 1120,187.1 1200,185.2 C1280,183.2 1400,84.5 1440,64.4 L1440,320 Z" fill="#A78BFA" fill-opacity="0.8"/><path d="M0,320 L0,152.4 C40,168.7 160,250.4 240,249.9 C320,249.4 400,148.4 480,149.3 C560,150.2 640,255.3 720,255.3 C800,255.3 880,146.8 960,149.2 C1040,151.6 1120,269.4 1200,269.7 C1280,269.9 1400,170.6 1440,150.8 L1440,320 Z" fill="#7C5CE6"/></svg>
How to use it
- Set the width and height (the SVG keeps this aspect ratio).
- Choose 1-3 layers, the wave height, the number of waves and the vertical position. New shape gives another random curve.
- Pick a color for each layer and a background, or keep it transparent. Flip puts the waves on the top edge.
- Copy the SVG code or download the .svg file.
Using the wave in your site
Put the downloaded file between two sections as an <img> with width: 100%, or use it as background-image with background-size: 100% 100%. The SVG uses preserveAspectRatio="none", so it stretches to the full width without gaps.
What is in the file
Only an <svg> element, an optional background rectangle and one <path> per layer, written from a fixed template with numbers and checked HEX colors. There are no scripts, fonts or external links, so the file is safe to use anywhere and usually under 2 KB.
Frequently asked questions
Can I use the waves commercially?
Yes. The shapes are generated by your settings in your browser; use them in any personal or commercial project without credit.
How do I make the wave the same color as the next section?
Set the front layer to the background color of the section below and leave the SVG background transparent; the wave then blends into it.
Why does my wave look squashed?
The SVG stretches to the box it is placed in. Set a height in CSS (for example 120px) or match the width and height you chose here.