Image to STL converter
Turn a PNG or JPG into a 3D-printable STL. Drop a logo, silhouette or drawing, and the converter traces its outlines, raises them to the thickness you choose and, if you like, puts them on a base with a hole to hang it. See it in 3D, then download the STL or 3MF.
Convert an image to STL
Tracing settings
How to convert an image to STL
Drop the picture in the box above or paste it with Ctrl+V. It is traced into outlines and shown in 3D within a second.
Check the shape. If parts are missing or the background is creeping in, open Tracing settings and move the threshold. For a white logo on black, tick Light shapes on a dark background.
Choose the size and base. Type the width in mm and how far the artwork stands up. Outline around it makes a badge or magnet; Rounded plate makes a sign; None gives just the shape.
Keychain or ornament? Tick Hanging hole: a ring with a hole is added at the top.
Download the STL or 3MF and print it flat, base down.
Ideas
- Logo badge or fridge magnet: outline base, 2 mm base, 1.5 mm raised; glue a magnet on the back.
- Keychain: outline base, hanging hole, 50–60 mm wide.
- Door sign: rounded plate, 150 mm wide, two colours by changing filament at the top of the base.
- Stencil or cookie stamp: no base, 2 mm thick.
How the picture is traced
The picture is redrawn so its longest side is 1000 pixels (small pictures under 500 pixels are scaled up first, so their stair steps turn into curves rather than blocks). Then each pixel is called ink or background:
- Transparent PNGs: if more than about 5% of the picture is see-through, opacity decides and colour is ignored, so a white logo on a transparent background works as it is.
- Everything else: brightness decides. With Automatic threshold the cut-off is picked by Otsu's method, the grey level that best splits the picture into two groups; the label shows the value it chose, such as auto (131). Drag the slider and the automatic choice is switched off.
The outline of every ink area is then smoothed and fitted with curves. Smoothness is how far, in pixels, the curve may stray from the pixel edge: 1 keeps detail, 3 or 4 rounds off scanner noise and JPEG fuzz. Ignore specks drops islands smaller than the area shown in square pixels (19 px² by default), which removes dust and stray dots without touching real detail.
Size, detail and what will print
The width you type is the width of the traced shape itself, not of the picture, so a logo with a wide white border still comes out exactly 80 mm across. At 80 mm wide, one pixel of a 1000-pixel trace is 0.08 mm, much finer than a printer can follow. The real limit is the nozzle: with a 0.4 mm nozzle, raised lines narrower than about 0.8 mm (two extrusion widths) print poorly or vanish in the slicer. A stroke that is 1% of the picture's width is 0.8 mm at 80 mm and 0.5 mm on a 50 mm keychain, so thin artwork needs a bigger print, or bolder art.
The status line gives the size in millimetres and the weight in PLA (the volume at 1.24 g/cm³). A 50 × 30 mm outline base 2 mm thick is at most 3 cm³, under 4 g, before the raised artwork is added.
Bases and holes
- Outline around it grows the outside of the artwork by the base margin, with its holes filled, so a ring or a letter O gets a solid back.
- Rounded plate is a rectangle the margin larger than the art on every side, with corners rounded by up to 4 mm.
- Hanging hole: on an outline base a ring 5 mm wider than the hole is added above the highest point of the art; on a plate, the plate is made taller and the hole is cut into it. 4 mm suits a split ring, 3 mm a cord.
When the trace goes wrong
- Everything counts as the shape: almost every pixel is ink, usually a dark background. Tick Light shapes on a dark background or move the threshold left.
- Nothing found at this threshold: the picture is too pale for the cut-off. Move the threshold right.
- The background is a box around the art: a JPG with an off-white or shaded background. Move the threshold left until only the art is left, or save the logo as a transparent PNG.
- Letters fill in or lines break up: lower the smoothness, and check the source is big enough; a 200-pixel web icon has little detail to trace.
- That is not a picture, or a file over 40 MB: the tool reads PNG, JPG, WebP, GIF and BMP. For SVG or DXF artwork use SVG to STL or DXF to STL, which keep the exact vector shapes instead of tracing.
Making a cookie cutter? The cookie cutter generator makes the thin cutting wall and flange for you. Want a laser or CNC file instead? Image to DXF.
Open FlatCad 3D, free, no signup
Questions
What kind of picture works?
High-contrast artwork: logos, silhouettes, icons, signatures, hand drawings on white paper, or a PNG with a transparent background. The dark parts (or the opaque parts of a transparent PNG) become raised shapes; holes in the artwork stay holes.
Can I convert a photo of a person or a landscape?
Not into a useful shape: a photo has no clear outlines. For photos, a lithophane (a thin panel that shows the picture against the light) is the right kind of print.
How big will it be?
The width you type, in millimetres; the height follows the picture. The message under the 3D view shows the exact size and roughly how much filament it uses.
How do I print it in two colours?
Use a base. Most slicers can change filament at a layer height: set the change at the top of the base (2 mm by default) and the raised artwork prints in the second colour.
Can I edit it after?
Press Open in FlatCad 3D: the artwork and the base open as features of a 3D part. Add text, holes or other shapes, change any size, then export the STL.
Is my picture uploaded?
No. Everything runs in your browser; the picture never leaves your computer.