SVG Path Inspector
Paste an SVG path to see it drawn, list every command, and get its size, length and an absolute version.
How to use the SVG Path Inspector
- Paste your pathPaste the d attribute of an SVG path, or a whole <path> or <svg> tag.
- Inspect itSee the shape drawn with its points, its bounding box, length and a list of every command.
- Clean it upCopy an absolute version with the number of decimals you choose.
Example
The sample heart icon has 10 commands. Orange dots mark the end of each segment and grey dots the curve handles.
A relative command like l-1.45-1.32 is listed with its absolute equivalent L 10.55 20.03.
Frequently asked questions
What do the letters in an SVG path mean?
M moves the pen, L draws a line, H and V draw horizontal and vertical lines, C and S draw cubic curves, Q and T draw quadratic curves, A draws an arc and Z closes the shape. Lowercase letters use positions relative to the current point.
Why convert to absolute coordinates?
Absolute paths are easier to read and edit by hand, and to move between editors. Rounding decimals can also make the file smaller.
What is the bounding box?
The smallest rectangle that contains the whole shape. Use it to set a tight viewBox so your icon is not cut off or surrounded by empty space.