How to Convert PNG to SVG for Laser Cutting and 3D Printing
If you own a laser cutter, CNC machine, or 3D printer, you have probably run into this problem: you have a PNG or JPG image of a design you want to cut, engrave, or extrude into a 3D shape, but your software needs an SVG file. Raster images (PNG, JPG) are made of pixels. Laser cutters and CNC machines need vector paths โ mathematical curves they can follow precisely.
Converting an image to SVG is called image tracing or vectorization. This guide covers how to do it, which settings produce the best results, and how to use the output for laser cutting, CNC work, and 3D printing.
What Is an SVG File?
SVG stands for Scalable Vector Graphics. Unlike a PNG where each pixel has a color, an SVG describes shapes using mathematical paths. A circle is stored as a center point and radius, not as thousands of colored pixels.
This matters because:
- Vector files scale infinitely. Enlarge an SVG to billboard size and it stays perfectly sharp. Enlarge a PNG and it gets blurry.
- Laser cutters follow paths. A laser needs a line to follow. It cannot interpret a grid of pixels.
- CNC machines need tool paths. Same principle โ the machine needs curves, not dots.
- 3D printers can extrude vectors. Import an SVG into CAD software, extrude it to a height, and you have a 3D printable shape.
How Image Tracing Works
Image tracing algorithms analyze the colors and edges in a raster image and convert them into vector paths. The process typically works like this:
- Color quantization โ The image is reduced to a small number of colors (2 for black and white, 4-64 for color).
- Edge detection โ The algorithm finds boundaries between color regions.
- Path fitting โ Curves (Bezier paths) are fitted along those boundaries.
- Optimization โ Redundant points are removed to simplify the paths.
The result is an SVG file containing <path> elements that represent the shapes in your image.
Best Practices for Clean SVG Output
Not every image converts well. Here is what produces the best results:
Use High-Contrast Images
The clearer the distinction between foreground and background, the cleaner the trace. A black logo on a white background converts perfectly. A photo of a sunset does not.
Remove Backgrounds First
If your image has a complex background, remove it before tracing. A transparent PNG with just your design will produce a much cleaner SVG than an image with a busy background.
Start with the Highest Resolution Available
More pixels means more detail for the tracer to work with. If you have a 200px logo and a 2000px version, use the larger one.
Choose the Right Preset
Different use cases need different settings:
- Laser cutting: Use Black and White mode. Laser cutters need clean, two-tone paths. No gradients, no shading.
- CNC engraving: Grayscale works well. The depth of engraving can correspond to the shade of gray.
- 3D printing extrusion: Black and White or Posterized. You want simple, clean outlines that extrude into solid shapes.
- Vinyl cutting: Black and White with sharp edges. The cutter follows the path exactly.
- General design: High Detail or Smooth Curves, depending on whether you want precision or organic shapes.
Converting with 3DSearch's Free Tool
We built a free Image to SVG converter that runs entirely in your browser. No uploads, no servers, no account needed.
Here is how to use it:
- Go to 3DSearch Image to SVG Converter
- Drop your PNG, JPG, or WebP image onto the upload area
- Select a preset โ Black and White for laser cutting, High Detail for complex art
- Click Convert to SVG
- Preview the result side-by-side with your original
- Click Download SVG
The entire process takes seconds and your image never leaves your device.
Using Your SVG for Laser Cutting
Once you have your SVG file, here is how to use it with popular laser software:
LightBurn
- Open LightBurn
- File > Import > select your SVG
- The paths will appear on the canvas
- Set your cut/engrave settings (speed, power) based on your material
- Send to laser
LaserGRBL
- Open LaserGRBL
- File > Open File > select your SVG
- Adjust size and position
- Set power and speed parameters
- Start engraving
Glowforge
- Open the Glowforge app
- Upload your SVG
- It will automatically separate cut lines and engrave areas
- Set material type and hit Print
Using Your SVG for 3D Printing
SVGs can be turned into 3D printable objects by extruding them:
Tinkercad (Easiest)
- Go to tinkercad.com
- Create a new design
- Click Import > upload your SVG
- Set the height (extrusion depth)
- Export as STL
- Slice and print
Fusion 360
- Insert > Insert SVG > select your file
- Choose the plane to place it on
- Finish Sketch
- Select the profiles and use Extrude
- Export as STL or 3MF
OpenSCAD
linear_extrude(height = 5)
import("your-file.svg");
This gives you a 5mm tall extrusion of your SVG design.
Common Use Cases
Here are real-world examples of what people make with image-to-SVG conversion:
- Custom signs โ Convert a logo to SVG, laser cut from acrylic or wood
- Cookie cutters โ Trace a shape, extrude in Tinkercad, print in food-safe filament
- Stencils โ Black and white trace, laser cut from cardstock or mylar
- Engraved gifts โ Trace a photo to grayscale SVG, engrave on wood or glass
- Custom stamps โ Trace a design, 3D print the stamp, use with ink
- Vinyl decals โ Clean black and white trace, cut with a Cricut or Silhouette
- PCB art โ Convert artwork to SVG for custom circuit board silkscreen layers
Tips for Troubleshooting
SVG file is too large? Your image has too many colors or too much detail. Try the Posterized or Black and White preset to reduce path complexity.
Traced paths look jagged? Use the Smooth Curves preset. Or start with a higher resolution source image.
Thin lines disappearing? Increase the contrast of your source image. Very thin lines may not survive color quantization.
Background is being traced too? Remove the background from your image first using any photo editor, then trace the transparent PNG.
Laser cutter not following paths correctly? Make sure you are using a Black and White trace. Color SVGs may confuse laser software that expects single-color paths.
Try It Now
Ready to convert your image? Our free Image to SVG converter works instantly in your browser. No signup, no uploads to servers, no watermarks. Just drop your image and download the SVG.
Search for related models on 3DSearch
Find 3D printable models across Printables, Thingiverse, and Cults3D in one search. Get AI-powered slicer settings for your printer.
Search 3DSearch โ