Web Dev

SVG Path Analyzer

Parse and analyze SVG path commands.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type SVG Path Analyzer and press Return.
  2. Paste or type your text into Input.
  3. Adjust the Options on the right if you need to. The defaults are listed below.
  4. Press Analyze, or ⌘↵.
  5. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
Show command breakdownList all path commandsOn or offOn
Simplify pathConvert relative to absolute commandsOn or offOff
Generate complete SVGOutput as complete SVG elementOn or offOff

Example

Real output from Devly, with the default options.

Input
M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80
Total commands
3
Bounding box
10.0, 80.0 → 180.0, 80.0 (170.0 × 0.0)
Command summary
C: 1, M: 1, S: 1
1. M
Move to (absolute) (10.00, 80.00)
2. C
Cubic Bézier curve (absolute) (40.00, 10.00, 65.00, 10.00, 95.00, 80.00)
3. S
Smooth cubic Bézier (absolute) (150.00, 150.00, 180.00, 80.00)

From Terminal

With the free command-line tool installed:

Terminal
devly svgpath "M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80"
# or pipe text in
pbpaste | devly svgpath

Quick Switch also finds it by: svg, path, vector, graphics, d, bezier.

More Web Dev tools