Dev TooloraLocal dev tools

> Images & Codes

SVG Wave Generator

Generate a seeded SVG wave divider with up to four layers, as a smooth random curve or a sine wave.

Runs locallyWorks offline
Auto-run
Back to results
Input

Source data

Style
px
px
%
Position
Shuffles the smooth style.
Output

Result

Your result will appear here.

Tool guide

About this tool.

  • The wave is a filled path that follows a curve across the full width and closes through the bottom corners, or the top corners when Position is top. It is meant as a section divider.
  • Smooth style places 2 x peaks + 1 evenly spaced points at seeded random heights, then joins them with a Catmull-Rom spline. Sine style samples a true sine wave with the chosen number of periods.
  • With several layers the back layer sits higher and is more transparent, and each layer in front is lower and more opaque. The SVG uses preserveAspectRatio="none" so it stretches to the width of its container.

  • Dividers between page sections.
  • Footer and header edges.
  • Layered backgrounds for hero banners.
  • Quickly exploring wave shapes by shuffling the seed.

Choose a Style, set the Width, Height, Peaks, Amplitude and Layers, then pick Position and Color. The Seed shuffles the smooth style.

The preview updates as you change values.

The output is an SVG with one path per layer. Layer opacity grows from the back layer to the front layer.

Copy the markup or download wave.svg. Values outside a slider range are rejected, never clamped.

  • Default smooth wave (seed 11) → one blue layer with four random peaks
  • Sine wave (3 peaks) → three regular periods
  • Three layers → opacities 0.33, 0.67 and 1
  • Top divider → the same shape mirrored so it closes through the top
  • Gentle ripple (15% amplitude, 8 peaks) → a calm sine ripple
  • Four layers → opacities 0.25, 0.5, 0.75 and 1

  • Width is 320 to 2560, height 50 to 600, peaks 1 to 12, amplitude 5 to 100%, layers 1 to 4.
  • Seed is 1 to 9999 and only affects the smooth style.
  • Out-of-range values are rejected, never clamped.
  • The color must be an opaque CSS color.
  • The SVG stretches with preserveAspectRatio="none".
  • The same settings always give the same SVG.

FAQ

Questions about SVG Wave Generator

Why does the seed do nothing in sine style?

The seed only shapes the smooth style. Sine waves are fully regular.

Why is the wave flat at 100% amplitude?

Curve points are kept inside the viewBox, so the curve flattens at the edges.

How do I put the wave at the top of a section?

Set Position to top. The shape is mirrored and fills the area above the curve.

Can I use a color other than hex?

Yes. Any opaque CSS color works.

Continue with

SVG Blob GeneratorGenerate a smooth, seeded organic blob as SVG and shuffle its shape with one slider.SVG PlaceholderGenerate a lightweight SVG placeholder image.SVG OptimizerReduce SVG file size while preserving view boxes, ids, classes and accessibility attributes.