You have a logo as a small PNG, and a printer, a website or a cutting machine wants a vector. Converting is easy; getting a clean result takes some care, because a PNG does not contain shapes, only pixels, and the tool has to guess the outlines. The PNG to SVG converter makes that guess in your browser. This guide covers the settings and the checks that separate a usable vector from a lumpy one.
First: is tracing the right job?
Tracing works well on flat artwork with solid fills and hard edges: logos, icons, stamps, simple illustrations. It works badly on photos, soft shadows and gradients. If your PNG is a photograph, converting it will produce a large, posterised file that looks worse than the original. If you only need a bigger PNG, use the Image Upscaler instead.
Step by step
- Drop the PNG on the page, paste it or choose a file. The conversion starts automatically.
- Pick the Mode: Black & white or Color.
- For black and white, tune Detail (threshold) (1 to 255) and Remove specks (size) (1 to 50).
- Check the preview of the converted SVG against your original.
- Download the .svg, or copy the code.
Black and white or color?
| Logo type | Mode | Notes |
|---|---|---|
| One color on transparent or white | Black & white | Clean paths; recolor later in CSS or a design tool |
| Two or three flat colors | Color | Each color becomes a shape. Check that edges between colors do not leave gaps |
| Gradients or glow | Neither is ideal | Stepped bands appear; consider keeping a PNG |
| Hair-thin lines | Black & white with high Detail | Raise Detail until the lines are complete |
Detail and Remove specks in practice
Detail is a threshold: pixels darker than the threshold become shape, lighter ones become background. Raising it keeps more detail. Remove specks ignores objects smaller than the given size. For a clean logo, find the lowest Detail that keeps every thin line, then raise Remove specks just enough to clear stray dots. If the logo has real small details, such as the dot of an i or the hole in an a, check these survive.
Transparent PNGs
A transparent PNG is the easiest input, since the background is already separate from the shape. If your PNG has a white box around the logo, tracing in black and white treats the white as background anyway, but off-white or noisy backgrounds create extra shapes. Clean the image first with the Background Remover, or trim empty margins using Trim Image.
Check the result like a professional
- Open the SVG at a large size and zoom into curves; they should be smooth, not wobbly.
- Compare to the original on both a light and a dark background.
- Look at the file size. A simple logo should be small; a huge SVG means too much detail or noise was traced. Run it through the SVG Optimizer to trim it.
- If you will cut it with a machine, make sure shapes are closed and there are no tiny islands.
Limits
- The black and white trace uses a copy of the picture limited to 1024 pixels wide, so a very large PNG is simplified; scale it down first for predictable results.
- Text in the logo becomes outlines, not editable text.
- The tool does not know your brand colors. In Color mode the colors may be close but not identical to the originals; correct them in the SVG code if exact values matter.
- If the original PNG is low resolution, the vector will faithfully trace the blocky edges. Start from the best source you have.
After conversion
To make a PNG again at any size, use SVG to PNG. For a JPG scan source, the JPG to SVG tool has the same settings, and tracing a JPG scan covers preparing scans.
A worked example: a one-color shop logo
A shop owner has a black logo of a coffee cup on a transparent PNG, 600 pixels wide. Open it in Black and white mode. At the first attempt the steam lines are broken, so raise Detail until the thin curves join up. A speck near the cup handle appears, so raise Remove specks a few steps until it disappears while the three steam lines stay. Download the SVG, open it at full screen in a browser to check the curves, and run it through the SVG Optimizer. The owner can now put the same file on a website header, a sign and a stamp order without ever seeing pixels.
Fixing a poor source before converting
If the PNG is a screenshot of a logo, it may contain a thin gray border and anti-aliasing halos around the edges. Trim the border with the Trim Image tool first, and consider enlarging a very small source so the traced edges have more pixels to follow. The result of tracing is always a reflection of the input: smooth input produces smooth curves, and noisy input produces noisy ones. A few minutes of preparation usually saves more time than endless slider changes.
Colors in the output
In black and white mode the SVG has one fill color, normally black. You can change it afterwards by editing the fill value in the file, which is a single replacement, so a one-color logo can be recolored for dark backgrounds without redoing the trace. In color mode each region keeps its own color, and recoloring means changing several values.
FAQ
What is png2svg?
Another name for converting PNG to SVG. This page does it with Potrace (black and white) or a color vectoriser.
Is my logo uploaded?
No. The conversion happens in your browser.
Can I use the SVG commercially?
The file is yours to use, subject to rights in the original artwork.
Why does the SVG look different from the PNG?
Tracing replaces pixels with smooth shapes, so small imperfections are smoothed and very fine details may be simplified.