Home / Guide

How to convert a PNG to vector

A practical, start-to-finish guide to turning raster images into clean SVG files, and fixing the problems people run into most often.

Published by TraceMantra · November 14, 2026 · About 12 minutes to read

You have a PNG and someone needs a vector. Maybe it is a logo for a banner, a design for a T-shirt, or a drawing you want to cut on a vinyl machine. This guide walks through the whole process using the free TraceMantra editor, but most of the advice applies to any tracing tool.

The short answer: open the editor, drop in your PNG, set the number of colors to match the art, pick Faithful for clean logos or Smooth for soft or scanned images, check the Outline view for stray shapes, then download the SVG.

1. Raster and vector in one minute

A raster image (PNG, JPG, WebP, GIF) is a grid of tiny colored squares called pixels. A 500 × 500 PNG holds 250,000 of them. When you enlarge it, each pixel simply gets bigger, which is why the edges turn blocky or blurry.

A vector image (SVG, AI, EPS, PDF) stores shapes instead of pixels: "draw a curve from here to there and fill it with this blue". Because the shapes are described mathematically, they can be redrawn sharply at any size. Vectors are also easy to edit. You can move a single shape, change its color or adjust its outline without touching the rest.

Tracing, also called vectorizing, is the process of looking at the pixels and working out which shapes they represent. That is what a PNG to vector converter does.

2. When tracing works well (and when it does not)

Automatic tracing gives excellent results on images that are already made of clear, flat shapes:

  • logos and brand marks;
  • icons and simple illustrations;
  • text, lettering and signatures;
  • cartoon-style or sticker art with solid colors;
  • black-and-white line drawings and scanned sketches.

It struggles with images that rely on smooth tones: photographs, soft shadows, realistic paintings, and heavy gradients. You can still trace them, but the result will look like a screen print or poster, with visible bands of color. If you need a photo to look like a photo, keep it as a raster image.

A useful rule: if you could imagine someone drawing the image with a set of flat colored shapes, it will trace well.

3. Prepare your image first

Five minutes of preparation usually saves more time than any setting in the tracer.

  1. Find the largest version. Look for the original file, a press kit or a high-resolution download. A 2000-pixel logo carries far more edge information than a 150-pixel thumbnail.
  2. Crop away what you do not need. Extra background, borders and unrelated objects all become extra shapes.
  3. Prefer PNG over JPG. JPG compression adds faint noise around edges, which shows up as specks. If JPG is all you have, it still works; you will just need more despeckle.
  4. Straighten and light scans evenly. For drawings, scan rather than photograph if you can, and avoid shadows across the page.
  5. Use a transparent background when possible. Transparent pixels are ignored, so you will not get a background shape to delete later.

4. Step-by-step: PNG to SVG in TraceMantra

  1. Open the PNG to Vector editor.
  2. Drag your image onto the canvas, click Open image, or paste it with Ctrl+V. A first trace starts automatically.
  3. In the Trace panel, leave the engine on Faithful for crisp art, or switch to Smooth for soft, scanned or blurry images.
  4. Open the Colors panel. Check that the palette matches your image. Lower or raise Palette size until the swatches look right, and delete any color you do not want.
  5. Switch the preview to Outline and zoom in on a curved edge. If it looks wavy or stepped, adjust the settings described below.
  6. When you are happy, click Download SVG. You can also use Copy SVG code to paste it straight into a web page or code editor.

5. Getting the colors right

The palette has more effect on the result than any other setting. Each palette color becomes one layer of shapes, and every pixel in the image is assigned to its closest color.

Pick the right palette size

Count the colors you can actually see in the artwork and start there. A black logo on white needs 2. A three-color logo needs 3 or 4. If you choose more colors than the image really has, the extras get used for the soft anti-aliased pixels along edges, which creates thin outlines and slivers around every shape.

For illustrations with shading, start around 8 to 16. For photographs, 24 to 64 keeps more tone, at the cost of a much larger file. These ranges are untested starting points, not rules: try a few values and keep the one that looks right.

Merge similar colors

The Merge similar colors slider joins swatches that are almost the same. It is handy when the automatic extraction picks two nearly identical blues. A value between 4 and 10 is a reasonable starting point; adjust it by eye.

Edit and remove swatches

Click a swatch to change it with a color picker, or type an exact hex code. That is useful when you know a brand's official colors. The × next to a swatch only stops that color from getting its own layer: its pixels are then traced as the nearest remaining color. To make a color disappear, use Remove color instead.

Remove a color or the background

Press Remove color above the canvas (or in the Colors panel) and click any spot on the image. Every pixel of that color becomes transparent across the whole image, so you get an SVG with no backdrop shape. Remove background automatically does the same with the most common color along the image border. The Removal strength slider decides how similar a shade must be to go too: raise it for JPG noise or soft shadows, lower it to keep close colors. If a thin ring of in-between shades is left around an object, raise the strength or lower the palette size.

Manual mode

Switch to Manual to stop the palette from being rebuilt when you change other settings. Then use + Add color to build exactly the palette you want.

6. Faithful or Smooth?

The editor includes two tracing engines that read edges in different ways.

Faithful works like the classic Potrace method. It finds the precise outline of each color region, simplifies it to the best-fitting polygon, then converts the polygon into smooth Bézier curves while keeping real corners sharp. It is the best choice when your source is clean: logos, icons, text and flat graphics.

Smooth looks at the boundary with sub-pixel precision, removes small irregularities, and fits curves using a least-squares method, similar to the way a pencil tool smooths a hand-drawn stroke. It is the better choice for blurry screenshots, upscaled images, feathered edges and scanned drawings, where Faithful tends to follow every little bump.

If you are unsure, trace with Faithful first, switch to Outline view, then try Smooth and compare. The switch takes one click and the preview updates on its own.

7. Detail and cleanup settings

Detail (supersample)

Supersampling traces the image at 2, 3 or 4 times its pixel size. The extra resolution lets the engine place edges between the original pixels, which recovers smooth outlines from small or low-resolution images. It is the single biggest quality setting. It also takes the most processing time, especially with many colors. Use 3× or 4× for small logos and icons, and 1× or 2× for large images.

Edge smoothing

This softens the pixel staircase before tracing begins. A small amount, around 0.2 to 0.4, is a good place to start. Too much rounds off details you wanted to keep.

Despeckle

Despeckle deletes shapes smaller than the area you set. Raise it to remove dust in scans, JPG noise and isolated pixels. Keep it low if your image has genuinely tiny details such as dots over the letter "i" in small text.

Layer overlap

Neighbouring color shapes that meet exactly can show faint gaps when the SVG is displayed or printed. Layer overlap expands each region slightly so they tuck under each other. One pixel is right for nearly every image. Set it to 0 only if you need shapes that do not overlap at all, for example for some cutting workflows.

8. Corners and curves

The Curves panel shows the settings for whichever engine is active.

For Faithful: Corner threshold decides how sharp a turn must be to stay a corner. Lower values keep more sharp corners, which suits geometric logos. Higher values round them off, which suits organic shapes. Curve tolerance controls how far curves may be merged into longer ones. A higher tolerance means fewer anchor points and a smaller file, but slightly less precision. Keep Optimise curves switched on unless you need the most exact outline possible.

For Smooth: Smoothness is the main control. Raise it until wobbles disappear, then stop. Corner threshold works as in Faithful mode, measured in degrees.

9. Edit points and check your work

Edit points by hand

When a shape is almost right but one corner is off, press Edit points above the canvas and click the shape. Its contour shows anchor points: squares are sharp corners and circles are smooth points. Click an anchor to see its Bézier handles.

  • Move: drag an anchor, or drag a handle to change the curve. Hold Alt while dragging a handle on a smooth point to break it into a corner.
  • Add a point: double-click the outline. The shape does not change until you move the new point.
  • Smooth or sharp: double-click an anchor to switch it.
  • Delete: select an anchor and press Delete. A shape needs at least three points.
  • Nudge and undo: arrow keys move the selected point by one pixel (ten with Shift). Use Ctrl+Z and Ctrl+Y, or the Undo and Redo buttons.

Only one contour is edited at a time, which keeps the editor fast even on detailed artwork. Trace settings are locked while you edit, because tracing again would replace your changes. Press Discard edits if you want to go back to the automatic trace.

Check on a different background

White or very light artwork can vanish against the checkerboard. The three squares at the bottom left of the canvas switch it to a plain white or dark background, so you can see what you actually have.

Large images

Tracing runs on your device, so the tool limits very large images to a safe number of pixels and tells you when it has lowered the detail. Transparent margins around the artwork are cropped before tracing. For the finest result, crop your image to the artwork first.

10. Export settings

  • Draw order decides which color layer sits on top where shapes overlap. "Largest color first" puts big background areas at the bottom and small details on top, which is right for most artwork.
  • Background rectangle adds a solid shape behind everything. Leave it off for a transparent SVG.
  • Coordinate precision sets how many decimal places are written for each point. A value of 2 is accurate enough for print; 1 makes smaller files for the web; 0 can make curves look slightly lumpy.

The status bar under the canvas shows the number of colors, paths and anchor points, the SVG file size and the trace time, so you can see the effect of each change straight away.

11. Common problems and how to fix them

ProblemLikely causeFix
Thin outlines around every shapePalette has more colors than the artLower palette size, or delete the in-between swatches
Wavy or bumpy edgesBlurry or upscaled sourceSwitch to Smooth and raise Smoothness
Stair-stepped edgesSmall source imageRaise Detail to 3× or 4× and add a little Edge smoothing
Lots of tiny specksJPG noise or scan dustIncrease Despeckle
Small details disappearDespeckle or smoothing too highLower Despeckle and Edge smoothing
White hairlines between colorsShapes meet without overlappingSet Layer overlap to 1 px
Rounded corners on a geometric logoCorner threshold too highLower Corner threshold in the Curves panel
File is very largeToo many colors or too much detailReduce palette size, raise Curve tolerance, lower precision
Unwanted background shapeBackground color is traced as a layerUse Remove color and click the background, or Remove background automatically
Tracing feels slowLarge image with many colors at 4×Use 2× detail while adjusting, then raise it for the final export

12. Using your SVG file

The exported file is a standard SVG with one filled path per color, so it opens almost anywhere.

  • Vector editors such as Adobe Illustrator, Inkscape, Affinity Designer and Figma can open the SVG directly. Ungroup it to edit individual color layers.
  • Canva and similar online editors accept SVG uploads, and you can often recolor the shapes after importing.
  • Cutting machine software, including Cricut Design Space and Silhouette Studio, can import SVG files. Each color becomes a separate layer you can cut from different material.
  • Laser and CNC software generally accepts SVG, or you can convert it to DXF in a vector editor if your machine needs it.
  • Websites can use the file in an <img> tag or paste the code inline, where you can style it with CSS.

Whatever you do with it, open the file and check it once before sending it to print or a machine. Automatic tracing is very good, but a quick look at sizes and small fragments avoids surprises.

TraceMantra is independent of the products named in this section; their names belong to their owners.

Sources and scope

This guide describes the controls of the TraceMantra editor as they work today. Numeric suggestions are untested starting points and have no outside source. The Faithful engine follows the method in Peter Selinger's Potrace documentation. For file-format details, see each product's own help pages. See how we make and check this site for how pages are produced and corrected.

Ready to try it? Open the PNG to Vector editor and drop in your image. It is free, needs no account, and your file never leaves your device.