PNG to SVG converter
To convert PNG to SVG, drop the image here: the tool traces the colour areas as vector paths and shows the SVG next to the original. You set the number of colours, level of detail and smoothing – all in the browser, with no upload.
Source: W3C – Scalable Vector Graphics (SVG) 1.1 (Second Edition): Paths. Updated: .
How it is calculated
Converting PNG to SVG means turning a pixel image into vector shapes that can be enlarged at will without losing quality. This tool merges the image’s colours into a small palette, follows the edges of every colour area and writes SVG paths from them – in your browser, with no upload and no account.
How it works
- Drop in a PNG, JPG or WebP, choose one or paste it with Ctrl + V.
- Set the number of colours, level of detail, smoothing and background; the SVG appears next to the original at once and updates with every change.
- Download the SVG and use it in Inkscape, Figma, Illustrator or on a web page.
What it is good for – and what not
- Well suited: logos, icons, line drawings, silhouettes, pictograms and scans with clear areas and few colours.
- Less suited: photos and fine colour gradients. They become flat islands of colour (posterisation); that is a style effect, not a reproduction.
- Text in the image becomes shapes, not editable text.
Limits
The result is a clean tracing, not an original design: check it in a vector program if it is to be used for print or as a logo template. Only use images you have the rights to.
- Images up to 50 MB; for tracing they are scaled down to at most 1,400 pixels on the long side (coarse 500, medium 900) – the SVG itself scales freely.
- Gradients, shadows and levels of transparency are not reproduced; semi-transparent edges count as opaque or empty.
Privacy
The image never leaves your device. Nothing is uploaded. Next steps: SVG to PNG, remove background or compress an image.
Black and white, comparison slider and several images
In the “Black and white” colour mode, a threshold splits the image into black and white before it is traced – this gives clean, small SVGs from line art, stamps and signatures. With the slider on “automatic”, the tool picks the threshold itself (Otsu’s method); a higher value turns more of the image black. Use the slider below the preview to compare the original and the SVG at the same spot. The line above shows colours, paths, points and file size, so you can see at once what a setting costs. You can drop in up to 20 images at once: the settings apply to all of them, and “Download all as ZIP” traces them one after another. Copy the SVG code of the image shown with one click, for example to paste it straight into HTML.
Frequently asked questions
How do I convert PNG to SVG?
Drop the image here: the tool traces it at once. Use number of colours, level of detail and smoothing to tune the result and download the SVG.
Can I convert a JPG to SVG?
Yes, also JPG, WebP, GIF and BMP. With JPG the result is usually busier because of compression artefacts; fewer colours and “Coarse” help.
How do I get a transparent background?
Leave “Leave out the background” ticked: the colour of the image corners is then not traced. Transparent PNGs stay transparent anyway.
Why does the SVG look so different for photos?
Tracing reproduces areas with few colours, not gradients. For photos it only works as a style effect.
Is my image uploaded?
No. Everything runs in your browser.
Sources and legal basis
- W3C – Scalable Vector Graphics (SVG) 1.1 (Second Edition): Paths
- W3C – SVG 1.1: fill-rule (nonzero, evenodd)
- Wikipedia – Ramer–Douglas–Peucker algorithm
- Wikipedia – k-means clustering
- W3C – Portable Network Graphics (PNG) Specification (Third Edition)
- MDN – HTMLCanvasElement: getImageData() (Pixeldaten im Browser)
As of: · Editorial policy
Related tools
- Convert SVG to PNGConvert SVG to PNG in your browser: set the size in pixels or as a scale factor, keep a transparent or pick a background color, up to 20 files as ZIP. Free.
- Image converter: JPG, PNG, WebP, AVIFImage converter without upload: PNG to JPG, WebP to JPG, HEIC to JPG, plus AVIF, BMP and ICO – up to 20 images at once, resize, ZIP download. Free.
- Remove the Background from an ImageRemove image backgrounds automatically: the AI runs in your browser, full resolution, transparent PNG or solid colour. No upload, no sign-up, free.
- Compress images – reduce file sizeCompress images without uploading: shrink JPG, PNG, WebP and HEIC, up to 20 at once, with an optional target size in KB and ZIP download. Free.
- Favicon generator: from image, text or emojiCreate a favicon from an image, letters or emoji: favicon.ico (16/32/48), apple-touch-icon, PNG 192/512, site.webmanifest and HTML code. No upload.
- QR Code Generator – free and permanentQR code generator for links, Wi-Fi, contacts (vCard), email, SMS or phone – add colors and a logo, download PNG or SVG. Never expires, no tracking, no sign-up.
- Pt to mm converterPt to mm converter: 1 pt = 0.3528 mm (1/72 inch). Convert font sizes to millimeters, picas, inches and pixels at any resolution, with a size table.
- PDF Viewer OnlinePDF viewer online: open a PDF in your browser, search, zoom, rotate, browse thumbnails, print, read in night mode or listen to pages – no upload, no sign-up.
- PDF to PNG ConverterConvert PDF to PNG: every page as a lossless PNG, up to 300 dpi, optionally with a transparent background, one by one or as a ZIP. Free, nothing uploaded.