PNG to SVG Converter: Turn Any PNG into a Scalable SVG
Convert PNG to SVG online in seconds. This free PNG to SVG converter traces your image into clean vector paths in your browser, with no upload, signup or watermark.
PNG to SVG converter tool
1Add your image
2Adjust the result
Start from
Style
More options
3Preview and download
More detailsColor layers, size history, SVG code
Color layers
Hover to isolate · click to hideLive size trace
SVG size per adjustmentSVG source
–Under the hood
How the PNG to SVG converter works
A PNG to SVG converter turns a grid of colored pixels into a set of filled vector shapes. This one does it in five automatic stages, entirely inside your browser, and redraws the result every time you move a slider.
Decode
Your browser reads the PNG with the Canvas API and turns it into a grid of RGBA pixels. Large files are resampled to a working size set by the Detail slider, and an optional Denoise blur removes grain.
Canvas · getImageDataQuantize
A median-cut palette of 2–64 colors is refined with k-means. Near-duplicate colors are merged, anti-aliased edge pixels are snapped to the nearest real color, and tiny specks are absorbed into their neighbors.
Median cut · k-meansTrace
Each color becomes a stacked layer. The layer mask is softened and its outline is extracted with marching squares, giving sub-pixel contours that follow the true edge instead of pixel stair-steps.
Marching squaresFit curves
Corners are detected, then every smooth run is fitted with cubic Bézier curves. Straight edges stay straight lines, so the result needs far fewer nodes than a raw pixel trace.
Schneider Bézier fitRender
The paths are written as one filled SVG path per color, with the original viewBox preserved. The preview, file size, palette and source code all update live as you move a slider.
SVG · fill-rule evenodd
Where your file goes
Why the result stays small and clean
- Stacked layers
- Each color sits on top of the one beneath it, so there are no hairline gaps and far fewer holes to describe.
- Sub-pixel contours
- Edges are placed between pixels, not on them, so diagonals and curves stay smooth.
- Curve fitting
- One Bézier segment can replace dozens of pixel steps, so a typical logo needs only a few hundred nodes.
- Cleanup before tracing
- Anti-aliasing fringes and specks are merged first, so they never become extra shapes.
Step by step
PNG to SVG conversion process
Converting a PNG to SVG takes five steps and usually less than a minute. You can stop after any step: the SVG is ready to download as soon as the preview looks right.
Add your PNG
Drop a PNG onto the upload box, click “Choose image”, or paste one from your clipboard with Ctrl+V. Not ready yet? Press a sample button to see the converter work first.
Tip: Also accepts JPG, WebP, GIF and BMP.
Pick a preset
Choose Logo, Illustration, Photo or Line art. Each preset sets sensible values for colors, detail, smoothness and speck removal, so the first preview is usually already close.
Tip: Logos: 4–8 colors. Photos: 32–48 colors.
Fine-tune the trace
Adjust the number of colors (2–64), Detail, Smoothness, Remove specks and Denoise. Switch between Color, Gray and Mono modes, and turn on Remove background for white or transparent edges.
Tip: Every slider updates the preview instantly.
Compare and inspect
Drag the handle to compare the original PNG with the SVG. Scroll to zoom, drag to pan, and hover a color layer to isolate it or click it to hide it before you export.
Tip: Zoom to 3200% to see the SVG stay sharp.
Download or copy the SVG
Press “Download SVG” to save the file, or “Copy code” to paste the markup straight into your project, Figma, Illustrator, Inkscape or a web page.
Tip: The file never leaves your device.
Reference
PNG to SVG conversion chart / features
Use this chart to pick the right settings for your PNG type, see how well each type converts, and compare PNG with SVG. The values match the presets built into the converter.
How well each PNG type converts
Quick answers
- Best results: logos, icons, pixel art and flat illustrations.
- Good results: line art, sketches and signatures in Mono mode.
- Needs care: scanned pages, which need Denoise and a higher speck filter.
- Stylized only: photographs and smooth gradients become posterized art.
Tip: start with the closest preset, then change only one slider at a time.
| PNG type | Preset or mode | Colors | Detail | Smoothness | Remove specks | Vector fit |
|---|---|---|---|---|---|---|
| Logo | Logo preset | 4–8 | 70% | 25–30% | 12 px² | 5/5 |
| Icon | Logo preset | 3–6 | 70% | 20% | 12 px² | 5/5 |
| Flat illustration or cartoon | Illustration preset | 12–20 | 75% | 45% | 8 px² | 4/5 |
| Line art or sketch | Line art preset · Mono | 2 (ink) | 85% | 35% | 4 px² | 4/5 |
| Signature | Mono · threshold 160 | 2 (ink) | 85% | 55% | 3 px² | 4/5 |
| Pixel art | Pixel mode | up to 16 | auto pixel size | not used | not used | 5/5 |
| Scanned document | Mono · Denoise 1.5 | 2 (ink) | 85% | 40% | 40 px² | 3/5 |
| Photograph | Photo preset | 32–48 | 55% | 60% | 24 px² | 2/5 |
| Feature | PNG (raster) | SVG (vector) |
|---|---|---|
| Scaling | Pixels blur or break up when enlarged | Scales to any size with no loss of sharpness |
| File size | Grows with the pixel count | Grows with shape complexity — tiny for flat art |
| Editing | Edit pixels in a raster editor | Edit shapes, curves and colors in any vector editor |
| Best for | Photographs and detailed textures | Logos, icons, illustrations, diagrams and line art |
| Transparency | Alpha channel | Native — empty space is simply transparent |
| Styling with CSS | Not possible | Possible when the SVG is inlined in a page |
| Print and signage | Needs a high-resolution original | Resolution-independent for any print size |
Converter features
Live preview
Every slider re-traces the image and updates the split view, size chart, palette and node count together.
Sub-pixel tracing
Outlines follow the true edge between colors rather than pixel boundaries, so curves stay smooth.
Bézier curve fitting
Smooth runs become cubic Béziers and straight edges stay lines, which keeps node counts low.
Stacked color layers
Layers sit on top of each other, so there are no hairline gaps or seams between colors.
2–64 colors
Choose how many colors to keep, or switch to Gray or Mono. Hover or hide any layer before exporting.
Pixel mode
Trace pixel art to crisp square rectangles at the detected pixel size, with no smoothing.
Transparent backgrounds
Transparent pixels never become shapes. Remove background clears a solid white backdrop in one click.
Zoom and compare
Drag the handle to compare, then zoom to 3200% to see the PNG pixelate while the SVG stays sharp.
Private by design
Conversion runs in your browser. Your PNG is never uploaded, stored or shared.
Free, no limits
No account, no watermark and no daily quota. Convert as many images as you like.
Answers
FAQ
Frequently asked questions about the PNG to SVG converter: how it works, what to expect, and how to get the best result. 15 answers in four topics.
The basics
What is a PNG to SVG converter?
A PNG to SVG converter turns a pixel-based PNG image into a vector SVG made of mathematical shapes and curves. Because an SVG describes shapes instead of pixels, it can be scaled to any size without blurring, and it is often much smaller than the PNG for flat artwork such as logos and icons.
Is this PNG to SVG converter free?
Yes. It is completely free with no account, no watermark and no daily limit. The only practical limit is your device: images are processed at up to 3000 px on the longest side, and very large or very detailed files simply take a little longer.
Are my PNG files uploaded to a server?
No. The conversion runs entirely in your browser using JavaScript and the Canvas API. Your PNG is never uploaded, stored or shared, so confidential artwork stays on your device.
What is the difference between PNG and SVG?
PNG is a raster format that stores a grid of colored pixels, so it loses sharpness when enlarged. SVG is a vector format that stores shapes, curves and fills, so it stays sharp at any size and can be edited in vector tools. PNG suits photographs; SVG suits logos, icons, diagrams and line art.
Quality and settings
Will the SVG look exactly like my PNG?
Not pixel for pixel. Conversion traces the shapes it finds and approximates them with curves, so the result is a clean, scalable version of the artwork. Flat, high-contrast images match very closely, while photographs become a stylized, posterized version.
Which PNG images convert best?
Logos, icons, flat illustrations, cartoons, line art, signatures and pixel art convert best because they are made of clear shapes and a limited set of colors. Photographs and soft gradients convert least well (try the Photo to Vector Converter for stylized results). See the chart above for settings by image type.
How many colors should I choose?
Match the number of flat colors in your artwork. Most logos need 4–8, icons 3–6 and illustrations 12–20. Photographs may need 32–48 or more. Extra colors add layers and file size without improving a flat design, and the color layer list shows exactly what each one contributes.
How do I get smoother lines or sharper corners?
Use the Smoothness slider. Lower values keep corners sharp and edges close to the original; higher values round off pixel stair-steps and wobble. Raise Detail for finer features and lower Remove specks if thin lines disappear.
Why does my photo look posterized or banded?
Vectors store flat color regions, so a smooth gradient has to be approximated with bands. Increase the number of colors and Detail, add a little Denoise, or accept the bold, graphic look. For true photographic detail, keep the PNG or use a photo format instead.
Transparency, text and editing
How do I keep a transparent background?
Transparent pixels in your PNG are respected automatically and never become shapes, so the SVG has no background box. If your PNG has a solid white background, switch on Remove background to clear it. Mono mode also drops the paper tone and keeps only the ink, which the Transparent Image to SVG Converter page is tuned for.
Does it recognize text in my PNG?
No. The converter does not perform OCR. Letters are traced as vector outlines, so they scale perfectly but are not editable as text. If you need live text, retype it in a design tool or run OCR separately.
Why is my SVG larger than my PNG?
Photographs and gradients need many shapes, and that can outweigh a well-compressed PNG. Reduce the number of colors, lower Detail, raise Remove specks or increase Smoothness. The file-size card and live size trace show the effect of every change as you make it.
Can I edit the SVG in Figma, Illustrator, Inkscape or Canva?
Yes. The output is standard SVG with one filled path per color, so any vector editor can open, recolor and reshape it. Layers are stacked in order, and you can hide a layer in the converter before you download.
Compatibility
What PNG size and formats are supported?
You can upload PNG, JPG, WebP, GIF and BMP files (each also has its own page, such as the JPG to SVG Converter and WebP to SVG Converter) that your browser can open. For performance, very large images are scaled down to a maximum of 3000 px on the longest side before tracing, and the exported SVG keeps the original aspect ratio.
Does it work on phones and tablets?
Yes. It runs in current versions of Chrome, Edge, Firefox and Safari on desktop and mobile. Very large images may be slower on older phones, so try a smaller image or lower Detail if the preview feels slow.
All converters
Every free converter and SVG tool
43 free tools that run in your browser. Pick a converter below, or search by format or task.
No converter matches that search. Try “SVG”, “logo” or “PNG”.