How to convert JPG and PNG images to SVG

Martin Brinkmann
Nov 27, 2017
Updated • Nov 15, 2019
Development, Misc

Traditional image formats such as JPG, PNG or GIF are very popular, but they have disadvantages that makes their use less than ideal for certain applications.

If you create a responsive website for instance, you want images that look good regardless of the width and height they are displayed in. Traditional images look bad when you enlarge them too much for instance.

You may need to display the image in different sizes as well, for instance as a thumbnail on a blog's index page, and as a full resolution image in the linked article.

While you can create different versions of a single image so that the most appropriate one is picked, it means that you need more storage for that among other things.

The SVG image format is a vector format. This means that its size can be decreased or increased without a loss of quality (scalable). That's great if you need to display the image in multiple places using different resolutions.

Other advantages of the SVG are that its size is usually much smaller, and that it gives webmasters some flexibility when it comes to making changes to it as some can be done in CSS directly.

One example: Terence Eden recreated the logos of popular Internet companies like Twitter, Amazon, WhatsApp, YouTube or Reddit in SVG. The size of the logos was reduced to less than 1 Kilobyte, sometimes as low as 200 bytes. The Twitter logo in PNG format for instance has a size of 20 Kilobytes, the SVG version a size of 397 bytes.

SVG is a good format for logos and icons, but not really suitable when it comes to photos and other types of images that show many different objects.

Converting to SVG

convert image to svg

This guide concentrates on applications that you may use to convert images to SVG directly. This is not a tutorial on using applications designed to create vector graphics from scratch. You can use vector graphics editors such as Adobe Illustrator (our no links to Adobe policy still stands), Inkscape, or LibreOffice Draw for that.

Plenty of free converters are available that you can run online, but they are fairly limited when it comes to the conversion process. While they may be sufficient for converting a simple logo that is available as a png or jpg to svg, results are not super good most of the time.

Here is how I evaluated the services: I downloaded the Ghacks logo, and tried the conversions on several dozen SVG converters. I judged the result, and discarded any service that did not deliver good results.

  • Aconvert -- The service takes a local file or an URL as input. The only option that it provides is to change the resolution of the image. The resulting image looked like the Ghacks logo, but its size was almost double the size of the PNG version of the logo.
  • Vector Magic -- Available as an online converter and desktop program for Windows. It is not free however (online costs $7.95 per month, desktop edition a one-time payment of $295). Results of the online edition are great however, and you get lots of options to edit or modify settings, and a side by side display of the original image and the svg copy.
  • Vectorizer -- Another free service. This one comes with a wizard that you can to pick the best output parameters (blur, colors), or you can set these directly. The results were good with some tweaking, and the size of the resulting image was a third less than the original PNG logo.

Now You: Know of another online service or program to convert images to SVG format?

How to convert JPG and PNG images to SVG
Article Name
How to convert JPG and PNG images to SVG
Find out how to convert image formats such as PNG or JPG to the vector-based image format SVG online, and why you may want to do so.
Ghacks Technology News

Tutorials & Tips

Previous Post: «
Next Post: «


  1. Rob said on August 7, 2021 at 5:20 pm

    Vectormagic is no longer free.
    Try this one instead:

  2. Alex said on December 12, 2018 at 7:34 am
  3. Pete said on September 11, 2018 at 3:46 pm

    Hi and thanks for the info.

    Second link is dead,
    First and third links output the SVG as a standard file good to use if you work with xlm. If you need a real time vector graphic image, say if you want to convert your SVG to an icon, this standard SVG file is useless since it is on a large page and the output would be Mini Mini, cant see the icon as a one pixel icon :)

    1. Martin Brinkmann said on September 11, 2018 at 4:16 pm

      All links should work now. Thanks!

  4. TelV said on November 30, 2017 at 10:40 am

    Basic online services with the option for paid for conversions with more enhancements:

  5. Adam said on November 29, 2017 at 2:43 pm

    This is called *image tracing* (you can find it in Wikipedia) and the best online tool is

  6. Heimen Stoffels said on November 27, 2017 at 11:52 am

    This is where Linux definitely has an advantage. Install imagemagick and just type

    convert imagea.png imageb.svg

    in a terminal window and bam!
    (for even more speed, you can even create an alias for it using Bash or Fish (or whatever shell you prefer)).
    Or you can use the Imagemagick GUI tool.

    1. Brandon said on November 27, 2017 at 12:47 pm

      you can use imagemagick on windows too

  7. Tom Hawack said on November 27, 2017 at 10:11 am

    Too many add-ons have disgraceful, hardly recognizable toolbar buttons, hence I happen to modify them in order to have them nicely displayed on my toolbars. Meanwhile several new or updated Firefox add-ons have their toolbar buttons in the svg format.

    When I wish to modify these buttons I may either replace them with a css line that I include in my Stylish add-on’s data or directly change them in the add-on’s installed folder in my profile (I always install add-ons “unpacked” with extensions.alwaysUnpack = true). In the latter case problem arises when these icons are svg.

    I’ve tried to find online converters png->svg but the result was lousy with the only site I found, PicSvg []
    I will try Aconvert and Vectorizer mentioned in the article.

    1. Tom Hawack said on November 30, 2017 at 12:21 am

      I didn’t mention I’d be back but I am : Aconvert does a marvelous job. Just what I needed.

  8. kktkkr said on November 27, 2017 at 8:28 am

    Even if the services provide an SVG that’s surprisingly large, you might want to try compressing them with a tool like SVGO to see if you can get a smaller output with reasonable quality.

    1. Bruno said on November 28, 2017 at 11:08 pm

      Aconvert completely fakes the SVG. It just creates SVG with embedded data URI containing a regular PNG.

      1. Aditya said on January 23, 2019 at 3:32 pm

        Exactly. They are a waste of time.

    2. jupe said on November 27, 2017 at 9:02 am

      Yeah I think I read somewhere that’s what Mozilla did with the new Firefox animations.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.