Guide · SVG · Vector · Image tracing

How to Convert an Image to SVG Vector (Free, Browser-Based)

Published June 2, 2026 · ~5 min read

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 SVG

What 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:

The takeaway: tracing works for flat illustrations, logos, icons, and line art. It does not work for photos.

The three-step browser flow

  1. Open freefileconverter.ai/image-to-svg.
  2. Drop your PNG, JPG, WebP, or HEIC onto the page.
  3. Pick a Detail level and Color mode, then click Convert. The .svg file downloads to your machine.

Three settings worth knowing:

SettingWhat it doesPick this when
Detail — Simple / Balanced / DetailedControls how many path segments are used. More detail = more accurate shapes + bigger fileSimple for icons; Balanced for typical logos; Detailed for illustrations
Color mode — Color / Black & whiteFull 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 / 32Limits the palette of the traced output2 for line art, 8 for most logos, 32 for richer illustrations

What works well and what doesn't

Source typeTrace qualityNote
Two-tone logo (signature, icon, monogram)ExcellentUse B&W mode, Detailed
Flat multi-color logoVery goodColor mode, 8–16 max colors, Balanced detail
Hand-drawn sketchGoodB&W mode, Detailed; scan at high contrast first
UI screenshot (button, icon)GoodColor mode, 4–8 max colors, Simple detail
Illustration with gradientsFairColor mode, 16+ colors, Detailed — gradients become posterized bands
PhotographPoor (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

After the trace — editing the SVG

The output is plain text. Open the .svg in any vector editor:

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:

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

Frequently asked questions

Will my photo come out looking the same as an SVG?

No. Tracing approximates pixel data as a small number of solid-colored vector regions. Photos come out looking stylized — like a poster-art version of themselves — not photorealistic. For photos, save as JPG or WebP. SVG tracing is meant for logos, icons, and flat illustrations.

What kinds of images work well?

Flat, two-tone or limited-color images: logos, simple icons, line art, screenshots of solid-color UI, hand-drawn sketches scanned to high-contrast. The fewer colors and the sharper the edges, the better the trace.

How do the detail and color settings affect the output?

Detail controls how many path segments the tracer uses — higher detail means more accurate shapes but a larger SVG file. Color mode chooses between full-color tracing and black-and-white (2-color) tracing. Max colors limits the color palette: 2 for line art, 8 for typical logos, 32 for richer illustrations.

Is my image uploaded during tracing?

No. The tracer runs entirely in your browser using imagetracerjs (a pure JavaScript implementation). The image bytes never leave the page; you can verify in DevTools Network tab or by working offline.

Can I edit the SVG afterward?

Yes. SVG is a text-based format, so the output works in any vector editor: Inkscape, Figma, Affinity Designer, Illustrator. You can recolor individual paths, simplify shapes, or scale to any size without quality loss.

Related reading

Related tools

Files stay on your device. No login. Installs as a PWA on iPhone, Android, and desktop.
← Back to the blog · Free File Converter home