You have a logo PNG someone sent you, and you need it at any size — embroidered on a hat, two stories tall on a billboard, one inch tall on a business card. The PNG looks great at the size it was exported and terrible scaled up. You need a vector.
Converting a raster image (PNG, JPG, WebP) to an SVG vector is called tracing. It's an approximation — not magic — and how well it works depends entirely on what you're tracing. Here's how to do it for free, in your browser, and how to know when it'll actually look good.
Trace an image to SVGWhat tracing actually is
An SVG is a list of geometric shapes (paths, polygons, circles) defined as math. A PNG is a grid of pixels. Tracing reads the pixels, groups them into regions of similar color, and approximates each region with vector paths.
What this means in practice:
- Solid blocks of color trace cleanly into single paths.
- Sharp edges between two colors trace into crisp boundaries.
- Gradients, fine detail, and noise (skin tones, foliage, sky) get reduced to a small number of poster-like color regions and lose photorealism.
- Anti-aliased edges around text can come out fuzzy unless you trace at high contrast.
The takeaway: tracing works for flat illustrations, logos, icons, and line art. It does not work for photos.
The three-step browser flow
- Open freefileconverter.ai/image-to-svg.
- Drop your PNG, JPG, WebP, or HEIC onto the page.
- Pick a Detail level and Color mode, then click Convert. The .svg file downloads to your machine.
Three settings worth knowing:
| Setting | What it does | Pick this when |
|---|---|---|
| Detail — Simple / Balanced / Detailed | Controls how many path segments are used. More detail = more accurate shapes + bigger file | Simple for icons; Balanced for typical logos; Detailed for illustrations |
| Color mode — Color / Black & white | Full palette tracing vs. forced 2-color (black + white) | B&W for line drawings, signature scans, or any single-tone logo |
| Max colors — 2 / 4 / 8 / 16 / 32 | Limits the palette of the traced output | 2 for line art, 8 for most logos, 32 for richer illustrations |
What works well and what doesn't
| Source type | Trace quality | Note |
|---|---|---|
| Two-tone logo (signature, icon, monogram) | Excellent | Use B&W mode, Detailed |
| Flat multi-color logo | Very good | Color mode, 8–16 max colors, Balanced detail |
| Hand-drawn sketch | Good | B&W mode, Detailed; scan at high contrast first |
| UI screenshot (button, icon) | Good | Color mode, 4–8 max colors, Simple detail |
| Illustration with gradients | Fair | Color mode, 16+ colors, Detailed — gradients become posterized bands |
| Photograph | Poor (stylized, not faithful) | Use for an artistic effect; not for a faithful conversion. Save as WebP or JPG instead. |
If a logo PNG is what you have, ask whoever owns the brand for the original vector source first. Tracing is the fallback for when the original isn't available — it always loses some fidelity vs. the source file.
Tracing tips for cleaner SVGs
- Start at the right size. The tracer caps source images at 1024 px on the longest edge to keep things interactive. Pre-scaling to roughly the final use size before tracing produces cleaner output.
- Crop tight. Trim whitespace before tracing — there's no reason to encode background pixels as paths.
- Increase contrast for line art. If you're tracing a pencil sketch, run it through a brightness/contrast pass first so the lines are nearly black and the paper is nearly white.
- Try B&W first for logos. Even if your logo is colored, tracing as B&W and then recoloring the resulting paths in a vector editor often gives cleaner shapes than tracing the colored version directly.
After the trace — editing the SVG
The output is plain text. Open the .svg in any vector editor:
- Inkscape — free, open source, fine on Mac/Windows/Linux.
- Figma — free tier, runs in a browser; great for quick edits.
- Affinity Designer — one-time purchase, no subscription.
- Adobe Illustrator — the industry standard, subscription-only.
Common post-trace edits: remove the background path (often a large rectangle that snuck in), simplify dense path nodes, recolor individual shapes, group related paths.
Going the other direction
If you have an SVG and need a raster version (a thumbnail, an icon at a specific size, a PNG for an email signature), use:
- SVG to PNG — pick output size and background color.
- SVG to JPG — flatter file, JPEG-friendly artwork only.
- SVG to PDF — for print-ready vector PDFs.
The bottom line
SVG tracing is one of those features that's been gatekept behind Illustrator for too long. The math is well-understood, the libraries are open source, and modern browsers can run the work in a tab. For logos, icons, and line art, the browser version is honestly fine. For photos, no in-browser or desktop tracer will produce something faithful — that's an inherent limit of the technique, not a bug.
Open the SVG tracer