✏️ SVG Path Editor

What Is an SVG Path Editor?

SVG paths are the backbone of scalable vector graphics — every curve, line, and shape is defined by a sequence of commands (M, L, C, Q, A, Z) and coordinate pairs in a d attribute. Editing path data by hand is tedious and error-prone, especially for complex Bézier curves with multiple control points.

This visual editor lets you load any SVG path, see its control points on a canvas, and drag them to reshape the curve in real time. You can append new line, curve and close commands and delete any command from the list. The path data updates live, ready to paste back into your SVG file or component.

How to Use This Tool

  1. Paste or import your SVG path — Enter the d attribute value directly, or import an SVG file and pick which shape to edit. The editor converts the path to absolute commands so every control point sits where it is drawn, and adopts the file's viewBox.
  2. Drag control points — Click and drag anchor points to reshape segments. Bézier handles appear for curve commands — drag them to adjust curvature and tension.
  3. Add or remove points — Use the + M, + L, + C, + Q and + Z buttons to append a command after the last point, and delete any command from the command list. To turn a line into a curve, delete it and add a C or Q in its place.
  4. Copy the updated path data — The d attribute string updates in real time as you edit. Copy it and paste it into your SVG markup, React component, or design tool.

Worked example: paths round-tripped through the editor

When you load a path, the editor rewrites it as absolute commands. On October 12, 2026 we ran its conversion on six paths in Chromium 141 and compared the original and the converted path with getTotalLength() and 51 points sampled along each.

PathInputOriginal → converted length
Relative commands with implicit repeatsm10 10 l20 0 0 20 -20 0zidentical (80.00 → 80.00)
Minified numbersM10-5L.5.5 20,20identical
Smooth curve (S)… S150 150 180 80identical
Material "favorite" heart iconM12 21.35l-1.45-1.32C5.4 …identical
Arc with spaced flagsa20 20 0 0 1 40 0identical
Arc with compact flags (SVGO style)a20 20 0 0140 0identical since v181 (before: arc deleted, 62.84 → 0, output just "M 10 10")

Frequently Asked Questions

What do the letters in an SVG path mean?+
Each letter is a command: M (move to), L (line to), C (cubic Bézier), Q (quadratic Bézier), A (arc), Z (close path). Uppercase is absolute coordinates; lowercase is relative.
Can I edit multi-path SVGs?+
One path at a time. Import an SVG and choose the shape you want from the list; rectangles, circles, ellipses, lines, polylines and polygons are converted to path data first. Export gives you that one path, so for a multi-path icon, edit each shape in turn and paste its d value back into your file.
Will editing change the viewBox?+
No. When you import an SVG the canvas uses its viewBox, and Copy SVG and Download write the same viewBox back out. Presets and pasted path data use a 0 0 200 200 canvas.
Can I create a path from scratch?+
Yes. Start from a preset or a short path such as M 20 20, then append commands with the + L, + C, + Q and + Z buttons and drag their points into place. Each new command starts just to the right of the last point.
How do I round coordinates to reduce file size?+
Points you drag snap to a precision that suits the canvas: two decimals on small canvases such as a 24-unit icon, one decimal up to 600 units, whole numbers above that. Imported coordinates are kept to three decimals. For rounding a whole file, run it through the SVG Optimizer's Maximum preset.
Is there a way to mirror or flip a path?+
You can manually negate X or Y coordinates for reflection. For batch transforms, consider processing the SVG through a tool like SVGO before importing.
Can I import an existing SVG file and edit its paths?+
Yes. Choose an SVG file under Import SVG or drop it on the canvas. The editor reads every path, rect, circle, ellipse, line, polyline and polygon, lists them so you can pick one, converts it to absolute commands and shows its anchor and Bézier control points for dragging. Transform attributes are not applied, and the tool warns when a shape sits inside one. Copy the d string or download the result as SVG.
Does the editor handle multi-path SVGs?+
It reads them, but edits one shape at a time: pick the shape from the list after importing. There are no layers, visibility toggles or grouped export; the output is a single path with the fill and stroke set in the editor.

📖 Learn More

Related Article How to Animate an SVG → Related Article How to Create Custom Blob SVG Shapes →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service