PNG to SVG: True Vectorization vs Raster Wrapping Explained (2026)

PNG SVG Vector Vectorization Logos Inkscape
PNG to SVG — what really happens
Real pathstrue vectorization
2–4 colorsideal for logos
Infinite scaleno pixelation ever
Freebrowser-based

1. Introduction — What Converting PNG to SVG Actually Means

Converting a PNG to SVG is one of those tasks that looks simple on the surface but contains a critical distinction most tools hide from you. When someone asks "how do I convert PNG to SVG," they almost always mean: how do I turn my raster image into a real, scalable vector file? The answer is auto-tracing — an algorithm that analyzes the colors and edges in your PNG and produces mathematical path descriptions that can scale to any size without pixelation.

The problem is that many free online tools do not actually vectorize your PNG. They wrap it. They take your raster image and place it inside an SVG file using the <image> tag — the file gets an .svg extension, but the content is still your original pixels. It scales just as poorly as the PNG did. This guide explains the difference, tells you exactly which images produce good vectorization results, and walks through the process step by step — from a browser-based free converter to Inkscape for offline work.

The direct answer — how to convert PNG to SVG:

True vectorization uses a color-tracing algorithm to convert your PNG into real SVG path elements. For logos and flat-color artwork, use Convertlo's PNG to SVG converter — free, runs in your browser, nothing uploaded. Set color count to 2–4 for logos, 8–16 for illustrations. For offline work, use Inkscape (free): File > Open PNG, then Path > Trace Bitmap. The result is a real SVG with scalable paths — not a PNG dressed up with an .svg extension.

2. The Critical Distinction: True Vectorization vs Raster-in-SVG

This is the most important thing to understand before choosing a converter. There are two completely different things that can happen when you "convert" a PNG to SVG, and only one of them produces a real vector file.

What a PNG Wrapped in SVG Looks Like

Many free tools — including some well-known ones — produce an SVG file that contains nothing but an <image> tag referencing or embedding your original PNG data. The SVG container is just a wrapper. Open the file in a text editor and you'll see something like this:

<!-- Bad: raster wrapped in SVG (no scaling benefit) -->
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
  <image href="logo.png" width="200" height="200"/>
</svg>

This file has an .svg extension, but it is functionally identical to your PNG. Scaling it to 4× will produce the same pixelated result as the original PNG. The SVG file is actually larger than the original PNG because it adds XML overhead without adding any vector information. This is not vectorization. It is deception.

What True SVG Vectorization Produces

A genuinely vectorized SVG contains path elements — mathematical descriptions of shapes. Every color region in your image becomes a traced outline filled with a solid color. The output looks like this:

<!-- Good: true vector paths — scales to any size perfectly -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
  <path d="M10,10 L50,50 L90,10 Z" fill="#5b6af5"/>
  <path d="M20,80 C40,60 60,60 80,80 S120,100 140,80" fill="#ffffff"/>
  <circle cx="100" cy="100" r="40" fill="#f55b8a"/>
</svg>

This file can scale to 10,000× its original size without any quality loss. The paths are resolution-independent mathematical constructs. The file size for a simple logo is often smaller than the original PNG. You can open it in Illustrator, Figma, or any vector editor and edit individual paths, change colors, and modify shapes.

How to Tell Which Type You Have

Right-click your .svg file and open it in a plain text editor (Notepad on Windows, TextEdit on Mac). If you see <image tags near the top, you have a wrapped raster. If you see <path, <polygon, <circle, or <rect elements, you have real vector data. Another test: zoom in to 800% in a browser. A real SVG stays crisp. A wrapped PNG turns into visible pixels.

3. When PNG to SVG Works Well

Auto-tracing algorithms perform best on images that already look like vector art — flat colors, clean edges, limited color palettes. If your PNG was created from vector art or designed as a logo, converting it back to SVG can produce excellent results.

PNG Type Expected Result Color Count Setting Notes
Logo with flat colors Excellent 2–4 colors The ideal use case — clean paths, small SVG file
Monochrome icon Excellent 2 colors Black/white or solid color icons trace perfectly
Line art / sketch Good 2–4 colors Use Smooth preset; remove background first for best edges
Text logo Good 2–4 colors High-res source PNG at 300+ DPI recommended
Simple illustration Acceptable 8–16 colors Works for flat-color cartoon style; not for painterly art
Clipart with gradients Fair 16–32 colors Gradients become stepped color bands; experiment with color count

The common thread in successful vectorizations: the source PNG must have clearly defined boundaries between color areas. If you cannot easily tell where one color ends and another begins, the vectorizer will struggle too.

4. When PNG to SVG Won't Give Good Results

Being honest about limitations matters more than overselling a tool. Some PNGs should stay as PNGs — or be converted to WebP or AVIF for web use instead of being vectorized.

  • Photographs saved as PNG — A JPEG-quality image doesn't become vector-friendly just because it uses a PNG container. Millions of colors, gradients everywhere, fine detail like hair or fur — these produce SVGs that are enormous (sometimes 10–50× the original file size), look posterized, and load slowly. If your PNG is a photo, keep it as PNG or WebP.
  • Screenshots of interfaces — Screen captures contain anti-aliased text, subtle drop shadows, transparency blends, and mixed content. Vectorizing them creates a mass of tiny paths that approximates what the screenshot showed, with worse visual quality and a much larger file size.
  • Low-resolution logos — A 32×32 pixel PNG logo that has been compressed and scaled multiple times has blurry, anti-aliased edges. The vectorizer will trace the blur halo around each letterform as its own color region, producing a noisy, inaccurate result. Source matters: use the highest resolution PNG you can find.
  • Images with soft gradients — True gradients (smoothly transitioning from one color to another) cannot be accurately represented by the flat-fill polygon approach that color-tracing uses. The result is a "staircase" effect of stepped color bands that looks worse than the original gradient.
  • Photographs of real objects — A photo of a product, a person, or a scene that was saved as PNG and labeled "logo" still behaves like a photo under vectorization. The vectorizer doesn't know what the subject is — it just sees millions of pixels.

The honest rule: If your PNG is a photograph or contains photographic elements, do not convert it to SVG. Use PNG or WebP instead. The SVG will be larger, slower to load, and will look worse. SVG is for graphics originally designed as vector art — logos, icons, and flat illustrations.

5. Step-by-Step: Convert PNG to SVG in Your Browser

Convertlo's vectorizer runs entirely in your browser — your PNG never leaves your device. No account, no upload, no privacy concerns. Here is the full process:

1
Open the PNG to SVG converter

Go to convertlo.pro/vectorize.html?from=PNG. Works in Chrome, Firefox, Safari, and Edge on any desktop platform. No account required.

2
Upload your PNG (drag or click)

Drag your PNG onto the converter area or click Browse to select it from your file system. For best results, use the highest resolution version of your PNG — 300 DPI or larger is ideal for logos.

3
Choose color count (2–4 for logos, 8–16 for illustrations)

Start with 4 colors for most logos. If the output is missing important detail, increase to 8. If it looks noisy or has unwanted speckling, decrease to 2 or 3. Color count is the most impactful setting — everything else is secondary.

4
Select a preset

Sharp — best for logos and icons with hard edges. Preserves corners and straight lines. Balanced — general purpose for illustrations. Smooths minor noise while keeping detail. Smooth — for photographs or sketches where some softening is acceptable. Reduces path complexity significantly.

5
Click Convert

The color tracing algorithm runs locally in your browser using JavaScript. Processing time depends on your image size and color count — typically 2–10 seconds for a logo-sized PNG.

6
Preview and download your SVG

Check the preview at multiple zoom levels. If the result looks accurate, click Download SVG. If not, adjust the color count or preset and reconvert — the process is fast enough to experiment.

6. PNG to SVG Using Inkscape (Offline Method)

Inkscape is the most capable free desktop tool for vectorization. It uses the Potrace engine — the same algorithm that powers most open-source vectorizers — with a visual interface that lets you preview and adjust settings before committing.

Step-by-Step Inkscape Trace

  1. Download and install Inkscape (free at inkscape.org — available for Windows, Mac, and Linux)
  2. Go to File > Open and open your PNG file. Inkscape imports it as an embedded raster image.
  3. Click on the image to select it, then go to Path > Trace Bitmap (Shift+Alt+B). The Trace Bitmap dialog opens.
  4. Under the Mode section, select Colors for multi-color artwork, or Brightness Cutoff for black-and-white line art.
  5. Set the number of colors in the Colors mode — start with 4 for logos. The preview on the right updates in real time.
  6. Adjust Speckles (removes tiny noise areas below a pixel threshold) and Smooth corners to clean up the output.
  7. Click Apply. Inkscape places the traced vector on top of the original embedded PNG.
  8. Move the vector aside. The original PNG is still there — delete it, leaving only the traced vector paths.
  9. Go to File > Save As and choose Plain SVG as the format (not Inkscape SVG, which adds Inkscape-specific metadata that bloats the file).

Inkscape Tips for Better Results

  • Use Object > Group to inspect individual traced paths by ungrouping the result
  • The Smooth corners slider in Trace Bitmap controls how aggressively curves are simplified — higher values produce fewer nodes but less accurate curves
  • For logos with text, increase the Suppress speckles threshold to remove noise around letter edges
  • After tracing, run Path > Simplify (Ctrl+L) to reduce path complexity and file size

7. PNG to SVG Color Count Guide

The color count is the most important parameter in vectorization. It determines how many distinct color regions the algorithm traces, directly affecting both visual accuracy and output file size.

Color Count Typical Use Case SVG Size vs Original PNG Visual Accuracy
2 Black/white line art, monochrome stamps 0.5–2× (smallest) Good for high-contrast art
4 Simple logos (2–3 brand colors + background) 1–3× Excellent for flat logos
8 Full-color logos, simple illustrations 2–5× Good color accuracy
16 Detailed illustrations, clipart 4–10× Decent, some banding possible
32 Complex illustrations with gradients 8–20× Many paths, gradient banding visible
64 Near-photographic illustration 20–50× Large file, posterized appearance

The practical sweet spot for web use is 4–8 colors. Beyond 16 colors, SVG files often become larger than the source PNG and load more slowly — at that point, keeping the PNG or using WebP is usually the better technical decision.

8. Optimizing Your PNG Before Vectorizing

The quality of the vectorization output is directly limited by the quality of the input PNG. A few preprocessing steps can dramatically improve results, especially for logos recovered from old files or the web.

Increase Contrast

A logo on a website may look crisp but actually have subtle gradients or anti-aliasing that creates dozens of intermediate colors along every edge. Boosting contrast in any image editor (even free ones like GIMP or Paint.NET) before vectorizing forces those edge pixels to snap to the nearest solid color, producing cleaner traced boundaries.

Remove the Background First

If your logo PNG has a white or colored background, the vectorizer will trace the background as a color region too — wasting paths and color count on something you want transparent. Remove the background before vectorizing using Convertlo's AI background remover (free, browser-based). Once the background is transparent, the vectorizer can dedicate all its color slots to the actual logo content.

Upscale Low-Resolution Sources

If you only have a small PNG (under 100×100 pixels), consider upscaling it 2–4× using an image editor or an AI upscaler before vectorizing. Larger source images have more pixel information for the tracing algorithm to work with, producing smoother curves and more accurate paths. The vectorized SVG will scale to any size regardless, but a larger input produces a more accurate trace.

Convert to High-Contrast for Logos

For logos that use brand colors against white or transparent backgrounds: before vectorizing, verify the PNG has no JPEG compression artifacts (blocky discoloration around edges). If it does, vectorizing a JPEG-compressed PNG will trace those artifacts as tiny extra paths. The fix is to find a higher-quality original PNG or increase contrast to crush the artifacts to black or white.

Crop to the Subject

Vectorizing a logo that sits in the center of a large white canvas wastes computation on the background. Crop tightly to the logo content before vectorizing. This reduces processing time and produces a cleaner, more predictable output with correct proportions.

Preprocess + Vectorize in One Workflow

Remove your background first, then vectorize — both tools run free in your browser, nothing uploaded.

9. Checking Your SVG Output

Before using your SVG in production — on a website, in print, or in a design file — run through these checks to ensure the output is actually useful.

View in a Browser at Multiple Zoom Levels

Open the .svg file directly in Chrome or Firefox by dragging it into a new tab. Zoom in to 400% and 1000% using Ctrl+Plus. A real vector SVG stays perfectly sharp at any zoom. If you see pixels, you have a wrapped raster. If you see smooth shapes but they look nothing like your logo, your color count was too low — reconvert with more colors.

Check Path Count

Open the SVG in Inkscape or a text editor. Count the number of <path> elements — a simple logo should have 5–50 paths. If you have thousands of paths, the vectorization was picking up noise, anti-aliasing artifacts, or gradients that created an explosion of micro-regions. Reduce the color count or add blur preprocessing to simplify the output.

Verify File Size

For logos and simple icons, a vectorized SVG should be smaller than the original PNG — typically 2–50 KB for a typical logo. If your SVG is larger than the original PNG, something went wrong: either the color count is too high for the content, or the image contained photographic content that should not be vectorized.

Optimize with SVGO

Vectorization tools add metadata, redundant path data, and editor comments that inflate SVG file size. Run your SVG through SVGO (svgomg.net — free, browser-based) to strip unused elements, reduce decimal precision in path coordinates, and remove editor-specific attributes. A typical logo SVG can be reduced by 40–70% through SVGO optimization without any visible quality change.

Test in Your Target Environment

Before deploying to a website or sending to a print shop, test the SVG in the actual context where it will be used. Embed it in a test HTML page. Check that colors match your brand. Check that transparent areas are actually transparent. Verify that text (if any was traced) is legible at small sizes.

Convert PNG to SVG — Free, Browser-Based

True color-tracing vectorization. Your PNG never leaves your device.

10. Frequently Asked Questions

Use Convertlo's browser-based PNG to SVG vectorizer at convertlo.pro/vectorize.html?from=PNG — free, no upload, runs entirely in your browser. Upload your PNG, choose a color count (2–4 for logos, 8–16 for illustrations), select a preset (Sharp for logos, Balanced for illustrations), and download the SVG. Inkscape (free desktop software) is a good offline alternative: File > Open PNG, then Path > Trace Bitmap.
A true SVG contains mathematical path descriptions — curves, lines, and fills defined as coordinates. It scales to any size perfectly and has a small file size for simple graphics. A PNG wrapped in SVG uses the SVG <image> tag to embed the original raster data inside an .svg file. It does not scale better than the original PNG, does not reduce file size, and provides none of the benefits of real vector graphics. Many free online converters produce wrapped PNGs, not real vectors. To check: open the .svg in a text editor. If you see <image tags, it is a wrapper. If you see <path or <polygon elements, it is real vector data.
Technically yes, but you should not expect good results. Photographs have millions of colors, gradients, and fine detail — everything that makes auto-tracing produce poor output. The resulting SVG will typically be 10–50× larger than the original PNG, will look noticeably worse due to color posterization, and will load more slowly. If your PNG is a photograph, keep it as PNG or convert to WebP for web use. PNG to SVG works best for logos, icons, and flat-color artwork that was originally designed as vector graphics.
The best candidates are: logos with flat, solid colors (2–8 distinct colors); icons with clean edges and no gradients; line art and sketches with high contrast; text-based logos designed with solid fills; simple geometric illustrations. The common factor is simplicity — few colors, sharp boundaries between color areas, and no photographic content. Images with fewer than 8 distinct colors consistently produce clean, compact SVG output.
For most logos: 2–4 colors. Simple monochrome logos: 2 colors. Full-color logos with multiple brand colors: 4–8 colors. The color count directly determines how many color regions the vectorizer traces and how large the resulting SVG file becomes. More colors produce more accurate output but larger files with more paths. Start with 4 and increase only if important colors are missing from the output preview.
Yes — Convertlo's vectorizer at convertlo.pro/vectorize.html runs entirely in your browser using JavaScript. Your PNG is never sent to any server. The color tracing algorithm runs locally on your device. This makes it suitable for converting confidential logos, client assets, and private artwork without any file leaving your machine. You can also use Inkscape offline for the same privacy guarantee.
You can use SVG in three ways on websites: (1) As an <img> tag — <img src="logo.svg" alt="Logo"> — works everywhere but CSS cannot target internal paths. (2) Inline SVG — paste the SVG code directly into your HTML — allows full CSS and JavaScript control over individual paths and colors. (3) As a CSS background — background-image: url('logo.svg'). For logos and icons where you want hover color changes or animations, inline SVG is best. Optimize the SVG with SVGO (svgomg.net) before embedding to remove editor metadata and reduce file size.

The key takeaway: PNG to SVG conversion produces excellent results for logos, icons, and flat-color artwork — and poor results for everything else. Start with a high-quality PNG, remove the background first if possible, use a low color count, and verify the output is genuinely vectorized before deploying it. Use Convertlo's vectorizer for free browser-based conversion, or Inkscape for offline work with maximum control.

Convertlo Editorial Team
We test file conversion tools, formats, and workflows so you do not have to. All guides are written from hands-on testing across platforms and devices.
More articles →