PNG to SVG Converter

Convert PNG to SVG with real vector paths: trace logos and icons into scalable SVGs right in your browser, and nothing is uploaded.

Files never leave your device

Drop a PNG logo, icon or graphic

or paste · up to 50 images · nothing is uploaded

Transparent areas stay transparent.

PNG, JPG, WebP, GIF, BMP, AVIF and HEIC

Keyboard shortcuts

A: add files · Ctrl/Command+Enter: download SVG · D: download all (ZIP) · C: copy SVG code · O: outlines · + and −: zoom · 0: fit · arrow keys: pan (Shift = 50 px) · F: full screen · Escape: cancel or leave full screen · ← → on a file: switch · Delete on a file: remove. Letter shortcuts only work inside this tool, outside text fields.

Settings link

Your browser could not copy the link. Select and copy it below.

SVG code

Your browser could not copy the SVG code. Select and copy it below.

How to convert PNG to SVG

This PNG to SVG converter traces logos, icons and graphics into real vector shapes inside your browser. The first file is traced as soon as you add it.

  1. Press Choose files, drop images on the page or paste one. You can add up to 50 at a time.
  2. Keep the Logo preset for logos and icons, or tap Illustration, Posterized photo or Line art.
  3. Compare the result with your original: drag Overlay, tick Show outlines and zoom to 200%.
  4. Move Colours if a detail is missing or an edge has a halo. The SVG updates by itself.
  5. Press Download SVG, or Copy SVG code to paste it somewhere. With two or more files, Download all (ZIP) saves them together.

PNG vs SVG: what changes when you trace

A PNG and an SVG describe an image in completely different ways (MDN’s image format guide has the full details):

Feature PNG SVG
What it stores A grid of coloured pixels Shapes written as XML text
Good for Photos and screenshots Logos, icons and diagrams
When enlarged Blurs and shows square pixels Stays sharp at any size
Transparency Yes Yes

Tracing finds the edges between colour areas in your PNG and redraws them as outlines. The result is a new drawing that scales without blurring. It isn’t a copy of the pixels, which is why checking it at 200 % matters.

Real vector paths, not a picture in an SVG wrapper

Some files called SVG simply put the original PNG inside an SVG container. They enlarge just as badly as the PNG did. You can spot them by opening the file in a text editor and searching for <image or data:image/png.

Our files contain only <svg> and <path> elements. The result panel proves it with “✓ Real vector paths — no embedded picture.” and a stats line such as “SVG 3.1 KB · 14 paths · 2 colours · 412 points”. When your PNG has transparency, you’ll also see “✓ Transparent areas kept.”

Choosing a preset and the number of colours

Each preset sets a sensible number of colours for its job:

  • Logo (8 colours, the default): flat logos, icons and badges.
  • Illustration (16 colours, light blur): drawings and artwork with more shades.
  • Posterized photo (12 colours, more speck removal): poster-style art from a photo.
  • Line art (black and white): ink drawings and outlines. The slider is locked: “Line art always uses black and white.”

Colours runs from 2 to 32. Transparent areas don’t count, so a red-and-blue logo on a transparent background needs only 2. If you see a thin halo around shapes, try one fewer colour; if a small detail disappears, add one.

Any image to SVG works the same way: WebP, GIF, BMP, AVIF and HEIC are traced too, and an animated file gives its first frame. For logos saved as JPG on white, JPG to SVG starts with settings suited to JPEG files.

The page also gives tips. A PNG with a plain coloured background shows “Turn on Remove background to keep only the artwork.” A photo-like image suggests that Posterized photo gets closest.

Smoothness and speckles

Smoothness decides how closely the outlines follow every pixel step. Detailed keeps small corners, Balanced is the default, and Smooth gives rounder, cleaner curves with fewer points.

Remove speckles offers Off, 8, 16 or 32 px, with 8 as the default. It drops tiny specks of colour. The size is measured at the trace size rather than on your original, so at Trace size 2048 the same speck looks twice as big as at 1024. Raise the setting if a large trace gets noisy.

Using the SVG: cutting, engraving, 3D printing, print and websites

Cutting machines, laser engravers and 3D printing

Cutting and engraving software, embroidery tools and 3D modelling apps usually expect closed, filled shapes, which is exactly what this tracer makes. Fewer colours means fewer layers to cut or extrude. SVG sizes are written in pixels, and apps assume their own number of pixels per inch (CSS uses 96), so check and set the real size after you import the file.

A traced logo stays sharp on a banner or a van, but it is a redraw, not the original artwork. For brand-critical print, ask the designer for the original vector file if one exists.

Websites and code

Copy SVG code puts the markup on your clipboard, ready to paste into HTML. Untick Include width and height to get an SVG with only a viewBox, which you can size freely with CSS.

How it works: tracing step by step

This PNG to SVG converter runs in your browser, in five steps:

  1. Your image is scaled to the Trace size (512, 1024 or 2048 px). Images under 128 px are enlarged first, with the note “Small image enlarged for a smoother trace.”
  2. Similar colours are grouped into the number you chose.
  3. The edges of every colour area are followed.
  4. Straight lines and curves are fitted to those edges.
  5. Specks and transparent pixels are dropped, and the paths are written out.

The tracing engine is imagetracerjs, released into the public domain. It loads once, the first time you add a file. Your images are never uploaded, and the page works offline after your first visit. How do we know?

Tips & limits

  • Photos become flat areas of colour, and gradients turn into bands.
  • Small text may merge. Use Trace size 2048 with Detailed; 2048 is available on computers, phones go up to 1024.
  • Pixel-art corners round slightly. Logo with Detailed keeps them tighter.
  • Up to 50 files per batch. An SVG over 1 MB gets a warning to use fewer colours, more smoothing or a smaller trace size; over 20 MB is refused.
  • This is a fixed method, not AI, so the same file and settings always give the same SVG. AI vectorizers can redraw complex art better.
  • Only trace artwork you have the right to use.
  • To go back to pixels, use SVG to PNG. To keep the PNG but make it lighter, compress the PNG.

Frequently asked questions

Can you convert a PNG to SVG without losing quality?

Not pixel for pixel, because tracing redraws your image as shapes instead of copying its pixels. In return, the SVG stays sharp at any size. Flat logos and icons usually look the same as the original, while gradients and photos turn into flat bands. Switch on Show outlines and zoom to 200 % to compare the edges before you download.

Is the SVG made of real vector paths?

Yes, the file holds only svg and path elements, with no picture embedded inside. The stats line counts the paths, colours and points that were made, and Show outlines draws every path over your image. You can also open the file in a text editor and read the shapes yourself. It's free to use, with no sign-up.

Will the transparent background stay transparent?

Yes, transparent areas stay transparent in the SVG. Pixels that are less than half opaque are never traced and take no colour slot, so very faint shadows and glows may disappear. If your PNG has a solid white or coloured background instead, switch on Remove background to keep only the artwork.

How many colours should I choose?

Choose about as many colours as you can count in the artwork. The Logo preset starts at 8, and the slider runs from 2 to 32; transparency doesn't use up a colour. If a halo appears around edges, try one fewer; if a small detail vanishes, add one. More colours means more paths and a bigger SVG file.

How do I convert any image to SVG?

Drop it on this page: besides PNG, it traces JPG, WebP, GIF, BMP, AVIF and HEIC images, using the first frame of an animation. The steps and settings stay the same. For scans, signatures and JPG logos on white paper, the JPG to SVG page starts with settings tuned for JPEG noise and plain backgrounds.

Can I edit the SVG in a design app afterwards?

Yes, the SVG opens in vector design apps like any other, and each colour area is its own path you can recolour, move or delete. Tracing makes filled shapes rather than centre-line strokes, so a thin line becomes a narrow shape with two edges. Lettering in your image becomes shapes as well, not editable type.

Why does my traced logo look slightly different?

Tracing fits lines and curves to the edges it finds, so sharp corners can round off, very thin lines may thicken or break, and tiny specks are removed. To get closer, choose Detailed smoothness, a bigger Trace size or a lower Remove speckles setting. Soft grey edges can also add an extra colour band, which one fewer colour usually fixes.

Last reviewed: