SVG Path Tools
Work with an SVG path: find its size and length, make all commands absolute, scale or move it, or fit it into a square.
How it works
Works on the d value of an SVG path. It measures the size and length, converts to absolute commands, scales and moves, or fits the path into a square with padding.
- Paste the path data.
- Choose what to do.
- Copy the new path.
Worked example
The path M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80 has a width of 170. Scale X 2 doubles it.
Good to know
- Absolute commands are easier to edit by hand.
- Length is useful for line drawing animations (stroke-dasharray).
- Curves are measured by sampling, accurate to about 0.01 percent.
- Round to 2 or 3 decimals for a smaller path.
Common questions
- What is the d attribute?
- The list of drawing commands inside an SVG path, such as M for move and C for curve.
- What is the difference between absolute and relative?
- Capital letters use fixed positions. Small letters move from the last point.
- Why is the bounding box not the control points?
- It uses the real curve, so it hugs what is drawn.
- Is my path uploaded?
- No. All work is done in your browser.