Convert PNG to STL
Create printable STL reliefs from grayscale heightmaps or traced PNG silhouettes.
Convert PNG files online
We don’t have a dedicated online converter for PNG to STL yet, but you can convert PNG files online to these and more formats:
How to convert png to stl file
- 3D modeling
- Rating: 5.0/5
A 3D printer, CAD package, or CNC workflow may require an STL mesh instead of a flat PNG image. The conversion is useful when the PNG is a heightmap or silhouette; an ordinary photograph cannot become an accurate 3D model without additional modeling decisions.
What the PNG format is
PNG is a raster image format that stores pixels with lossless compression and can include an alpha channel for transparency. Adobe Photoshop, GIMP, Krita, Affinity Photo, and screenshot or scanning tools commonly create PNG files for drawings, logos, interface captures, scanned documents, and grayscale heightmaps.
A PNG contains color or brightness values, not 3D coordinates, surfaces, thickness, or physical units. Conversion must therefore apply an interpretation: grayscale brightness can control surface height, or a traced outline can become an extruded solid.
What the STL format is
STL stores a surface as triangular facets. 3D-printing slicers such as Ultimaker Cura, PrusaSlicer, and Bambu Studio use STL meshes to generate toolpaths, while CAD and mesh applications use STL for basic geometry exchange.
STL does not store color, transparency, textures, materials, or a reliable unit declaration. Binary STL is normally smaller and more suitable for transfer; ASCII STL is human-readable but much larger. A printable model should be a closed, non-self-intersecting, manifold surface with correctly oriented normals.
Convert a grayscale heightmap in Blender
- Prepare the PNG in GIMP, Photoshop, or another image editor. Convert it to grayscale, crop unwanted margins, remove noise, and use black for the lowest areas and white for the highest areas. Flatten or remove unintended transparency.
- Open Blender and delete the default cube. Add a plane through Add → Mesh → Plane, enter Edit Mode, and subdivide it into enough faces to represent the useful image detail. A 200 × 200 grid contains 40,000 vertices; larger grids increase memory use and STL size.
- With the plane selected, add a Displace modifier through Modifiers → Add Modifier → Displace. Create a texture, set its type to Image or Movie, and load the PNG. Set the modifier's coordinates to UV; Blender's default plane already has suitable UV coordinates.
- Set Strength to the desired maximum relief height. Adjust Midlevel to choose which gray value represents zero displacement, then inspect the preview for clipped or inverted relief.
- Add a Solidify modifier after Displace to create base thickness. Apply the modifiers only after checking the mesh from the sides and below. Use Blender's 3D Print Toolbox or another mesh-repair tool to find holes, non-manifold edges, and intersecting faces.
- Set the object's dimensions explicitly in the Item panel, normally in millimeters. Select the object and use File → Export → STL; enable selection-only export when the scene contains unrelated objects.
Convert a logo or silhouette by tracing and extruding
- Open the PNG in Inkscape and use Path → Trace Bitmap. Clean the traced paths, remove the background, close open contours, and save the result as
logo.svg. - Import
logo.svginto Blender through File → Import → Scalable Vector Graphics (.svg). Select the imported curve and set its 2D curve geometry Extrude value. Add a small Bevel only when rounded edges are required. - Convert the curve through Object → Convert → Mesh. Inspect holes, internal paths, duplicate faces, and thin sections, set the intended dimensions, and export through File → Export → STL.
This method creates a constant-thickness solid from an outline. It does not reproduce photographic shading or hidden 3D structure.
Use an online converter
For a non-confidential grayscale heightmap, ImageToSTL.com provides an image-to-STL converter with controls for model width, height, base thickness, maximum relief height, and output format. Upload the PNG, select grayscale or heightmap processing, set the dimensions and base thickness, preview the relief, and download the STL. Interface names and limits can change, so inspect the downloaded mesh in a slicer before printing.
Online converters generally interpret brightness as height. They do not infer mechanically accurate solids, overhangs, internal cavities, or separate depths from an ordinary photograph. Do not upload proprietary designs, personal scans, or other confidential images.
Quality and compatibility limits
- Resolution does not equal printable detail. A 1000 × 1000 PNG can produce a very dense mesh without improving the result. Nozzle diameter, layer height, printer XY resolution, and the material determine useful detail.
- Anti-aliased edges, noise, and compression artifacts become unwanted ridges in a heightmap. Blur, denoise, or threshold the source image before conversion when a smooth relief or clean outline is required.
- A single heightmap cannot represent overhangs, vertical cavities hidden from the viewing direction, or independent objects at different depths. Use CAD, sculpting, or conventional 3D modeling software for those features.
- Check the STL in Blender, MeshLab, Microsoft 3D Builder, or the target slicer. Look for holes, flipped normals, self-intersections, zero-thickness regions, disconnected shells, and incorrect scale.
- STL has no dependable unit metadata. Export and import using an agreed convention, normally millimeters, and confirm the model dimensions in the slicer before manufacturing.
PNG vs STL: format comparison
How the PNG and STL formats compare on the properties that matter most for this conversion.
| Property | .PNG Portable Network Graphics | .STL Stereolithography |
|---|---|---|
| Open standard | Yes | Partly open |
| Compression | Lossless | Uncompressed |
| Typical file size | Small | Small |
| Opens in a web browser | Yes, natively | No |
| Further editing | Limited | Not directly editable |
| Metadata support | Extensive | None |
| Plain-text readable | No | Yes |
| Best used for | Web publishing | Embedding in applications |
| Introduced | 1996 | 1987 |
| Developer | PNG Development Group | 3D Systems |
| MIME type | image/png | model/stl |
Suggested software and links: png to stl converters
Additional formats for
png file conversion
Reverse conversion
Convert to stl from
other formats
- ipt to stl
- sldasm to stl
- jcd to stl
- x_t to stl
- max to stl
- easm to stl
- rvt to stl
- part to stl
- mtl to stl
- asc to stl
- 3d to stl
- 3d2 to stl
- 3dm to stl
- 3dmf to stl
- 3dp to stl
- 3drep to stl
- 3ds to stl
- 3dx to stl
- 3dxml to stl
- 3mf to stl
- 890 to stl
- a3s to stl
- abc to stl
- ac to stl
- ad_asm to stl
- ad_prt to stl
- an8 to stl
- arc to stl
- art to stl
- asm to stl
- atd to stl
- b3d to stl
- bip to stl
- blend to stl
- blend1 to stl
- bmp to stl
- bod to stl
- brd to stl
- c++ to stl
- c4d to stl
- cat to stl
- catdrawing to stl
- catpart to stl
- catproduct to stl
- cdr to stl
- cgr to stl
- cmp to stl
- cob to stl
- dae to stl
- dcm to stl
- dcx to stl
- dem to stl
- des to stl
- dff to stl
- dgn to stl
- drw to stl
- drwdot to stl
- dwf to stl
- dwfx to stl
- dwg to stl
- e3d to stl
- edrw to stl
- edz to stl
- eps to stl
- est to stl
- fbx to stl
- flt to stl
- g to stl
- geo to stl
- gif to stl
- glb to stl
- gltf to stl
- hsf to stl
- iam to stl
- ics to stl
- idf to stl
- ifc to stl
- image to stl
- img to stl
- ipj to stl
- ipn to stl
- itp to stl
- iv to stl
- jpeg to stl
- json to stl
- jt to stl
- kml to stl
- kmz to stl
- lwo to stl
- lwob to stl
- lws to stl
- lxe to stl
- lxo to stl
- ma to stl
- mac to stl
- mb to stl
- md5mesh to stl
- mdd to stl
- mdl to stl
- mesh to stl
- mf1 to stl
- mix to stl
- mod to stl
- model to stl
- mqo to stl
- mqoz to stl
- obj to stl
- off to stl
- ol to stl
- pac to stl
- pak to stl
- par to stl
- pbm to stl
- pdb to stl
- pdf to stl
- pdo to stl
- phy to stl
- pix to stl
- plmxml to stl
- ply to stl
- pov to stl
- prj to stl
- prt to stl
- psd to stl
- psm to stl
- pts to stl
- ptx to stl
- rft to stl
- rvm to stl
- sab to stl
- sat to stl
- sbsar to stl
- scdoc to stl
- sec to stl
- she to stl
- shp to stl
- skb to stl
- skp to stl
- slc to stl
- sldblk to stl
- slddrw to stl
- slp to stl
- smf to stl
- spt to stl
- ssa to stl
- sub to stl
- svg to stl
- tc3 to stl
- tcd to stl
- tga to stl
- tif to stl
- tiff to stl
- tin to stl
- u3d to stl
- unv to stl
- usd to stl
- usda to stl
- usdc to stl
- usdz to stl
- v3d to stl
- vda to stl
- vrl to stl
- vrml to stl
- vtk to stl
- wrl to stl
- x to stl
- x3d to stl
- x_b to stl
- xgl to stl
- xsi to stl
- xt to stl