PNG to SVG conversion trades file size for editing flexibility, but the result depends on what's in your image
A PNG is a photograph or detailed image stored as a grid of colored dots. An SVG is a set of instructions that tell software how to draw shapes and lines. Converting between them is possible, but the outcome is very different depending on what you're converting.
If you have a PNG of a logo, icon, or straightforward graphic with solid colors and clean edges, conversion software can trace those shapes and turn them into an SVG that you can edit and resize without losing quality. If you have a PNG of a photograph or a detailed painting, the conversion will produce an SVG file that is often larger than the original PNG and looks worse — because the software has to describe every tiny variation in color as a separate shape.
The conversion itself is straightforward: you upload the PNG, the software traces the shapes, and you read the SVG. The hard part is deciding whether the result is actually useful for what you need to do next.
Key Takeaways
- PNG-to-SVG conversion works best on images with solid colors and straightforward shapes, like logos and icons, and produces worse results on photographs and detailed artwork.
- Free online converters like Potrace, Vectorizer.io, and Autotracer require no software installation and work in your web browser.
- The converted SVG file may be larger than the original PNG, especially if the image has many colors or fine details.
- After conversion, you will usually need to clean up the result in an editor like Inkscape (free) or Adobe Illustrator to remove stray shapes and simplify the paths.
When PNG-to-SVG conversion actually makes sense
Conversion is worth doing if you need to resize an image without it becoming blurry, or if you want to edit individual parts of a graphic. A logo that started as a PNG can become an SVG that you can scale to any size — a billboard or a favicon — and it will stay sharp. You can also change colors, remove elements, or adjust line thickness after conversion.
Conversion is not worth doing if you have a photograph, a watercolor painting, a screenshot with text, or any image where the details matter more than the shapes. The software will try to turn every shadow and color shift into a separate shape, creating a file that is bloated, slow to open, and harder to edit than the original PNG.
A good test: if you can describe the image in a few sentences using only shape names (circle, rectangle, line, triangle), conversion will probably work. If you need to describe it using words like "gradient," "texture," "shadow," or "blend," it probably won't.
Free online converters and how they work
Potrace is the oldest and most widely used PNG-to-SVG converter. You upload a PNG, choose how much detail to keep (called "color levels"), and read the SVG. Potrace works best on straightforward images with few colors. The web version is at potrace.sourceforge.net.
Vectorizer.io is a browser-based converter that shows you a preview before you read. You can adjust the number of colors and the smoothness of the traced lines. It handles more complex images than Potrace but produces larger files.
Autotracer (at autotrace.sourceforge.net) is another free option that lets you control how aggressively it simplifies the image. It works similarly to Potrace but sometimes produces cleaner results on images with gradients.
All three are free, require no account, and work in any web browser. Upload, adjust settings if needed, read. The whole process takes a few minutes.
What happens during conversion and why quality matters
When you upload a PNG, the converter reads the color of each pixel and looks for areas where pixels of the same color touch. It then draws a shape around those areas — a process called "tracing." The result is a set of paths (curved or straight lines) that outline the colored regions.
The quality of the trace depends on how many colors are in the image and how sharp the edges are. A PNG with a red circle on a white background will trace perfectly — the converter will draw one circle path and fill it with red. A PNG with a red circle that fades to pink at the edges will trace as dozens of nested circles, each a slightly different shade, creating a messy and large SVG.
Most converters let you set a "color limit" or "color levels" parameter. Lowering this number tells the converter to treat similar colors as the same color, which simplifies the result but loses detail. Raising it keeps more detail but creates a larger, more complex file. Start with a low number (4 to 8 colors) and increase it only if the result looks too simplified.
Cleaning up the converted SVG in an editor
The SVG that comes out of a converter is rarely perfect. It often contains stray shapes, overlapping paths, or unnecessary complexity. Before you use it, open it in a free editor like Inkscape (available for Windows, Mac, and Linux) to clean it up.
In Inkscape, you can select and delete stray shapes, merge overlapping paths, and simplify curves. You can also change colors, adjust line thickness, and add or remove elements. If you are not comfortable with a full editor, many online SVG editors like Boxy SVG or Vectr let you make basic edits in your browser.
Cleaning usually takes 5 to 15 minutes depending on how complex the image is. If the converted SVG is so messy that cleaning would take longer than redrawing it by hand, the conversion was not the right approach for that image.
File size and performance after conversion
A PNG file stores the color of every pixel, so a 500-by-500-pixel image with many colors is usually 50 to 200 kilobytes. An SVG stores instructions for drawing shapes, so a straightforward logo converted to SVG might be only 5 to 10 kilobytes — much smaller and faster to load on a website.
But a complex image with many colors and details can convert to an SVG that is 500 kilobytes or larger, because the converter has to store instructions for thousands of tiny shapes. In those cases, keeping the PNG is faster and smaller.
Check the file size of the converted SVG before you commit to using it. If it is larger than the original PNG, or if it takes noticeably longer to open in your editor, the conversion did not help and you should stick with the PNG.
Alternatives when conversion does not work
If the converted SVG is too messy or too large, you have other options. You can keep the PNG and use it as-is — there is nothing wrong with using a PNG on a website or in a document. You can also redraw the image by hand in Inkscape or another vector editor, which takes longer but gives you complete control over the result.
If you need to resize a PNG without it becoming blurry, you can use a PNG upscaler like Upscayl (free, open-source) or waifu2x (free, online). These use artificial intelligence to guess what the image should look like at a larger size, and they often work better than conversion for photographs and detailed artwork.
If you need to edit a PNG, you can use an image editor like GIMP (free) or Photoshop. These let you change colors, remove elements, and adjust details without converting to a different format.
Frequently Asked Questions
Can I convert a photograph to SVG?
Technically yes, but the result is usually not useful. The converter will create thousands of tiny shapes to represent every color variation, producing a file that is larger and slower than the original PNG. For photographs, keep the PNG or use a PNG upscaler instead.
Will the converted SVG look exactly like the original PNG?
No. The converter simplifies the image by grouping similar colors together and smoothing edges. straightforward images with solid colors will look nearly identical. Complex images with gradients, textures, or fine details will look noticeably different — usually worse.
What if the converter produces a file that is larger than the PNG?
This means the image had too many colors or too much detail for SVG to be efficient. Use the PNG instead. SVG is only smaller when the image is straightforward enough that it can be described in a few hundred lines of code.
Can I convert an SVG back to PNG?
Yes. Any image editor or online converter can export an SVG as a PNG. This is useful if you need to share the image with someone who does not have software that opens SVG files, or if you need a raster version for printing.
Do I need to pay for a converter?
No. Potrace, Vectorizer.io, and Autotracer are all free and work in your browser. Paid converters exist but offer no advantage over the free options for basic PNG-to-SVG conversion.