Free online tools

SVG Path Length Calculator

Paste the d value from one SVG path. Measure the length in SVG units and sample equally spaced locations for animation or drawing work.

Enter your values

Use the path commands only. Separate the two arc flags with a space or comma.

This tool processes your input in your browser.

Result

Measure the path in its local SVG coordinates

A path can contain lines, curves, arcs and closed subpaths. The browser computes geometric length before any outer transforms or CSS scaling are applied. The move between separate subpaths adds no length.

Sample points along the measured path

Endpoints are included. Four equal intervals produce five sample positions, starting at zero and ending at the full length. The browser approximates curved path lengths.

Frequently asked questions

Can I paste an entire SVG file?

Copy only the contents of the path’s d attribute. The tool accepts path commands and coordinates.

Will stroke width affect the answer?

The length follows the path’s geometric centerline. A thicker stroke or a different line cap affects the drawn outline, outside this calculation.