Vector tracing, not a wrapped bitmap
PNG and JPG to SVG Converter
Add a logo, icon, drawing or scan and get an SVG made of real vector paths, with flat colours, smooth curves and an optional transparent background. The tracing runs on your device; nothing is uploaded.
What “PNG to SVG” should mean
A PNG or JPG is a grid of pixels. An SVG made from it is only useful if the shapes are traced: the converter finds the edge of every colour area and redraws it as a vector path, so the file stays sharp at any size and can be edited, recoloured or cut on a plotter.
Some converters skip that step. They put the original pixels inside an SVG file as an embedded image. The file ends in .svg, but enlarging it still shows the pixels, and a cutting machine sees no outlines at all. This tool always traces, and shows how many shapes and colours it found so you can check.
Traced SVG or wrapped bitmap: how to tell them apart
Open any SVG in a text editor. A traced file is a list of <path d="…"> elements with coordinates. A wrapped bitmap holds one <image> element with a long block of base64 text. Our 800 × 400 test logo shows the difference in numbers.
| Question | Traced SVG (this tool) | PNG wrapped in an SVG |
|---|---|---|
| Question: What is inside the file? | Traced SVG (this tool): 4 <path> elements, one per colour, 41 shapes in total | PNG wrapped in an SVG: One <image> with the PNG as base64 text |
| Question: File size for the test logo | Traced SVG (this tool): 9.9 KB (3.5 KB with smooth curves off) | PNG wrapped in an SVG: About 40 KB: base64 makes the 30.1 KB PNG a third bigger |
| Question: Enlarged to 400% | Traced SVG (this tool): Edges stay sharp; the browser redraws the curves | PNG wrapped in an SVG: Blurry or blocky edges, exactly like the PNG |
| Question: Editable in Illustrator, Inkscape or Figma | Traced SVG (this tool): Yes: change a colour, move a shape, delete the background | PNG wrapped in an SVG: Only as a single picture |
| Question: Cricut, Silhouette, laser or vinyl cutter | Traced SVG (this tool): Cut lines follow the shapes | PNG wrapped in an SVG: No cut lines, or only a rectangle around the picture |
| Question: Photos | Traced SVG (this tool): Become flat colour areas, like a screen print | PNG wrapped in an SVG: Look identical to the original, because nothing was converted |
What we measured
We generated three test images with a script (scripts/seo/png-to-svg/make-fixtures.py) and traced them with this page’s engine in Chromium on a 4-core test machine on 10 November 2026: a 800 × 400 logo PNG with three flat colours and anti-aliased text (30,789 bytes), a 1600 × 1200 pen drawing made to look like a phone photo of paper, with uneven light and grain, saved as JPG (181,778 bytes), and a 1200 × 800 photo-like landscape JPG with sky gradients and sensor noise (130,328 bytes).
| Input and settings | Shapes and colours | SVG size | Time |
|---|---|---|---|
| Input and settings: Logo PNG, Logo mode, automatic colours | Shapes and colours: 41 shapes, 4 colours (white found as the background) | SVG size: 10,149 bytes | Time: 0.09 s |
| Input and settings: Logo PNG, same, background made transparent | Shapes and colours: 40 shapes, 3 colours | SVG size: 10,107 bytes | Time: 0.05 s |
| Input and settings: Logo PNG, smooth curves off | Shapes and colours: 41 shapes, 4 colours | SVG size: 3,609 bytes | Time: 0.03 s |
| Input and settings: Drawing JPG, Line art mode | Shapes and colours: 20 shapes, 1 ink colour, paper removed | SVG size: 15,151 bytes | Time: 0.13 s |
| Input and settings: Drawing JPG, Logo mode by mistake | Shapes and colours: 1,606 shapes, 3 colours (paper shading traced as areas) | SVG size: 250,719 bytes | Time: 0.23 s |
| Input and settings: Landscape JPG, Photo mode, 24 colours | Shapes and colours: 2,290 shapes, 24 colours | SVG size: 1,060,988 bytes | Time: 0.63 s |
| Input and settings: Landscape JPG, Photo mode, 8 colours, detail 1, specks under 256 px removed | Shapes and colours: 288 shapes, 8 colours | SVG size: 85,016 bytes | Time: 0.17 s |
Two results matter most. The same drawing gave a 15 KB SVG in Line art mode but a 245 KB SVG in Logo mode, because Logo mode treats the shading of the paper as colour areas: pick the mode that matches the picture. And the landscape became an SVG eight times the size of its JPG at 24 colours. Rendered on white, the traced logo differed from the original by an average of 1.2 levels out of 255 per pixel, mostly along anti-aliased edges.
Which mode to pick
Logo or icon
For artwork made of a few flat colours: logos, icons, badges, flat illustrations, screenshots of diagrams. The tool counts the colours itself (it stops adding colours once the average error is small), or you set 2 to 16.
If a thin outline or a small accent disappears, add one colour or raise the detail. If gradients turn into bands, the artwork is not flat; consider keeping it as PNG.
Line art or scan
For anything drawn in one ink: sketches, signatures, stamps, handwriting, technical drawings, a scanned diagram. Every pixel is either ink or paper, the paper becomes transparent and the ink becomes one black path.
Shadows and grey paper are the usual problem. The automatic threshold (Otsu’s method) handles most phone photos of paper; move it by hand if faint lines vanish or shadows turn into ink.
Photo
For a deliberate poster or screen-print look. A photo has thousands of colours that blend into each other; tracing replaces them with 8 to 32 flat areas.
Expect a file several times larger than the JPG. Fewer colours, lower detail and a larger speck size bring it down, as the 8-colour row above shows.
How to convert PNG or JPG to SVG here
- 1. Add the image
Choose, drop or paste a PNG, JPG, WebP, HEIC, GIF or BMP. Add several to trace a batch with the same settings.
- 2. Pick the mode
Logo or icon for flat colours, Line art or scan for one ink, Photo for a poster effect. The first trace appears within a second for most logos.
- 3. Check the preview
Drag the slider between original and SVG, zoom to 400% on the edges, and read the shape count and SVG size.
- 4. Adjust only what you see
Missing details: raise detail or colours. Stray dots: raise the speck size. White box around the logo: make the background transparent.
- 5. Download or copy
Download the SVG, copy its code into HTML or a design tool, or trace every image into one ZIP.
- ✓ Real tracing: <path> outlines, never an embedded bitmap
- ✓ Three modes: logo or icon, line art or scan, photo
- ✓ Colours found automatically, or 2–16 (8–32 for photos)
- ✓ Live before/after slider with 200% and 400% zoom
- ✓ Transparent background and speck removal
- ✓ Shape count, SVG size and time shown before you download
- ✓ Copy the SVG code or download the file; batch to ZIP
- ✓ PNG, JPG, WebP, HEIC, GIF and BMP input, traced in your browser
What each setting changes
- Colours
- How many flat colours the image is reduced to. Anti-aliased edges contain in-between shades; they are assigned to the nearest real colour, which is why a logo with 3 colours usually needs no more than 3 or 4.
- Detail
- How closely outlines follow the pixels. Level 1 allows about 2.4 px of deviation and gives the fewest points; level 5 allows about 0.5 px and keeps small bumps. Level 3 suits most logos.
- Specks
- Areas smaller than the chosen size (4 to 256 traced pixels) merge into the colour around them. This removes JPEG noise and dust without leaving holes.
- Transparent background
- The colour that covers most of the image border is treated as background and removed everywhere, including the inside of letters such as O and A.
- Smooth curves
- On: outlines become Bézier curves, with sharp corners kept where the edge really turns. Off: straight segments only, which suits pixel art and gives the smallest file.
How the tracing works
The colours are found with k-means clustering on a histogram of the image, seeded the same way every time, so the same image and settings always give the same SVG. Each pixel then takes its nearest colour, and regions smaller than the speck size are merged into their neighbour.
Colours are drawn as stacked layers, largest area first, and each layer also covers the colours drawn above it. Neighbouring shapes therefore overlap slightly instead of meeting edge to edge, which avoids the thin white seams that some tracers leave between colours.
Outlines are followed along pixel edges, the pixel staircase is replaced by edge midpoints, simplified with the Ramer–Douglas–Peucker algorithm, and turned into cubic Bézier curves where the outline bends gently. This is the same family of methods as Potrace and Inkscape’s Trace Bitmap, written for this page so it can run in your browser without a server.
The output uses one <path> per colour with the even-odd fill rule, relative commands and coordinates rounded to 0.1 px. Images above 4 megapixels are traced at 4 MP to keep phones responsive; the SVG still opens at the original pixel size.
When this tool is the wrong choice
- • Photos and gradients do not become better as SVG. They become flat areas and a bigger file. Keep the JPG or PNG, or compress it, unless you want the poster look.
- • Text is traced as shapes, not as editable letters. To change the wording, retype it in a design tool.
- • Very small images (an icon of 32 × 32 px) have too little detail to trace faithfully. Find a larger copy first; the tool enlarges small images for smoother curves, but it cannot invent detail.
- • A traced SVG is an approximation. For a brand logo that must match exactly, ask for the original vector file (AI, EPS, PDF or SVG) from whoever designed it.
- • If a website only accepts .svg and you need the exact pixels, an embedded-bitmap SVG is what you want, and this page does not make one.
Frequently asked questions
Is converting PNG to SVG lossless?
No. Tracing replaces pixels with shapes, so fine texture and soft gradients are simplified. For flat logos the difference is usually invisible: our test logo differed from the original by about 1 level out of 255 per pixel on average. What you gain is an outline that stays sharp at any size.
Can I convert JPG to SVG too?
Yes. JPG, PNG, WebP, HEIC, GIF and BMP all work. JPG compression adds noise around edges, so use the speck setting (16 px or more) and Line art mode for scanned drawings.
Why is my SVG bigger than the PNG?
The image has more colour areas than flat artwork usually does: a photo, a gradient, a texture or a shadow. Each area becomes a shape. Lower the colours and detail, raise the speck size, or keep the original format.
Will the SVG work in Cricut Design Space or Silhouette Studio?
Yes. The shapes are closed paths, one layer per colour, so they import as cut layers. Make the background transparent first, or the background becomes a rectangle to cut.
How do I make the background of the SVG transparent?
Turn on “Make the background transparent”. The colour that covers most of the border is removed everywhere. A PNG that is already transparent stays transparent without the switch.
How can I check whether an SVG is really vector?
Open it in a text editor or zoom to 400%. A real vector file contains <path> elements and stays sharp; a wrapped bitmap contains one <image> with base64 text and turns blurry.
Are my images uploaded?
No. Decoding, tracing, the preview and the ZIP all happen in your browser. The images are not sent to MAXScanner.