Methods to convert multiple PNG files to SVG at once — online batch tools, Inkscape command line, potrace, and Illustrator actions.
If you have a set of PNG icons, logos, or illustrations that all need to be converted to SVG, processing them one at a time is tedious. Batch conversion lets you upload or process multiple files at once and download all the results together. This guide covers the best methods for batch converting PNG to SVG, from online tools to command-line solutions.
Method 1: Shape to Vector (Online, Up to 10 Files)
The simplest option for small to medium batches:
- Open shapetovector.com
- Drag and drop up to 10 PNG files onto the upload area (or click to browse)
- Click Convert — all files are processed simultaneously
- Click Download to save all SVG files as a ZIP archive
This takes seconds and requires no installation, no account, and no payment. Each PNG is individually analyzed and converted to a separate SVG file, then packaged into a single download.
Best for: Quick batches of up to 10 flat-color PNGs (icons, logos, clipart).
Method 2: Inkscape Command Line (Any Number of Files)
Inkscape includes the potrace tracing engine and can be run from the command line without opening the GUI. This allows scripting batch conversions for any number of files:
# Convert a single file
inkscape input.png --export-type=svg --export-filename=output.svg
# Batch convert all PNGs in a folder (Bash)
for file in *.png; do
inkscape "$file" --export-type=svg --export-filename="${file%.png}.svg"
done
Note that Inkscape's command-line export embeds the PNG inside the SVG by default. For true vectorization, you will need to run the trace bitmap action. An alternative is to use potrace directly (see Method 3).
Method 3: Potrace (Command-Line Tracing Engine)
Potrace is the open-source tracing engine used by Inkscape. It can be installed standalone and used to batch-convert images from the command line:
# Install (macOS)
brew install potrace
# Install (Ubuntu/Debian)
sudo apt install potrace
# Convert PBM to SVG (potrace requires PBM input)
# First convert PNG to PBM using ImageMagick, then trace:
for file in *.png; do
convert "$file" "${file%.png}.pbm"
potrace "${file%.png}.pbm" -s -o "${file%.png}.svg"
done
Note: Potrace works best on black-and-white or single-color images. For multi-color PNGs, use Inkscape's color tracing or an online tool instead.
Method 4: Illustrator Actions (Paid)
If you have Adobe Illustrator, you can use Actions to record a batch workflow: open file, run Image Trace, expand, save as SVG. Then use File → Automate → Batch to apply the action to an entire folder. This is powerful but requires an Illustrator subscription.
Tips for Batch Conversion
- Organize files first. Put all PNGs in a single folder and make sure they are the correct versions (highest resolution, transparent backgrounds).
- Use consistent settings. If files are similar in style (for example, a set of icons), use the same tracing settings for all of them to ensure visual consistency in the output.
- Optimize after conversion. Batch-run svgo on the output folder:
svgo -f ./svg-output/ - Spot-check the results. Open several output SVGs in a browser and zoom in to verify quality before using them in production.