SVG Path Editor

Parse, visualize, and transform SVG path d-attribute strings with live preview, editable command table, and path tools. Free, fast, and works entirely in your browser with no sign-up required.

Updated

Share:
Home/Developer Tools/SVG Path Editor

SVG Path Editor

Parse, visualize, and transform SVG path d-attribute strings with a live preview, editable command table, and powerful path tools.

Path d attribute

Live Preview

viewBox="-10 -5 120 110"

Stats

Commands
11
Approx. length
364.25
Bounding box
100.0 x 90.0
Min X, Y0.0, 5.0
Max X, Y100.0, 95.0
Path bytes
80

Command breakdown
M: 1
L: 9
Z: 1
#CmdDescriptionArguments
0
M
Move to (absolute)
x:
y:
1
L
Line to (absolute)
x:
y:
2
L
Line to (absolute)
x:
y:
3
L
Line to (absolute)
x:
y:
4
L
Line to (absolute)
x:
y:
5
L
Line to (absolute)
x:
y:
6
L
Line to (absolute)
x:
y:
7
L
Line to (absolute)
x:
y:
8
L
Line to (absolute)
x:
y:
9
L
Line to (absolute)
x:
y:
10
Z
Close path

Frequently Asked Questions

What is the SVG Path Editor?

The SVG Path Editor is a free online tool that parse, visualize, and transform svg path d-attribute strings with live preview, editable command table, and path tools. It runs entirely in your browser with no installation or sign-up needed.

What commands?

All SVG path commands: M, L, H, V, C, S, Q, T, A, Z — both absolute and relative.

Can I edit commands?

Yes. The Commands tab shows each segment with editable argument inputs. Changes update preview in real time.

Is data uploaded?

No. All parsing, rendering, and transforms run in your browser.

Is the SVG Path Editor free to use?

Yes, the SVG Path Editor is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.

Does the SVG Path Editor work on mobile devices?

Yes, the SVG Path Editor is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.

Do I need to create an account to use this tool?

No account or registration is needed. Simply open the SVG Path Editor in your browser and start using it immediately. There are no sign-up walls or usage restrictions.

What programming languages or formats does this support?

The SVG Path Editor supports a wide range of popular formats and languages. Check the tool interface for the full list of supported options.

How do I use the SVG Path Editor?

Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.

Which browsers are supported?

The SVG Path Editor works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.

What is the difference between absolute and relative SVG path commands?

In an SVG path, an uppercase command letter is absolute and a lowercase one is relative. Absolute commands position the pen at exact coordinates measured from the SVG's origin, so "L 90 90" always draws a line to the point 90,90. Relative commands move by an offset from the current pen position instead, so "l 90 90" draws 90 units right and 90 down from wherever the pen currently sits. Relative paths often produce smaller files and are easy to translate as a unit, while absolute paths are easier to read and reposition precisely. This editor parses both forms and includes a one-click Transform that converts every command between absolute and relative without changing the rendered shape, so you can switch styles and compare the output side by side.

How accurate is the path length number shown by the editor?

The path length in the stats panel is an approximation, not an exact arc length. For straight segments like L, H, and V it is precise, but for curves — cubic (C, S), quadratic (Q, T), and arc (A) commands — the tool estimates the length by sampling points along the curve rather than solving the curve's geometry analytically. The result is close enough to compare two paths or judge whether a shape is roughly the size you expect, but it should not be used where exact measurement matters, such as setting stroke-dasharray for a precise draw-on animation. For that, read the value back from the rendered element with getTotalLength() in the browser. Paste a path here to get a quick, useful length estimate alongside the bounding box and command count.

How do I reduce the file size of a bloated SVG path string?

Most oversized path strings come from design tools exporting coordinates with many decimal places, like "M 50.000123 4.998761". The biggest quick win is rounding that precision: this editor's Transform tab rounds every coordinate to a number of decimal places you choose, often cutting the string length dramatically while keeping the shape visually identical at normal sizes. Converting absolute commands to relative can shave further bytes because offsets tend to be shorter numbers, and the minified output option strips the spacing into a single compact line. Removing redundant commands and using shorthand like H and V for axis-aligned lines helps too. When the path is tuned, copy the minified version straight into your markup. Paste a path above, round to two or three decimals, and watch the byte size drop in the stats panel.

What do the large-arc-flag and sweep-flag mean in an SVG arc (A) command?

The elliptical arc command takes seven values: "A rx ry x-axis-rotation large-arc-flag sweep-flag x y". After the two radii and the rotation, the two single-digit flags decide which of four possible arcs is drawn between the start and end points. The large-arc-flag chooses the shorter arc (0) or the longer one (1) covering more than 180 degrees. The sweep-flag chooses the direction the arc curves: 0 sweeps counter-clockwise, 1 sweeps clockwise. The final x and y are the arc's endpoint. Because both flags are booleans, swapping either one flips the curve to a completely different path while keeping the same endpoints. This editor lists each A command in the Commands tab with a labelled, editable input for every value, so you can toggle a flag and instantly see which arc it produces in the live preview.

Why does my SVG path render upside down or outside the visible area?

SVG uses a coordinate system where Y increases downward, the opposite of standard math graphs, so shapes built with a bottom-up mindset often appear flipped. A path can also vanish simply because its coordinates fall outside the viewBox, which defines the visible window into the canvas. This editor helps on both counts: the bounding box and min/max X and Y values in the stats panel tell you exactly where your shape actually sits, and the tool auto-fits the viewBox so the path is always visible in the preview. The optional grid with a marked origin makes the coordinate directions obvious at a glance. If the orientation is wrong, the Transform tab can flip the path vertically or horizontally in one click. Paste your path above to see precisely where it lands and correct it.

About the SVG Path Editor

The SVG Path Editor is a free online tool for reading, visualizing, and reshaping the d attribute of an SVG <path>. Paste a path string and it parses every command, draws the result in a live preview, and lets you tweak individual coordinates or apply whole-path transforms — all without leaving the browser. It is built for front-end developers, icon designers, and anyone who has ever stared at a wall of numbers like M 50 5 L 63 38 … and wished they could just see what it draws.

Everything runs locally on your device. Your path data is never uploaded to a server, there is no sign-up, and nothing is stored — handy when the markup comes from an unreleased product icon or a client's brand asset. To get started without typing, five built-in sample paths (Star, Heart, Arrow, Wave, and a Bézier curve) load a working shape in one click.

Reading a path d attribute

The d attribute is a compact string of drawing commands. This editor parses all of them — M, L, H, V, C, S, Q, T, A, and Z — in both their absolute (uppercase) and relative (lowercase) forms. A quick reference for what each one does:

  • M / m — move the pen to a new point without drawing
  • L / l — draw a straight line; H and V are horizontal- and vertical-only shortcuts
  • C / S — cubic Bézier curves (S reuses the previous control point)
  • Q / T — quadratic Bézier curves (T is the smooth continuation)
  • A — elliptical arc, taking radii, rotation, and large-arc/sweep flags
  • Z — close the current subpath back to its start

The Commands tab lists each segment in order with a plain-English description and an editable input for every argument, labelled by role (x, y, x1, rx, and so on). Change a number and the preview updates instantly; you can also delete any command outright.

Inspecting and transforming the path

Alongside the preview, a stats panel reports the figures you actually need when working with vector geometry: the number of commands, an approximate path length, the bounding box (width by height), the min and max X/Y coordinates, the byte size of the string, and a per-command breakdown. The path-length figure is an estimate that approximates curves rather than measuring them exactly, so treat it as a guide rather than a precise arc length.

The Transform tab applies operations to the whole path at once:

  • Scale by independent X and Y factors
  • Translate by a delta in X and Y
  • Round coordinates to a chosen number of decimal places — a simple way to shrink bloated, high-precision output
  • Quick transforms — reverse the path, flip it horizontally or vertically, or convert every command between absolute and relative coordinates

A toggleable grid (with a red cross marking the origin) and a draw-on animation that traces the outline over roughly two seconds make it easier to understand direction and structure.

Exporting clean, usable output

When the shape looks right, the Output tab gives you the path two ways: a minified single-line string for production, and a prettified version with one command per line for readability. You can copy either the bare d value or a complete, ready-to-use <svg> element with a correct viewBox, or download the result as a .svg file.

This makes the SVG Path Editor useful well beyond debugging: trimming coordinate precision to cut file size, normalizing a designer's export to absolute commands, or repositioning an icon so its bounding box sits cleanly at the origin. Paste a path above, watch it render, and reshape it until the markup is exactly what you need.