PNG to SVG converter, free, in your browser
Turn a PNG, JPG, WebP, GIF or BMP image into an SVG file in millimetres, for laser cutting, Cricut and plotter cutting, CNC and 3D printing. Choose black and white or colour, set the width, compare the original with the vector, download. The image never leaves your computer: everything is computed in your browser.
Nothing is uploaded. The image is read and traced on your machine.
Your image appears here.
The vector appears here after you add an image.
Need a DXF for a laser or CNC? The Image Vectorizer (Pro) exports DXF from the same trace, and the SVG DXF G-code Bridge (Pro) makes G-code from it.
Add an image to start.
- Image
- -
- Contours
- -
- Points
- -
- Layers
- -
- Threshold
- -
- Output size
- -
- SVG file
- -
- Trace time
- -
How it works
Three steps, no account.
Add an image
Drop a PNG, JPG, WebP, GIF or BMP file on the converter above. It is read in your browser and never uploaded. Images larger than 900 pixels on the long side are scaled down first.
Choose a mode and a width
Black and white traces the dark areas at a threshold, automatic or your own. Colour reduces the image to a few colours and traces each as a layer. Type the width in millimetres; the height follows the image.
Download the SVG
The SVG is in millimetres, with one group per colour layer, ready for your laser software, cutting plotter or CAD program.
What this converter does
What the tracing code writes, as it is in the code.
- Follows the pixel edges
The boundary of each shape is found along the cracks between pixels, so a rectangle stays a rectangle with four points.
- Simplifies and rounds soft corners
Ramer-Douglas-Peucker removes the pixel steps within the Simplify tolerance, then one pass of corner cutting rounds turns under 60 degrees.
- Writes closed polygons of straight line segments
Every contour is an M, L and Z path in the SVG, drawn with one even-odd fill per layer.
- Keeps holes as holes
The SVG fill rule is even-odd, so the inside of an O or of a ring is empty, in the preview and in the file.
What it does not do
Read this before you pick a tool.
- No Bezier curves
There is no curve fitting and this is not an AI tracer. A smooth logo becomes many short straight segments. That is an advantage for laser, plotter and CNC, which move along straight segments anyway, and a drawback if you enlarge the logo a lot or edit smooth nodes in a vector editor.
- No text recognition
Letters become outlines, not text. The font cannot be changed afterwards.
- No repair of a poor image
A blurred or heavily compressed image gives a ragged outline. The outline cannot be more exact than the pixels you give it.
- No kerf or tool compensation
The path is the nominal shape. Add kerf, tool radius, tabs and toolpaths in your laser software or CAM program.
Settings
What goes in, what comes out and what you can set.
| Setting | Range and default | What it does |
|---|---|---|
| Input formats | PNG, JPG, WebP, GIF, BMP | One image at a time. An animated GIF uses its first frame. Images larger than 900 pixels on the long side are scaled down once before tracing, and the page tells you. |
| Mode | Black and white or colour, default black and white | Black and white traces the dark areas as one layer. Colour reduces the image to a few colours and traces each one. In black and white mode a transparent pixel counts as white; in colour mode a mostly transparent pixel is left out. |
| Threshold | Automatic (Otsu), or 1 to 254 | Pixels at or below the threshold are traced. The automatic value is the one that best separates the two groups of tones, and the page shows the value it used. |
| Invert | Off | Traces the light areas instead of the dark ones. The page suggests it when the edge of the image is dark. |
| Colours | 2 to 12, default 6 | Median cut reduces the image to this many colours. Each colour is a layer, the biggest area at the bottom. The background colour becomes a layer too. |
| Simplify | 0 to 6 px, default 1.2 | The Ramer-Douglas-Peucker tolerance. 0 keeps every pixel step; larger values give fewer points and a more approximate outline. |
| Round soft corners | On | One pass of corner cutting on turns under 60 degrees. Sharper corners are kept. |
| Drop specks below | 0 to 200 px², default 12 | Removes contours with a smaller area, such as dust and compression noise. |
| Width | 5 to 1000 mm, default 100 | Width of the SVG. The height follows the image proportions. |
| Filled shapes | On | On: filled paths. Off: outlines only, drawn 0.2 mm wide. |
| SVG output | Millimetres | Width and height in mm and a viewBox in the same units. One group per layer, named TRACE, or COLOR_1, COLOR_2 and so on, with an Inkscape layer label. Even-odd fill rule. |
| DXF and G-code | Not on this page | DXF export is in the Image Vectorizer (Pro), which uses the same tracing code. G-code is made in the SVG DXF G-code Bridge (Pro). |
| Upload | None | The page sends no image and no result anywhere. |
SVG or DXF: which one for laser, Cricut, CNC and CAD
This page gives you the SVG. DXF comes from the Image Vectorizer (Pro). Pick by the program you open the file in.
| You are using | Take | Why |
|---|---|---|
| Laser cutting or engraving lines (LightBurn and similar) | SVG | Many laser programs import SVG, LightBurn among them. Colour layers arrive as groups. Check the size after import. |
| Cricut Design Space and other cutting plotters | SVG | Design Space accepts SVG uploads. Keep the filled shapes on, check the size on the canvas and cut a small test first. |
| CNC router, plasma or waterjet (CAM) | DXF (Pro), or SVG if your CAM imports it | DXF is the usual input of CAM programs: closed contours in millimetres. Tool radius, kerf, tabs and toolpaths are added in the CAM program. A router bit has a radius, so it rounds inside corners; the rules core has no figure for it, so none is given. |
| CAD sketch (Fusion 360, FreeCAD and similar) | SVG, or DXF (Pro) | Fusion 360 can insert an SVG into a sketch. A curve arrives as many short segments, not as an arc. |
| Editing and branding in Inkscape or another vector editor | SVG | Layers arrive as groups. The nodes are straight segments, not smooth curves, so for a logo you will enlarge a lot, use a curve fitting tracer. |
| 3D printing a logo | SVG to 3D, or Image to STL | Open the SVG in SVG to 3D, or skip the SVG and use Image to STL. |
| Engraving a photo with tones | Neither | A trace throws the tones away. Engrave the original image as a raster, typically 250 to 400 dpi. |
Which image works best
A few habits make the difference between a clean cut path and a ragged one.
Strong contrast
A dark logo on a light background is the easy case for black and white. Flat artwork with a few solid colours suits colour mode.
Plain background
Use one flat colour, or a transparent PNG. A gradient or a texture turns into small specks; raise Drop specks below to remove them.
Enough resolution
A simple logo traces well from a few hundred pixels on the long side. Up to 900 pixels are used; larger images are scaled down, so more pixels do not give a more exact outline.
Clean edges
PNG keeps edges sharp. JPG and WebP add compression noise that the outline follows; raise Simplify if the edge looks ragged.
Lines wide enough for your process
A line can only be as wide as its pixels allow: at 100 mm wide, a 300 px image has 0.33 mm per pixel. Compare the narrowest line and the smallest hole in your image with the numbers below.
Not a photograph
A photo has thousands of tones. Black and white gives a stencil, colour gives flat layers. If you want the look of a photo, engrave it as a raster, or use Image to STL for a relief.
Numbers for laser, CNC and 3D printing
From the EduFacturing rules core. Where it has no figure, this page gives none.
| What | Value | Note |
|---|---|---|
| Narrowest embossed line, 3D printing | at least 1.0 mm | FDM printing (the rules core has no figure for resin). At 100 mm wide from a 300 px image that is about 3 px. |
| Typical kerf, CO2 laser on acrylic, wood or MDF | 0.25 to 0.5 mm | The width the beam removes. It depends on the material, thickness and focus, and it is not compensated here. |
| Typical kerf, fibre laser on metal | 0.1 to 0.3 mm | Depends on the thickness, the nozzle and the assist gas. |
| Smallest hole when laser cutting metal | 1.0 x the sheet thickness | A general figure; fabricators publish finer tables per material. |
| Web between two cuts, laser cutting metal | at least 0.5 x the thickness | Some fabricators ask for more; use the larger figure when in doubt. |
| Inside corner radius, laser | no lower limit | A laser has no tool radius, so inside corners are limited by the kerf. |
| Raster engraving of a photo | 250 to 400 dpi | Typical range. Engrave the original image, not a trace. |
| Kerf of a diode laser, bit radius of a router | no figure | The rules core has no figure for diode lasers or routers, so none is given. Cut a test piece and measure it. |
Measured example
Five test images at their recommended settings (width 100 mm)
| Sample | Image | Mode | Contours | Points | SVG | Time | Area vs mask |
|---|---|---|---|---|---|---|---|
| Synthetic logo: circle, square with a hole, text | 240 x 150 px | Black and white, threshold 127 (auto) | 7 | 100 | 1.7 KB | 27 ms | 0.14% |
| EduFacturing logo, JPG | 640 x 138 px | Black and white, threshold 129 (auto) | 43 | 744 | 10.8 KB | 55 ms | 0.31% |
| Two colours: circle and triangle | 200 x 120 px | Colour, 2 colours | 5 | 76 | 1.4 KB | 38 ms | 0.09% |
| Five flat colours with a ring | 200 x 120 px | Colour, 5 colours | 11 | 212 | 3.4 KB | 66 ms | 0.25% |
| Photo-like render, WebP | 260 x 260 px | Colour, 6 colours | 211 | 3,615 | 52.2 KB | 247 ms | 4.95% |
The EduFacturing logo (JPG) at four Simplify settings
| Simplify, px | Contours | Points | SVG | Time | Area vs mask |
|---|---|---|---|---|---|
| 0 | 44 | 9,280 | 128.5 KB | 44 ms | 0.00% |
| 0.6 | 44 | 1,739 | 24.3 KB | 63 ms | 0.02% |
| 1.2 | 43 | 744 | 10.8 KB | 58 ms | 0.31% |
| 3 | 43 | 491 | 7.3 KB | 51 ms | 3.16% |
Measured on 2026-10-07 in headless Chromium 149.0.7827.55 on an Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz workstation. Time is the page's own work from the moment tracing starts until the SVG text is built; drawing the preview is not included. Median of 3 runs per row, the page reloaded for each run. Area vs mask is how far the filled area of the vector is from the pixel area of the thresholded image, as a share of that area. In colour mode it is the total area difference between each layer and the pixels nearest to its colour, as a share of all pixels. It is small, and it is not zero: simplifying and corner cutting move the outline by a fraction of a pixel. The test logo is a 240 x 150 px PNG drawn without anti-aliasing: a circle, a square with a round hole and the word FILE, 7,636 px of ink. At Simplify 0 with Round soft corners off, the filled area of the vector equals that pixel area exactly, 7 contours, and the same check passes on the other test images. For the PNG images the SVG was also compared byte by byte with the output of the original tracing code on the same pixels. Your times will differ.
Frequently asked questions
How do I convert a PNG to SVG?
Drop the .png file onto the converter at the top of this page, choose Black and white for a one colour logo or Colour for flat artwork, type the width in millimetres and press Download SVG. The page follows the edges between light and dark pixels, simplifies them and writes closed polygons into an SVG in millimetres. PNG is the best input for logos and icons: the edges stay sharp, and a transparent background counts as white. The 240 x 150 px test logo gave 7 contours and 100 points at the default settings.
How do I convert a JPG to SVG?
Drop the .jpg or .jpeg file onto the converter and press Download SVG. JPEG compression adds faint noise around edges, and the traced outline follows that noise, so a JPG logo gives a slightly ragged outline: raise Simplify to smooth it, or start from the PNG or the original logo file if you have one. The EduFacturing logo saved as a JPG gave 43 contours and 744 points in the measured example below.
How do I convert an image to DXF for laser cutting?
This free page makes an SVG, not a DXF. DXF export is in the Image Vectorizer (Pro), which uses the same tracing code. For laser cutting an SVG is often enough: many laser programs import SVG, LightBurn among them. Drop the image, choose Black and white, set the width to the real size in millimetres, press Download SVG and check the size after import. The outline is the nominal shape: kerf, the material the beam removes, is not compensated here. The typical kerf is 0.25 to 0.5 mm for a CO2 laser cutting acrylic, wood or MDF and 0.1 to 0.3 mm for a fibre laser cutting metal, and it depends on the material, thickness and focus. The rules core has no figure for diode lasers, so cut a small test shape and measure it. To engrave a photo with tones, use the raster engraving of your laser software on the original image, typically 250 to 400 dpi, instead of a vector trace.
Is the PNG to SVG converter free?
Yes. There is no account, no daily limit and no watermark on the files.
Is my image uploaded to a server?
No. The image is read inside your browser tab, drawn on a canvas and traced by code that runs on your own machine, and the SVG file is built there too. The page sends no image and no result anywhere, which matters for client logos and private drawings.
Black and white or colour: which mode should I use?
Use Black and white when you need one set of shapes: a one colour logo for cutting, engraving, a stencil or a stamp. The page thresholds the image (automatic Otsu threshold, or your own value from 1 to 254) and traces the dark areas; Invert traces the light areas instead. Use Colour for flat artwork with a few colours: the image is reduced to 2 to 12 colours by median cut and each colour becomes a layer, the biggest areas at the bottom. The background colour becomes a layer too, so hide or delete it if you do not want it. A photo with gradients gives many small islands in either mode; the preview shows that before you download.
Why is the SVG made of straight segments and not curves?
The tracer follows the pixel edges, simplifies them with the Ramer-Douglas-Peucker algorithm (tolerance 1.2 px by default) and rounds only the soft corners, once, by corner cutting (Chaikin); corners sharper than 60 degrees stay sharp. The output is closed polygons written as M, L and Z path commands. There are no Bezier curves and no curve fitting, and this is not an AI tracer. For laser cutters, plotters and CNC machines that is an advantage: the machine moves along straight segments anyway, and the preview shows the path that will be cut. It is a drawback when you enlarge a smooth logo a lot or want to edit smooth nodes in a vector editor. For that, use a curve fitting tracer such as Potrace or the Trace Bitmap command of Inkscape.
How do I use the SVG in Cricut Design Space, LightBurn or Fusion 360?
Cricut Design Space accepts SVG uploads: upload the file, check the size on the canvas and resize there if needed. LightBurn imports SVG files. Fusion 360 can insert an SVG into a sketch. The SVG declares millimetres in its width and height, but programs read units in different ways, so always measure the imported shape against the width you typed and correct the scale in the program if it is off.
How do I turn a logo into a 3D print?
Two routes. To get a raised logo on a plate, use Image to STL: it turns the brightness of the image into a height and writes an STL, with no SVG step. To extrude the exact outline of the logo, download the SVG here and open it in SVG to 3D. Keep strokes and text at least 1.0 mm wide in the finished size: that is the narrowest embossed line the EduFacturing rules core allows for FDM printing; it has no figure for resin printing. At 100 mm wide from a 300 px image one pixel is 0.33 mm, so the thinnest stroke is about 3 px.
Why is my result one big black rectangle, or empty?
In black and white mode the dark areas are traced. If the picture is light on a dark background, the background is traced as one large shape: tick Invert. If nothing is found, the manual threshold may be too low for the image: switch back to the automatic threshold or raise it. A single tone image has nothing to trace, and the page says so.
What size are the files, and in which units?
The SVG is in millimetres. You type the width (5 to 1000 mm) and the height follows the image proportions, so nothing is stretched. The SVG has its width and height in mm and a viewBox in the same units. The size on disk depends on the number of points: the test logo made a 1.7 KB SVG. Images larger than 900 pixels on the long side are scaled down before tracing.
Other tools
Part of the EduFacturing tool set.