SVG Path Editor

Visually edit SVG path d attributes with interactive control points, command palette, and real-time preview.

About This Tool

The SVG Path Editor is a free, browser-based visual tool for creating and editing SVG <path> elements. SVG paths are defined by the d attribute, a compact string of commands like M (moveto), L (lineto), C (cubic bezier), Q (quadratic bezier), A (arc), and Z (close). Writing these commands by hand can be tedious and error-prone, especially for complex curves. This editor lets you work visually: drag anchor points and control handles directly on an interactive canvas while the path string updates in real time.

The tool supports the full SVG path command set — moveto, lineto, horizontal line, vertical line, cubic and smooth cubic bezier, quadratic and smooth quadratic bezier, elliptical arc, and close path. You can add new segments from the command palette, delete existing ones, or type raw d attribute text and see it rendered instantly. A grid overlay with snap-to-grid makes it easy to create pixel-perfect shapes, and zoom controls let you work at any scale.

Each command's parameters can be edited either by dragging points on the canvas or by entering precise values in the parameter editor. Control handle lines are displayed for bezier curves so you can see how each control point influences the curve. The path info panel shows the total path length and bounding box dimensions, which is helpful when sizing icons or planning animations.

If you work with CSS and SVG together, you may also find the Color Converter helpful for picking stroke and fill colors, or the CSS Animation Generator for animating your paths with keyframes. For generating CSS layout code alongside your SVGs, check out the CSS Layout Generator.

All processing happens entirely in your browser. No data is sent to any server — there are no network requests, no logging, and no third-party services involved. You can safely use this tool with proprietary icon designs and production SVG assets.

How to Use

  1. Paste an existing SVG path d attribute into the Path d attribute text area, or click a Preset (Circle, Star, Heart, Arrow, Checkmark) to load a starting shape.
  2. Drag the green anchor points on the canvas to reposition path endpoints. Drag blue diamond control points to adjust bezier curve handles.
  3. Click a command in the Command List to select it. Edit its parameters precisely in the parameter editor panel below the list.
  4. Use the Add Command palette to append new segments (M, L, H, V, C, S, Q, T, A, Z) to the path.
  5. Toggle Grid and Snap to align points to the grid. Adjust zoom with the In/Out buttons or mouse scroll wheel.
  6. Toggle Handles to show or hide control-point guide lines for bezier curves.
  7. Click Copy d or press Ctrl+Shift+C to copy the path string, or Copy SVG to copy the full SVG element. Click SVG to download the file.

Popular SVG Path Examples

View all SVG path examples →

FAQ

What SVG path commands are supported?

All standard SVG path commands are supported: M (moveto), L (lineto), H (horizontal line), V (vertical line), C (cubic bezier), S (smooth cubic), Q (quadratic bezier), T (smooth quadratic), A (elliptical arc), and Z (close path). Both absolute (uppercase) and relative (lowercase) forms can be parsed from input text.

Can I paste an existing SVG path?

Yes. Paste any valid SVG path d attribute string into the text input and the editor will parse it and render the interactive control points. You can then drag points, add or delete segments, and copy the updated path back.

How do I add a new segment to the path?

Click one of the command buttons (M, L, H, V, C, S, Q, T, A, Z) in the Add Command palette. A new segment with default coordinates will be appended to the end of the path. You can then drag the new point to the desired position or edit its parameters numerically.

What do the different colored points mean?

Green circles are anchor points — the start and end of each segment. Blue diamonds are control points for bezier curves — they define how the curve bends. A red highlight indicates the currently selected command. Dashed lines connect control points to their associated anchors.

How does snap-to-grid work?

When Snap is enabled, dragging a point will round its coordinates to the nearest grid increment (default 10 units). This makes it easy to create clean, aligned shapes. You can also toggle the grid visibility independently of snapping.

Can I export the SVG as a file?

Yes. Click the SVG download button in the toolbar to download the path as a standalone .svg file. You can also click Copy SVG to copy the full <svg> element markup to your clipboard for pasting into HTML or CSS.

Is my data safe?

Yes. All editing happens entirely in your browser using JavaScript and the native SVG DOM API. No data is sent to any server. You can verify this by checking the Network tab in your browser's developer tools while using the tool.

Related Tools