SVG Wave and Section Divider Generator

Make the wavy or angled edge between two website sections, see it live between two blocks of colour, and copy code that stretches to any width.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Pick a shape

    Start from Gentle wave, Layered waves, Sharp peaks, Tilted edge, Curve or City steps.

  2. 2
    Set the size

    Adjust the divider height, wave depth, number of waves and shift.

  3. 3
    Add layers

    Raise Layers for depth and set their spacing and colour.

  4. 4
    Set colours

    Choose the shape colour (next section) and background colour (current section), and flip if needed.

  5. 5
    Check the preview

    Look at the divider between the two sections and press Randomise for random shapes.

  6. 6
    Copy the code

    Copy inline SVG, CSS or HTML, or download SVG or PNG.

About this tool

A straight line between two coloured sections of a page is fine, but a gentle wave, a slant or a row of peaks makes a landing page feel designed. These dividers are simple SVG shapes filled with the colour of the next section, placed where one section meets another. This generator offers seven shapes: a regular sine wave with adjustable count and shift, smooth random waves from a seed, sharp peaks, city-like steps, a single curve, an arc and a straight tilt. Set the divider height from 30 to 400 px and the wave depth, and stack up to five layers that sit behind each other in lighter tones for depth. Flip the shape left to right, or turn it upside down to sit at the top of a section. The preview shows a section above, the divider and a section below in your real colours, so you see exactly how it joins. Export inline SVG, a CSS class that draws the divider as a background image, a ready HTML snippet with aria-hidden, or PNGs at 1440 and 2880 px for slides and email headers. Favourites go to a gallery, and every change can be undone.

How the colours work

The shape is filled with the colour of the section it leads into, and the area outside the shape shows the background colour of the section it leaves. With the divider at the bottom of a white section followed by an indigo one, the background is white and the shape colour is indigo. Choose Place at the top of a section to flip it for the other edge.

Stretching to any screen

The SVG uses a fixed 1440-unit-wide view box and preserveAspectRatio set to none, so it stretches horizontally to fill the container while keeping its height in pixels. Waves therefore get wider on large monitors and narrower on phones without leaving gaps at the sides. If you want the waves to keep their proportions instead, use the PNG as a background with background-size: cover.

Inline SVG or CSS background

Inline SVG is easiest to edit later and can use CSS variables for colours. The CSS background version keeps your HTML clean: one div with a class. Both are a few hundred bytes to about 2 KB, much lighter than an image.

Limits

Dividers are decoration only; they carry no content, so screen readers should skip them, which the HTML snippet does with aria-hidden. Very deep waves on very narrow screens can look steep because the height stays fixed while the width shrinks; reduce the height with a media query if needed. Shapes are generated from formulas and seeds, not drawn point by point.

Worked example

A charity site needed a divider between a white hero and an indigo donation section. The designer chose Layered waves: smooth random waves, height 200 px, depth 50 px, 3 layers with 40 percent spacing, shape colour #4F46E5 and background #FFFFFF. Seed 7 looked too regular, so she pressed Randomise twice and saved the third version. The CSS background output was 1.6 KB; she pasted it as .section-divider and the waves stretched cleanly from a 375 px phone to a 2560 px monitor.

Quick facts

Frequently asked questions

How do I add a wave divider to my website?

Copy the HTML snippet and paste it between the two sections, or copy the CSS background class and add a div with that class. Make the shape colour match the next section's background.

Will the wave work on mobile?

Yes. The SVG stretches to the full width of any screen while keeping its height, so there are no gaps. On small phones you may want a smaller height through a media query.

Can I put the wave at the top of a section?

Tick Place at the top of a section. The shape is drawn upside down so it hangs from the section above, and the colour roles swap accordingly.

Can I use it in WordPress, Webflow or Elementor?

Yes. Paste the HTML snippet into a custom HTML block, or upload the downloaded SVG as an image or background. Many page builders also accept an SVG divider upload directly.

How do the layers work?

Each extra layer is a copy of the wave drawn higher and lighter behind the main one. Layer spacing sets how far apart they sit, and the back layers can use their own colour.

Is the code free to use?

Yes. The shapes are generated in your browser and are yours to use in any project, commercial or not, without credit.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages