PNG to STL

PNG → Printable STL: contours for stamps, or heightmaps for reliefs & lithophanes. Free online.

Loading...

Please wait

About This Tool

Designed for PNG images, the tool uses transparent channels to extract precise contours, making it ideal for stamps and logos. For regular photos, the heightmap mode converts them into reliefs or lithophanes. You can adjust the resolution before exporting the STL file, and all processing is done locally in your browser.

Tips

  • 1Transparent PNGs work best for stamps and logos
  • 2Heightmap mode is ideal for photo reliefs and lithophane lamps
  • 3Adjust resolution to balance detail and polygon count

Examples

Transparent PNG Graphic

Source graphic: 1024×1024 alpha-channel logo

Alpha Contour Extraction

Contour mode: Max height 3.5mm, base 1.5mm, 32,840 triangles

Gradient Relief Mesh

Heightmap mode: Max height 6.0mm, base 1.0mm, 98,400 triangles

About Configuration Options

Conversion Mode

Conversion Mode

DefaultContour

Select how the image should be converted into 3D geometry.

ContourRecommended

Generates solid shapes with uniform thickness from image outlines. Ideal for stamps, logos, nameplates, and other uniform-thickness objects.

Heightmap

Creates a relief surface based on image brightness, so brighter areas are raised and darker areas are recessed. Perfect for photo reliefs, terrain models, and artistic surfaces.

Contour Settings

Invert

DefaultOff

Swap which parts of the image become solid and which become empty. Useful when the background is lighter than the subject.

OffRecommended
On

Threshold

Default128

Range0 – 255

Controls the brightness cut-off point that determines which pixels become solid geometry. Lower values include more pixels as solid; higher values only include the darkest areas.

Depth

Default10

Range1 – 100

The thickness of the extruded geometry in millimeters. Controls how tall the final 3D model will be.

Bevel

Default0.5

Range0 – 5 · step 0.1

Adds rounded edges to the contour shape for a smoother, more polished finish. Higher values create more rounded edges.

Bevel Segments

Default3

Range1 – 8

The number of segments used to create the bevel curve. More segments produce smoother bevels at the cost of more geometry.

Angle Protection

Default0.8

Range0 – 1 · step 0.1

Preserves sharp corners and fine details by controlling the angle threshold. Lower values protect more detail; higher values smooth more aggressively.

Quality

Default1

Range0.1 – 2 · step 0.1

Controls the resolution of the generated mesh. Higher quality produces smoother surfaces but larger file sizes.

Heightmap Settings

Max Height

Default5

Range0.5 – 20 · step 0.5

The maximum height of the raised areas in millimeters. Controls the overall relief depth.

Base Thickness

Default1

Range0 – 5 · step 0.5

The thickness of the flat base plate beneath the relief. A thicker base provides more stability for printing.

Smooth Level

Default2

Range0 – 10

Applies smoothing to the heightmap surface to reduce noise and stair-stepping artifacts. Higher values produce smoother surfaces.

Resolution

Default400

Range100 – 400 · step 50

Controls the detail level of the generated mesh. Higher resolution preserves more image detail but increases file size.

Invert

DefaultOff

Swap the height mapping, so brighter areas become recessed and darker areas become raised.

OffRecommended
On

Format Information

Input format

Extension:
png
Full Name:
Portable Network Graphics
Type:
Image
Format:
PNG
Open With:
Image EditorWindows PhotosPreview (Mac)
Description:
PNG is a lossless raster format with 8-bit alpha transparency, offering sharp edges and no artifacts. It is preferred for converting silhouettes to 3D models, avoiding color banding and producing cleaner meshes than JPEG. The trade-off: larger file sizes than JPEG, no CMYK support. For 3D conversion: use 16-bit grayscale for height maps (up to 4096×4096); transparent backgrounds are auto-detected, so manual masking is unnecessary.

Notes:

  • Maximum supported resolution: 4096×4096 pixels
  • Transparent backgrounds are automatically detected and handled

Supported Features:

  • Lossless compression preserves image quality
  • Alpha channel transparency for precise contour extraction
  • Wide color support (24-bit RGB + 8-bit alpha)

Output format

Extension:
stl
Full Name:
Stereolithography
Type:
3D Mesh
Format:
STL (Binary / ASCII)
Open With:
Slicer SoftwareMeshLabWindows 3D ViewerSTL Viewer Online
Description:
STL is the de facto standard mesh format in 3D printing, storing only triangular surface data since 1987, without color, texture, or material. Almost all slicers (Cura, PrusaSlicer, Bambu Studio, ChiTuBox) and printers directly support STL, ensuring its enduring popularity. Two classic pitfalls: STL lacks unit definitions, making millimeters and inches indistinguishable on disk; always verify scale in your slicer. It also has ASCII (readable but 4-6x larger) and binary (compact, default) encodings. For multi-color printing, materials, or parameters, switch to 3MF, which carries richer print information while maintaining slicer compatibility.

Notes:

  • Does not support colors, textures or materials
  • No unit definition; verify scale in your slicer
  • ASCII format is 4-6× larger than binary

Supported Features:

  • Triangle mesh only, simple and universally compatible
  • Binary and ASCII encoding options
  • Directly importable into Cura, PrusaSlicer, Chitubox, etc.

How to Use

1

Load PNG with Transparency

Import transparent PNG artwork or grayscale heightmap data.

2

Configure Base Thickness

Define solid baseplate thickness and maximum relief elevation values.

3

Set Invert and Smoothness

Control whether dark or light pixels extrude higher with mesh smoothing.

4

Export Solid STL

Generate and download watertight STL for resin or FDM 3D printing.

Frequently Asked Questions

View all FAQs
Q

What kind of PNG works best for STL conversion?

A

For stamps/logos, use transparent or high-contrast black-and-white images. For reliefs/lithophanes, use clear, moderately contrasted grayscale or color photos. Crop out complex backgrounds first.

Q

How are transparent areas handled?

A

In contour mode, transparent areas typically generate no geometry (hollow), leaving only the opaque subject, ideal for stamps and silhouettes. In heightmap mode, brightness determines thickness; transparency is processed as previewed.

Q

Will PNG colors be preserved in the STL?

A

No. STL only stores geometry. For colored models, use the 'PNG to 3MF' converter, or paint after printing.

Q

Can the output be sliced and printed directly?

A

Contour mode solids can usually be sliced directly in Cura, PrusaSlicer, Bambu Studio, etc. For reliefs/lithophanes, check the base thickness and minimum wall thickness, add supports if needed.

Q

Why does my PNG contour capture background noise or extra shapes?

A

Contour mode extracts regions by brightness, so a busy or colored background, or anti-aliased edges, can produce stray shapes. Crop the subject, use a clean transparent background, and adjust the threshold to ignore faint areas.

Q

How large will the model be, and what units does the STL use?

A

The exported file is written in millimeters. The vertical settings (depth, max height, base thickness) are mm, but the horizontal footprint follows the image's pixel grid, so check the size in your slicer and scale the model to the dimensions you need.

Support Us