SVG Path Generator
Click on the canvas to draw SVG paths. Supports straight lines, quadratic and cubic bezier curves. Copy the SVG or path data.
About SVG Path Generator
Draw SVG paths interactively by clicking on the canvas. Supports straight line segments (L), quadratic bezier curves (Q), and cubic bezier curves (C). The generated SVG is standard, clean code you can use directly in HTML or as an .svg file.
SVG Path Commands
M โ Move to start ยท L โ Line to point ยท Q โ Quadratic bezier curve ยท C โ Cubic bezier curve ยท Z โ Close path back to start
How to Use
- Choose a Shape Preset or start with a blank canvas.
- Click on the canvas to add control points for your path.
- Drag handles to adjust curve control points (for Bezier curves).
- Toggle Closed Path to connect the end point back to the start.
- Click Copy SVG Path to copy the
dattribute value.
How It Works
Each click generates an SVG path command: M (move to), L (line to), C (cubic Bezier curve), or Z (close path). The path data string is built incrementally and rendered as an SVG element in real time.
Example
Create a custom wave divider: add a starting point, two Bezier curves, and an ending point. Close the path and fill it with a color. Export the path d value and use it in your website's SVG divider element.
Frequently Asked Questions
d attribute of a <path> element. It can describe any shape from simple lines to complex illustrations.