Extracting Embedded Images From Inkscape SVG

This article provides a straightforward guide on how to extract and save raster images (like PNGs or JPEGs) that have been embedded inside an Inkscape SVG file. Whether you need to recover an original photo or export a graphic asset, you will learn the quickest methods using Inkscape’s built-in extraction tool, as well as a clever manual workaround using standard file unzipping techniques.

Method 1: Using Inkscape’s Built-In Extract Image Feature

Inkscape has a dedicated function that automatically extracts an embedded image and saves it as a separate file on your computer, replacing the embed with a link.

  1. Open the SVG file in Inkscape.
  2. Select the embedded image you want to extract by clicking on it.
  3. Navigate to the top menu and select Extensions > Images > Extract Image…
  4. A dialog box will appear. Choose your desired Directory for the saved file and give it a name.
  5. Ensure the Link extracted image option is checked if you want the SVG to reference the new external file, or uncheck it if you just want a copy of the image.
  6. Click Apply. Inkscape will save the image to your specified folder.

Method 2: The Right-Click Context Menu

For a quicker shortcut within the canvas canvas, you can use the interactive context menu.

  1. Right-click on the embedded image inside your Inkscape workspace.
  2. Select Extract Image… from the dropdown context menu.
  3. Choose your destination folder, name the file, and click Save.

Method 3: The Compressed File Workaround (For Bulk Extraction)

If you have an SVG file with numerous embedded images, extracting them one by one can be tedious. Because SVG files are XML-based, embedded images are stored as raw base64 data. If you save your Inkscape file as a Compressed Inkscape SVG (.svgz), you can actually extract the media directly.

  1. In Inkscape, go to File > Save As… and choose **Compressed Inkscape SVG (*.svgz)** as the format.
  2. Change the file extension of the saved file from .svgz to .zip.
  3. Use any standard unzipping software (like 7-Zip, WinRAR, or Built-in Windows/Mac extractors) to unzip the file.
  4. Open the extracted folder to find a dedicated images directory containing all your embedded graphics in their original formats.