"Turn this PNG into an SVG" sounds like any other format conversion, but it isn't. The principle and the limits come first, so the result doesn't catch you off guard.
Why this conversion is different
Converting PNG to JPG saves the same pixels in a different way. A PNG is a grid of pixels, while an SVG is a description of shapes and curves, and nothing in one maps directly onto the other. To get from PNG to SVG, a program has to look at the image, guess what it contains and redraw it as shapes: "this is a red circle, that is a blue rectangle." That process is called tracing, or vectorizing.
- The result is not identical to the original. Edges shift a little and small details can vanish.
- What stays sharp when you zoom in is the outline of the newly drawn shapes. Detail that wasn't in the original doesn't appear.
- Results vary widely with the kind of image, even when the file type is the same PNG.
Measured results
Several images were converted to SVG with this site's converter, and the file sizes were measured at different color and detail settings.
| Image | Original PNG | 4 colors, simple | 8 colors, medium | 16 colors, medium | 32 colors, precise |
|---|---|---|---|---|---|
| Flat icon 128×128 | 2.6KB | 0.6KB | 1.5KB | 1.0KB | 12.4KB |
| Shape logo 300×300 (3 colors) | 5.9KB | 2.5KB | 4.3KB | 4.3KB | 10.7KB |
| Logo with text 300×300 | 9.3KB | 4.9KB | 16.0KB | 13.0KB | 95.2KB |
| Gradient 300×200 | 33.7KB | 1.2KB | 3.4KB | 6.2KB | 24.9KB |
| Photo 960×1280 (a chicken dish, taken for this guide) | 2.9MB | 575KB | 2.0MB | 3.5MB | 11.3MB |
What the table shows:
- Simple icons and shape logos get smaller as SVG. With few colors and clear edges, a handful of shapes is enough.
- A logo with text is sensitive to the settings. Curved letters need a lot of shapes. The same image ranged from 4.9KB to 95KB, and at 8 colors, medium it came out 1.7 times larger than the original PNG.
- Higher settings don't mean better results. 32 colors, precise mostly just made the file bigger. For logos, a lower setting is often cleaner.
- A gradient splits into bands when there are few colors. At 4 colors the file is smallest, but the smooth transition is gone.
- No setting suits a photo. The precise setting produced 11.3MB (about 70,000 shapes), roughly 4 times the original PNG (2.9MB), and even 16 colors, medium was larger than the original. Dropping to 4 colors cuts it to 575KB, but the colors collapse to four and the photo no longer looks like a photo. The converter also warned that the image had too many colors.
Seeing the difference: a logo and a gradient
Numbers don't show what the output looks like. For a visual check, two images drawn for this guide, a round logo with text and a smooth gradient, were converted with this site's converter and placed side by side. They are different images from the ones in the table above, so the figures don't match.

| Image | Original PNG | 4 colors, simple | 8 colors, medium | 16 colors, medium | 32 colors, precise |
|---|---|---|---|---|---|
| Logo with text 300×300 | 11.5KB | 4.3KB | 15.7KB | – | 149KB |
| Gradient 300×200 | 52.3KB | 2.8KB | – | 12.6KB | 26.4KB |
Looking at the images shows things the numbers hide.
- The letters in the logo come out thicker and rounder than the original. They are still readable at 4 colors, but the letterforms differ from the original, and the ring's edge is slightly wobbly instead of smooth.
- Raising the settings doesn't improve the logo. 32 colors, precise is about 35 times the size of 4 colors, yet the visible quality is about the same.
- The gradient shows steps at every setting. At 4 colors it breaks into large blocks of color, and at 16 and 32 colors into layered patches. The smooth transition never comes back. Here the SVG ended up smaller than the original PNG, but a small file doesn't make the result usable.
These figures apply only to these two images at the settings listed, and they change with the content. The photo in the first table's last row is described in how the measurements were made.
Images that work well
- Logos, icons and symbols with few colors (usually 2 to 8) and clear edges
- Flat-color illustrations and stickers
- PNGs with a transparent background (the transparency is kept)
- Images with a large enough original resolution (small ones give rough outlines)
Images that don't suit it
- Photos and other realistic images. This site shows a warning on the result screen when it detects an image with many colors.
- Images with lots of gradients, shadows or texture
- Very small images, such as a 16×16 favicon. There's too little outline information, so the shapes look angular.
- Logos saved as JPG, with compression noise. Areas that should be one color contain slight variations, so the shapes split up messily. Try fewer colors and set the detail to simple.
Choosing settings
- Colors: Start a little above the number of colors the image really uses. For a 3-color logo, 4 to 6 is enough. Raise it if colors look off, lower it if the file is large.
- Detail: Start with Simple or Medium, and move to precise only when outlines turn mushy. Precise adds many shapes and the file grows fast.
- The size you pick is only the display size. An SVG stays sharp when enlarged, but tracing runs on a copy reduced to at most 1024px on a side, so the original's very fine details aren't captured.
What to check after converting
- Zoom in. Enlarge the result preview and look for bumpy or broken outlines.
- Compare colors. Make sure the colors haven't shifted and gradients haven't split into bands.
- Text. Text becomes shapes, not a font. If it's hard to read or the letterforms changed, use the original design file.
- File size. If the result is much larger than the original, lower the colors and detail and convert again.
- Background. An original with no transparency, such as a JPG, gets its background as one big shape. Delete it in an editor if you don't want it.
- Where it will be used. For a trademark or brand logo, even a small change in shape can cause trouble. Enlarge it and check by eye before you use it.
Limits
- Tracing runs on an image reduced to at most 1024px on a side. For larger images, the result screen tells you.
- At 20,000 or more shapes (paths), the converter warns that the file may be slow to open or edit, and above 200,000 it stops the conversion.
- The maximum number of colors is 64.
- Animated GIF and WebP files convert only their first frame, and multi-page TIFFs only the first page.
The reverse direction is covered in Choosing the Resolution for SVG to PNG, and the SVG format itself is explained in What is an SVG file?.