Start a project

Tool 27 of 100 · SVG

SVG Path Editor

Paste the d attribute of an SVG path, drag its points to edit it, and get shorter path data, absolute or relative, moved and scaled exactly as you need.

SVG Path Editor at a glanceIllustration: 1, A path d; 2, processed in your browser; 3, Edited path.SVG Path Editor1A path d3Edited path2In yourbrowser
1 A path d 2 processed on your device 3 Edited path

SVG Path Editor

Path data

Move and scale

Preview (drag the points)

Path data
As an SVG file

Segments (absolute)

#CommandValuesEnds at

01

What it does

Parses SVG path data, lets you drag points, converts absolute and relative, minifies, transforms and measures paths.

  • Every command: M, L, H, V, C, S, Q, T, A and Z
  • Drag end and control points in the preview
  • Absolute or relative output with set precision
  • Minify with implicit commands and H and V

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

Path data and an SVG file, with a Copy and a Download button on every result.

  • SVG
  • Paths
  • Icons

Why it matters

SVG icons are just path data, but that data is unreadable: a string of letters and numbers where one wrong digit warps the shape. Design tools export it with too many decimals and absolute coordinates, which makes files bigger than they need to be.

This editor parses the path, draws it with draggable points, and writes it back the way you choose: relative commands and fewer decimals are usually much shorter. Moving and scaling are exact, which is handy for aligning an icon to a 24-pixel grid.

How it works

  1. InputThe d attribute of an SVG path
  2. In your browserParsed into commands, converted and transformed
  3. OutputA cleaner path, measured and previewed

Where it fits in a designer's workflow

  1. Plan
  2. Design
  3. Build
  4. Test
  5. Launch
Tidying icons and editing shapes by hand.

By the numbers

The example paths written absolute and relativeHeart: absolute: 182 chars; Heart: relative: 192 chars; Arrow: absolute: 25 chars; Arrow: relative: 22 chars; Circle (arcs): absolute: 41 chars; Circle (arcs): relative: 40 chars; Wave (Q and T): absolute: 23 chars; Wave (Q and T): relative: 20 chars; Two subpaths: absolute: 50 chars; Two subpaths: relative: 46 charsHeart: absolute182 charsHeart: relative192 charsArrow: absolute25 charsArrow: relative22 charsCircle (arcs): absolute41 charsCircle (arcs): relative40 charsWave (Q and T): absolute23 charsWave (Q and T): relative20 charsTwo subpaths: absolute50 charsTwo subpaths: relative46 chars
Rewritten by this tool at 2 decimal places. Relative commands often save characters because the numbers are smaller, but not always; the editor shows both so you can keep the shorter one. Source: SVG 2: paths.
Show the numbers as a table
PathOriginalAbsoluteRelativeCommands
Heart17418219210
Arrow2125225
Circle (arcs)4041404
Wave (Q and T)2023203
Two subpaths51504610

How to use it

  1. Paste a path's d attribute, or pick an example.
  2. Drag points in the preview to adjust the shape.
  3. Choose absolute or relative output, precision and minify.
  4. Copy the path data or download it as an SVG.

FAQ

Will changing precision change the shape?

Slightly, at very low precision. One or two decimals is invisible for icons drawn on a 24 or 48 unit grid.

Why is relative output shorter?

Relative commands use small numbers (the distance from the last point) instead of full coordinates, so there are fewer digits.

How is length measured?

By sampling each curve finely and adding up the straight pieces, accurate to a fraction of a unit. Useful for stroke-dasharray animations.

Is my SVG uploaded?

No. Everything runs in your browser.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk