Convert png to stl

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

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

  1. 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.
  2. Import logo.svg into 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.
  3. 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.

Comparison of the PNG and STL file formats
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

Additional formats for
png file conversion

Reverse conversion

Convert to stl from
other formats

Share on social media: