Free online tools

SVG Stroke Dasharray Calculator

Build a dashed ring or evenly divided stroke from its path length and a desired dash count.

Enter your values

This tool processes your input in your browser.

Result

Divide the path into repeat units

Divide the path length by the desired dash count. The filled fraction determines how much is painted, and the rest becomes the gap.

Account for stroke caps after measuring

The numbers describe geometric lengths along the path. Round or square caps extend beyond the line ends and make the visible dash look longer.

Frequently asked questions

What units should I enter?

Use the same SVG user units for radius, path length, stroke and offset. Use the SVG’s actual pathLength scaling if you set that attribute.