PNG to SVG - when to vectorize a raster image
Use PNG to SVG to convert logos, icons, and line art into scalable vector files. It traces colour-region edges and approximates paths. Vectorize when you need the image to scale without pixelation or be edited in Illustrator/Inkscape. Avoid for photos - the comparison table below shows which source types convert well.
freetoolonline.com Editorial Team| Source type | SVG result quality | Use case | Alternative |
|---|---|---|---|
| Logo / icon (flat colours) | Excellent - clean paths | Web embed, print any size | PNG to SVG |
| Line art / silhouette | Good - traceable edges | Illustration, clip art | PNG to SVG |
| Photograph | Poor - hundreds of noisy paths | File size only | Optimised PNG or WebP |
| Gradient / texture | Poor - banding artifacts | Scale without pixel loss | High-res PNG at target size |
What raster vs vector means (and why this conversion is approximate)
A raster image (PNG, JPG, BMP, screenshot, photograph) is a fixed grid of coloured pixels - the file knows the colour of pixel (0,0), (0,1), and so on, and nothing else. A vector image (SVG) is a list of geometric instructions - "draw a circle of radius 12 at (50,50) filled red", "draw a path along these 14 points stroked black" - which a renderer turns into pixels at whatever size the page asks for. Because raster carries no shape data, no tool can recover the original geometric instructions from a PNG; the pixels do not remember which ones used to belong to "the letter A" or "the curve of the logo". Vectorizers therefore read the pixel grid, find runs of similar colour, follow the boundaries between them, and emit one SVG <path> per region. The output SVG looks like the input only when those colour boundaries match the actual shapes the human eye reads; when they do not, the output is a noisy mosaic of polygons that scales infinitely but does not look like the photograph.
When PNG-to-SVG actually works
Vectorization produces a usable SVG when the input has a small number of solid colour regions with sharp boundaries between them. The four common cases:
- Logos and brand marks. A logo is usually 1-4 solid colours with crisp edges - exactly what auto-tracing needs. The output SVG scales to billboard size without losing edge sharpness, can be recoloured by editing the
fillattribute, and ships in a few kilobytes. This is the canonical use case. - Icons and pictograms. Single-colour silhouettes (folder icons, hamburger menus, chevrons, social-media glyphs) trace cleanly because there is exactly one foreground / background boundary. The result is editable as paths and recolours with one CSS rule.
- Line art and ink drawings. Black-on-white drawings, comic line art, hand-drawn sketches scanned at high contrast: each stroke becomes one closed path, and the SVG can be re-stroked in any colour or weight afterwards.
- UI screenshots of crisp shapes. Screenshots of buttons, dialog boxes, simple charts, or text on a flat background have anti-aliased pixel edges that vectorize into very close approximations of the original geometry. The result is perfect for embedding into responsive documentation.
When PNG-to-SVG does NOT work
For photos, soft gradients, and noisy scans, the tracing engine produces fake vector paths that scale but look nothing like the original. Those source types stay better as PNG or WebP.
- Photographs. A photo of a face, a landscape, or a product shot has thousands of subtly different colours blending into each other. Each distinct colour region becomes one SVG path segment - a small photo (800 x 600 pixels) can produce tens of thousands of segments, so the output file balloons to tens of megabytes and scrolls slowly in a browser. Alternatively, the tracer quantises the colours to a few dozen regions, and the result looks like a posterized version of the photo rather than the original. For photos, keep the raster and optimise it as JPG or WebP.
- Soft gradients and fine texture. A button with a smooth top-to-bottom gradient, a watercolour painting with bleeding edges, or any image with film grain has no sharp colour boundaries to trace. The vectorizer invents arbitrary boundaries at quantisation thresholds, and the SVG looks "stripey" or "blocky" where the original was smooth.
- Anti-aliased text rendered as pixels (low-contrast / small). Text rendered at small sizes or with heavy anti-aliasing becomes a soup of grey pixels around each glyph. Auto-tracing produces unreadable letterforms. If you need the text as paths, set the document up with the actual font in a vector tool instead of vectorizing a rendered screenshot.
Vectorizing on freetoolonline
Open the PNG to SVG tool, drop in a clean logo or icon, then check the edges at zoom before downloading. If edges look jagged at 100%, raise the smoothing slider one notch and preview again.
Does https://freetoolonline.com/image-converter-tools/png-to-svg.html upload the file or run locally in your browser?
The https://freetoolonline.com/image-converter-tools/png-to-svg.html bridge uploads the PNG to the freetoolonline server. The page is not a fully offline, client-side only or browser-only tool, and it does not run locally. This upload claim is direct: the freetoolonline server handles the auto-trace, and the SVG result rotates off storage after the standard retention window.
What PNG-to-SVG is NOT
PNG-to-SVG is not a lossless photo format change and not a way to shrink file size for raster content. Vectorize is for hard-edged artwork - not for shipping camera JPEGs as SVG.
- "Save as SVG" of a PNG inside an editor. Most editors will happily save a PNG as an SVG file - but what they really do is wrap the PNG bytes inside an SVG
<image>element. The result has a.svgextension and the same pixels as the input; it does NOT scale better and is NOT editable as paths. Vectorization (what https://freetoolonline.com/image-converter-tools/png-to-svg.html does) re-draws the content as actual<path>elements, which is a different operation. - SVG to PNG (rasterizing). The reverse direction - taking a vector and rendering it to a fixed-size raster - is a separate task with different trade-offs (resolution choice, anti-aliasing, embedded fonts). See SVG to PNG - when to rasterize an SVG for the rasterization side, and the SVG to PNG tool for the operation.
- Compressing a PNG to a smaller PNG. If the goal is "the file is too big" and the content is photographic or texture-rich, the right move is raster compression, not vectorization. See Compress JPEG without losing quality - quality vs size for the photo-compression trade-off, JPG vs PNG for web for raster format choice, and the Compress Image tool for the operation.
Related image-conversion guides: How to turn a PNG into a vector SVG (step-by-step tracing walkthrough), SVG to PNG - when to rasterize an SVG (the reverse direction), PNG vs SVG - when to use which (the format-choice decision before you convert), and JPG vs PNG for web (raster format choice when vectorization is not the answer).
Why trust these tools
- Ten-plus years of web tooling. The freetoolonline editorial team has shipped browser-based utilities since 2015. The goal has never changed: get you to a working output fast, without an install.
- No install, no sign-up. Open a tool and get a working output in seconds - nothing to download and no account to create. Tools that need heavy processing run it on our service, so even a low-powered machine gets the job done.
- Analytics stops at the page view. We measure which pages get visited, not what you type or upload inside a tool. There is nothing to sign in to and no profile is attached to your input.
- Open-source core components. The processing engines underneath (libheif, libde265, pdf-lib, terser, clean-css, ffmpeg.wasm, and others) are public and audit-able. We link to each one in its tool page's footer.
- Free, with or without ads. All tools are fully functional without sign-up. The Disable Ads button in the header is always available if you need a distraction-free run.