How to convert a PNG to STL
A PNG is flat, so turning it into something printable means deciding what the third dimension should be. This converter offers the two common answers: give the shape a thickness, or let brightness set the height. Both run entirely in your browser.
Two ways to turn an image into a solid
Silhouette extrudes the shape of the image. Every pixel that belongs to the shape becomes a column of the height you choose, and everything else is left out. This is what you want for logos, icons, lettering, cookie-cutter outlines, keychains, and stencils. With a transparent PNG the shape is simply the opaque pixels. With an image on a plain background, the threshold slider decides which pixels count: darker than the threshold by default, or lighter with Invert on.
Heightmap turns brightness into height. Dark pixels rise highest and light pixels stay near the base, or the other way round with Invert, over a solid backing plate. This suits textured tiles, embossed signs, terrain from a grayscale elevation image, and flat lithophane-style panels. Photos work, but strong contrast and simple shapes read much better in plastic than subtle shading.
A transparent image opens in Silhouette mode and an opaque one in Heightmap mode, since that is usually what they are for. You can switch at any time; the preview updates as you change settings.
SVG to STL
SVG files are vector drawings, so they are extruded from their paths rather than from pixels. Curves stay smooth at any size, which makes SVG the best input for logos and lettering if you have it. Every filled shape is extruded to the height you choose, holes such as the inside of an O are kept, and the width you set is the width of the artwork in millimeters.
Only filled shapes have an area to extrude. Lines and outlines drawn with a stroke but no fill are skipped, and the converter tells you how many it skipped. In Inkscape, select them and use Path, then Stroke to Path, to turn them into filled shapes first. Text should also be converted to paths with Path, then Object to Path, so the file does not depend on fonts.
Settings that matter for printing
Width sets the final size of the model in millimeters; depth follows the image’s proportions. Measure where the print is going, or check your printer’s build plate, before you choose.
Height is how far the shape or relief rises, and Base adds a solid plate under the whole image. A base of 1 to 2 mm keeps separate letters or islands of a design connected so they print as one piece. Without a base, every separate part of a silhouette becomes its own small object.
Detail sets how many pixels across the image is sampled, from 100 to 600. Higher detail follows edges more closely but makes a larger file and a slower preview. As a rule of thumb, there is no benefit to pixels smaller than your nozzle: at 80 mm wide, 200 pixels is 0.4 mm per pixel, about the width of a standard nozzle line.
Good starting points
- Logo or keychain: Silhouette, 2–3 mm height, 1–2 mm base if the design has separate parts.
- Cookie cutter outline: Silhouette with a thin shape, or an SVG of the outline converted to a filled path.
- Embossed tile or sign: Heightmap, 2 mm relief on a 2 mm base, high-contrast artwork.
- Lithophane-style panel: Heightmap with dark areas raised, about 3 mm relief on a thin base, printed upright in white PLA.
Preparing an image for a clean result
The cleaner the edges in the image, the cleaner the edges of the print. A PNG exported with a transparent background is ideal for silhouettes. JPG photos have compression noise around edges that shows up as rough outlines; raising the threshold or lowering the detail smooths it. Remove backgrounds, shadows, and gradients you do not want to become geometry before converting.
Fine lines thinner than about two nozzle widths often do not print, whatever the converter does. Thicken them in an image editor first. For heightmaps, a slight blur on the image often prints better than sharp noise, because every tiny bump becomes a layer change.
What the STL contains
The download is a binary STL in millimeters with Z up, lying flat on the build plate. For images, the mesh is built so that every edge is shared by exactly two triangles and every triangle faces outward, which is what slicers expect. SVG shapes are extruded the same way, though very complex or self-overlapping paths can still produce small errors. Where two pixels of a silhouette touch only at a corner, the converter fills one neighboring pixel so the mesh stays well formed; that changes the outline by at most one pixel at such spots.
Silhouettes are made of pixel-sized steps, so curved edges show a fine stair-step pattern that becomes less visible as detail increases. SVG input does not have this, which is one more reason to use a vector file when you have one. If you want to check a file before printing, the STL checker reports holes and other problems in any STL.
When you need a full 3D model instead
Extruding an image gives you a flat object with the outline or texture of the picture. It cannot invent the back, sides, or depth of a character, pet, or product in a photo. For that, PrintMesh’s AI PNG to STL turns a single image into a full 3D model you can print, which is a different job and needs an account.
Ways to turn an image into an STL
Ways to make a printable STL from a PNG, JPG, or SVG, compared.
| Feature | This converter | AI image to 3D | Slicer image import | CAD or Blender |
|---|---|---|---|---|
| Result | Flat extrusion or relief | Full 3D model with depth | Relief or lithophane | Anything you model |
| SVG support | Yes, filled paths | No | Some slicers | Yes |
| Install or account | Neither | Account needed | Slicer install | Install and skills |
| Size in millimeters | Yes | Scale after | Yes | Yes |
| Image leaves your device | No | Yes, for processing | No | No |
| Best for | Logos, signs, keychains, tiles | Characters, pets, objects | Quick lithophanes | Precise or complex parts |
Troubleshooting
Quick fixes for the results people ask about most.
- The whole rectangle was extruded
- The image has no transparency, so the threshold decides the shape. Move the threshold slider, or turn on Invert if the subject is lighter than the background.
- Edges look jagged
- Silhouettes follow the pixel grid. Raise Detail, start from a larger image, or use an SVG for perfectly smooth curves.
- Letters or parts fall apart in the slicer
- Separate shapes become separate objects. Add a base of 1 to 2 mm to join them into one plate.
- My SVG is empty or missing lines
- Strokes without a fill have no area. Convert strokes and text to paths in your vector editor, then try again.
- The relief is too bumpy
- Every speck of noise becomes height. Lower Detail, blur the image slightly, or increase contrast before converting.