SVG wave divider generator

Design a smooth cubic-bezier wave for a section divider with a live full-width preview, then copy the inline SVG markup or a CSS background-image data URI.

How to use the generator

  1. Set the amplitude, number of waves, phase and band height with the sliders.
  2. Pick a fill color and choose whether the wave hangs from the top or rises from the bottom of a section.
  3. Watch the live preview stretch to full section width, then copy the inline SVG or the CSS background-image data URI.
#0f172a
Wave position
Preview

Rendered at full section width, hanging from the top edge.

Copy the SVG

Inline SVG markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none" aria-hidden="true" focusable="false"><path d="M 0 60 C 60 44.29 120 30 180 30 C 240 30 300 44.29 360 60 C 420 75.71 480 90 540 90 C 600 90 660 75.71 720 60 C 780 44.29 840 30 900 30 C 960 30 1020 44.29 1080 60 C 1140 75.71 1200 90 1260 90 C 1320 90 1380 75.71 1440 60 L 1440 120 L 0 120 Z" fill="#0f172a"/></svg>
CSS background-image data URI
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20120%22%20preserveAspectRatio%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20d%3D%22M%200%2060%20C%2060%2044.29%20120%2030%20180%2030%20C%20240%2030%20300%2044.29%20360%2060%20C%20420%2075.71%20480%2090%20540%2090%20C%20600%2090%20660%2075.71%20720%2060%20C%20780%2044.29%20840%2030%20900%2030%20C%20960%2030%201020%2044.29%201080%2060%20C%201140%2075.71%201200%2090%201260%2090%20C%201320%2090%201380%2075.71%201440%2060%20L%201440%20120%20L%200%20120%20Z%22%20fill%3D%22%230f172a%22%2F%3E%3C%2Fsvg%3E");
background-size: 100% auto;
background-repeat: no-repeat;
background-position: top;

Wave dividers on real sections

A wave divider is most useful when it sits between two real sections, so check how hero, feature and pricing sections are built before you paste your wave in.

Frequently asked questions

How do I use the wave as a section divider?

Drop the inline SVG at the top or bottom edge of a section and let it stretch to full width. Because the path uses preserveAspectRatio="none", the wave scales to any container width without distortion. Set the wave position to top to hang it from the upper edge or bottom to rise it from the lower edge, then match the fill to the neighbouring section's background so the two sections meet cleanly.

Why does the viewBox matter for a wave divider?

The viewBox defines the wave's internal coordinate space, here 1440 by 120. All the curve points are drawn in that space, and the browser scales the whole thing to whatever width you display it at. Keeping a fixed viewBox with preserveAspectRatio="none" means you author the wave once and it stretches to any screen, from a phone to a widescreen monitor, with no recalculation and no visible seams at the edges.

When is a data URI better than inline SVG?

Use the inline SVG when the wave is structural content inside a section, so it sits in the document flow and can be styled with CSS. Use the CSS background-image data URI when the wave is purely decorative and you want it to sit behind other content without taking up layout space. The data URI is encoded with encodeURIComponent rather than base64, so it stays readable and a little smaller, and it can be pasted straight into a stylesheet or an inline style attribute.

Is a decorative wave divider accessible?

Yes, when you tell the screen reader to ignore it. The generated SVG carries aria-hidden="true" and focusable="false", which hides a purely decorative wave from assistive technology so it does not announce a meaningless shape. Keep the real section heading and body text as the accessible content, and reserve the wave for visual separation only.

More CSS generators

Color tools

Image tools

Image & SVG tools

Typography & units

More free tools

All free tools