Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
CSS-Tricks
Search

Tools to Visualize and Edit SVG Paths (Kinda!)

Chris Coyier onUpdated on

Get affordable and hassle-free WordPress hosting plans with Cloudways —start your free trial today.

It was brought up at theSVG Summit the other day, wouldn’t it be nice when working with SVG to be able to work with it both ways at once?

  1. See and edit the code, and see the results visually
  2. See and edit the visual shapes, and see the code change

There might not be the perfect one true tool, but there are certainly some ideas getting there!

Anthony Dugois’sSVG Path Builder

I’d embedthe Pen here, but you really need a bit more space to play with it. Here’s a video of how it works:

It shows you the code output, but you can’t adjust the code to see the changes back in the visual part. It still does an incredible job of showing you the different types of curve commands available in theSVG path syntax.

Yann Armelin’sSvgPathEditor

I’m adding this in May 2020, and I think it’s the closest one to perfect!

Copy and paste some path data in there and it just works. You can play with the visual area, dragging points and curve points around, or edit the path data itself, or, the path data broken out into a form with individual controls.

Sten Hougaard’sSVG manipulate paths

A Pen by Mr. Hougaard has some pre-set curves that you can drag around and play with.

It doesn’t just give you the data, but also gives you a complete element. It’s also one-directional, no changing the code by hand.

Varun Vachhar’sXVG

This Chrome extension doesn’t let you see the SVG code or let you manipulate anything, but it does show you the points and curve handles that make up an SVG anywhere you find one on the web, giving you a bit of a behind the scenes look.

It’s really cool how you can invoke this anywhere. It would be great to see it evolve with interactive manipulation capabilities and show the output of those changes.

Bennett Feely’sClippy

Clippy isn’t SVG, it’s for CSS clip-path, but I think you’ll easily see how this kind of UI would be very cool for SVG manipulation and seeing the code as you do things.

Ana Tudor’s Cubic Bézier curve with SVG

This one I can embed right here:

No editing of the code directly, but it’s very clear from the interactions what parts of the code you are changing when you manipulate the SVG curve control points.

Brent Jackson’s Paths

Addingthis one! I’m so glad it was pointed out because it seems like the closest thing to being able to edit onboth sides: code and visually.

Graphics Software: Visual Only

Remember the point here is searching for UI that connects the idea ofvisual editing andcode editing. Vector editing software like Adobe Illustrator is visual only in that there are tools to manipulate graphics visually, but you don’t know how that is affecting the code.

You can export the code and look at it, but that’s not the realtime connection we’re exploring here.

Code Editors: Code Only

Code editors like CodePen help tie together code and visual output:

But it’s still a one-way street. You can’t do anything with that visual side other than look at it.

Awaiting the Perfect Tool

Lots of choices; nothing perfect! Nothing that I’ve seen, yet, ties together perfectly code editing and visual editing as equal first-class UI citizens.

Psst! Create a DigitalOcean account and get$200 in free credit for cloud-based hosting and services.

Comments

  1. Kel

    I think these online tools that allow Realtime GUI editing as well as direct Code Editing should qualify?

    Boxy SVG:https://boxy-svg.com (keep both code and gui open at same time)
    Method Draw:http://editor.method.ac (toggle code/design views)

    and a bonus quirky editors:
    * Editor/Optimizer w/pseudo GUI:http://www.petercollingridge.appspot.com/svg-editor
    * Paths:http://jxnblk.com/paths/ (with snapping grid)

  2. Steve Lombardi

    You forgot WebCode (which has been merged into PaintCode):https://www.paintcodeapp.com

  3. Frederic Convert

    Hi

    As alway, nice article.

    Have you already give a try toMethod Draw?
    You can see, draw svg, but also edit the source code

    Cheers

    Frederic

  4. Vladimir Sobolev

    Chris, check this one –http://vectr.com
    You can edit/create svg files online and desktop client available now.

  5. Johannes

    Maybe you could consider Inkscape.
    It is NOT exactly what you seem to search as there is no “free” coding, but a xml-editor where you can add nodes and edit attributes (and you can change nodes by setting coordinates).
    But it is at least a little step up from “visual only”-editing.

  6. Robin

    Random thought: I think the lack of great tooling around this is why I’ve traditionally stuck to very simple SVG illustrations in the past.

    Or maybe I’m just SVG-lazy…

  7. Ginestra

    This one too, although it’s more for editingafter you have some initial code.
    But it does optimization pretty well.
    https://jakearchibald.github.io/svgomg/ by Jake Archibald

  8. Chris Coyier
    Permalink to comment#

    Paul Wiegers wrote in to share his tool,SVG Helper:

    img

  9. Chris Coyier

    Here’s one from Jack Slight:

    See the Pen
    SVG Path Editor
    by Jack Sleight (@jacksleight)
    onCodePen.

This comment thread is closed. If you have important information to share, pleasecontact us.

[8]ページ先頭

©2009-2025 Movatter.jp