Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that Inkscape does not have the ability to export selected objects as svg, but is there a workaround that people have found that works?

share|improve this question
Just shooting from the hip but wouldn't Copy, new Document, Paste, Save work? – Scott May 19 '13 at 3:59
I was almost sure one could do that with the command-line option. There is indeed an export-plain-svg option, but it does not respect the export-id :'( – Drasill May 20 '13 at 20:59
I don't have enough rep here to answer, but I wrote a script to batch export Inkscape layers into separate SVG - you could put each of your objects on a different layer. The script is here: – Andreas Gohr Jul 22 '15 at 18:46
up vote 37 down vote accepted

What I ended up doing is the following:

  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web

Not as quick as I would like but quicker than creating a new document for each graphic that you want to export.

share|improve this answer
Your method also saves the rest of the document, just outside the viewport, thus increasing filesize (at least in my tests). – benebun Oct 29 '13 at 13:42
Adding the Save as Copy shortcut: Ctrl+Shift+S – Kai Noack Jul 2 '14 at 7:46
@benebun Have you found a way to fix that without creating a new document each time? – Matt Dec 30 '15 at 6:48
@broccoli_soup: That's brilliant! Thanks a lot. – ipse lute Jul 18 at 18:40

I keep another instance of Inkscape running on the side and just copy-paste the object I want to save into the scratch document, then save.

Another option if you just want the path data is to select the object, Shift+Ctrl+X to open the XML editor, grab the pieces you want (usually the d attribute), then paste to wherever.

share|improve this answer

protected by Darth_Vader Dec 1 '14 at 13:44

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.