Is there a tool to convert 302 PNG images to SVG? I know how to do it one by one using Inkscape, but I need a tool to convert the 302 image at once.

  • Do you want to vectorize them? or put Png inside a svg, which has not much sense.
    – Rafael
    Commented Jun 2, 2015 at 13:54
  • A bit more context would help here. Has Rafael points out, one doesn't really convert PNG files to SVG. One is raster, one is vector.
    – DA01
    Commented Jun 2, 2015 at 16:02
  • Possible duplicate png to svg batch conversion
    – joojaa
    Commented Jun 2, 2015 at 16:04

1 Answer 1


This may help: http://www.commandlinefu.com/commands/view/13286/batch-convert-svg-to-png

Put your files on the same folder. Open your terminal, write

cd (your folder path)

for example

cd /Documents/FilesINeedToConvert

Then copy and paste this:

svg2png(){ png="${1%.*}.png"; inkscape --export-png="$png" --without-gui "$1" && pngcrush -brute -rem alla -rem text "$png" "$png.new" && mv "$png.new" "$png";}

That's for Inkscape, but if you install ImageMagick, you can use these others, here: http://www.imagemagick.org/script/index.php :

this one

for i in *.svg; do convert "$i" "${i%.svg}.png"; done

OR this

find . -name \*.svg -print0 | xargs -0 -n1 -P4 -I{} bash -c 'X={}; convert "$X" "${X%.svg}.png"'
  • 1
    This answer converts SVG to PNG, not PNG to SVG like the question asked... why is it selected as correct?
    – Kelly Bang
    Commented Mar 31, 2020 at 21:41
  • This is distinctly not what OP asked for - how did it get upvoted?
    – warren
    Commented Nov 22, 2021 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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