Home
SVG
Interactive SVG Path (d Attribute) Visualizer & Bézier Inspector
Vector EngineInteractive Bézier HandlesZero Data Upload

Interactive SVG Path (d Attribute) Visualizer & Bézier Inspector

Parse SVG path commands (M, L, C, S, Q, A, Z) into interactive visual curves with touch-friendly draggable handles. Tweak coordinates, transform paths, and export clean vector markup.

150%
Snap:
Handles:
(0,0)cp1cp2cp1cp2cp1cp2cp1cp2M#1C#2C#3C#4C#5Z#6
--, --|150%|6 cmds
Stroke:
Width:3px
Fill:
SVG Path Data Output(6 cmds)
Directly edit SVG d data below (instant bidirectional sync):
Path Geometry SpecsClosed Shape
Total Commands
6
Total Length
0 px
Bounding Box
210 × 210 px
Min / Max Bounds
[0,0] → [210,210]

Command Sequence & Nodes

Tap to select, adjust values, or append segments.

M#1 MoveTo
X:
Y:
C#2 CubicBézier
cp1.x:
cp1.y:
cp2.x:
cp2.y:
end.x:
end.y:
C#3 CubicBézier
cp1.x:
cp1.y:
cp2.x:
cp2.y:
end.x:
end.y:
C#4 CubicBézier
cp1.x:
cp1.y:
cp2.x:
cp2.y:
end.x:
end.y:
C#5 CubicBézier
cp1.x:
cp1.y:
cp2.x:
cp2.y:
end.x:
end.y:
Z#6 ClosePath
Closes loop back to subpath start point (140, 70)

100% Private Browser Execution

All data processing, parsing, and compilation execute strictly inside your local browser memory. Zero external server uploads.

Instant Live Preview

Instant real-time reactive computation delivers immediate feedback on every keystroke with zero network latency.

Production Standards & Compliance

Outputs clean, cross-browser CSS and visual values verified against modern web layout standards.

Formula & Reference Guide

SVG Path (d Attribute) Architecture & Bézier Curve Guide

Comprehensive engineering guide to SVG path command syntax, cubic and quadratic Bézier curve mathematics, elliptical arcs, and coordinate normalization.

SVG Path (d Attribute) Architecture & Bézier Curve Guide — Client-Side Calculation Flow & Methodology
SVG Path (d Attribute) Architecture & Bézier Curve Guide — Client-Side Calculation Flow & Methodology

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
M / m (MoveTo)x, yEstablishes a new current point without drawing a visible line segment.—
L / l (LineTo)x, yDraws a straight line from the current point to the target coordinates.—
C / c (Cubic Bézier)x1 y1, x2 y2, x yConstructs a smooth curve governed by two independent control handle points.—
Q / q (Quadratic Bézier)x1 y1, x yDraws a parabolic curve utilizing a single shared tangent control point.—
A / a (Elliptical Arc)rx ry x-rot large-arc sweep x yTraces an arc segment along the perimeter of an ellipse with specified radiuses and flags.—

Pro Tips & Best Practices

Uppercase commands (M, C, L) represent

Uppercase commands (M, C, L) represent absolute coordinates, while lowercase commands (m, c, l) indicate coordinates relative to the previous point.

Smooth curve commands

Smooth curve commands (S for cubic, T for quadratic) automatically reflect the previous control point to ensure zero-kink curvature continuity.

Always end closed path contours

Always end closed path contours with the Z or z command to guarantee clean vector fills and prevent sub-pixel hairline rendering gaps.

Common Gotchas & Troubleshooting

⚠️Path appears completely broken after moving or scaling coordinates

Check whether lowercase relative commands were mixed with absolute coordinates. Converting the entire path to uppercase absolute coordinates resolves relative drift.

⚠️Elliptical arc curves in the opposite direction or takes the long route

Toggle the large-arc-flag (0 or 1) and sweep-flag (0 for counter-clockwise, 1 for clockwise) to select the desired geometric arc quadrant.

Frequently Asked Questions

What is the difference between Cubic (C) and Quadratic (Q) Bézier curves?▼

A cubic Bézier curve uses two control points (start handle and end handle), allowing for S-shaped inflection points, while a quadratic curve uses only one control point, forming a single parabolic arch.

How does the smooth shortcut command S work?▼

The S command draws a cubic Bézier curve where the first control point is automatically calculated as the reflection of the second control point from the preceding C or S command, ensuring smooth tangent continuity.

What do the large-arc-flag and sweep-flag do in the A command?▼

Given two points and two radiuses, four possible arcs can connect them. The large-arc-flag chooses whether to draw the arc greater than 180° (1) or less than 180° (0). The sweep-flag determines clockwise (1) or counter-clockwise (0) drawing direction.

Why normalize relative commands into absolute coordinates?▼

Absolute coordinates make path slicing, programmatic bounding box calculations, SVG morphing, and path optimization in icon pipelines significantly more predictable.