Skip to the generator
Wave & Blob

Sharp zigzag

Open the generator

Free, no sign-up, runs in your browser.

Nine points joined by straight lines instead of a curve. The corners are the shape here, and smoothing them even slightly turns a zigzag into a bad wave — which is why this is a separate join style rather than the smoothness slider turned down.

The settings behind it

The settings behind it
GeneratorWave
Points9
Amplitude58%
Randomness6%
Baseline55%
Layers1
Smoothness100%
Seed2024

What to know

What it costs in bytes

This exact shape is 264 bytes as an SVG and 425 bytes as a CSS background — the data URI is larger because percent-encoding costs three characters for every character it escapes. Both figures are for the shape shown above, at two decimal places of coordinate precision.

What it costs in bytes
Format Size
SVG264 B
CSS background425 B
CSS clip-path456 B

The start of the SVG for Sharp zigzag

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path d="M-160 140.02L0 177.61L160 215.5L320 236.17L480 227.82L640 197.67L800 154.53L960 121.73L1120 116.94L1280 139.19L1440 177.19L1440 320L-160 320Z" fill="#4f46e5"/></svg>

In more detail

This is the cheapest divider here by a wide margin, because a line segment costs one coordinate pair where a cubic costs three. If you are adding a divider to a page that is already heavy, a zigzag at nine points costs less than a smooth wave at four and is arguably the more striking shape.

Questions

How do I change Sharp zigzag once I have it?

Open the generator, click Sharp zigzag in the preset row, then drag anything. The preset is a starting point rather than a lock — every slider stays live, and the seed box takes a word if you would rather name your shape than number it.

Will it look the same next time?

Yes, as long as the seed is the same. This one is seed 2024 with 9 points. The generator is deterministic, so those settings reproduce this exact curve on any device.

Can I use a different colour?

Yes — colour is applied when you export, not baked into the geometry. The preview above uses the tool default; pick your own in the generator and the SVG, the CSS background and the clip-path all follow.

Every figure and every shape on this page was produced by running the generator at build time, so it describes the tool you are about to use rather than a version of it that once existed.

Related