STL to heightmap converter

CNC routers, laser engravers and game engines read greyscale heightmaps, not STL files. Drop a 3D model, choose the side and the resolution, and download a PNG where white is the highest point and black the lowest.

STL to PNGSTL to JPG3MF to PNGSTL to HeightmapSTL to Depth MapAll converters

Drop an STL file here

or

Your files are processed on this device and never uploaded.

or try a sample STL

Reading…

From a 3D model to a heightmap

A heightmap is a greyscale picture in which brightness is height. It is how 3-axis CNC software, laser engravers in 3D mode and game engines describe a surface. This page looks at the model straight on from the side you choose and, for every pixel, finds the highest point of the model facing you — computed from the triangles themselves, so the grey value is real height and not shading.

Using it on a CNC

Import the PNG as a 3D component or texture, then set its size to the model size shown in the panel and its depth to the height range. With 16-bit images the depth is reproduced smoothly; with 8-bit, add a little smoothing in your CAM software. To go the other way and turn a heightmap into a printable model, use depth map to STL.

Nothing is uploaded

Most online converters send your file to a server, process it there and hand back the result — which means your drawing or photo sits on someone else's disk for however long their retention policy says. This page does all of the work in your browser tab. The file is read with the browser's FileReader, converted by JavaScript on your own processor and saved straight to your downloads folder. You can confirm it: open your browser's developer tools, switch to the network tab and watch that no request carrying your file is ever made.

Frequently asked questions

Which software can use the heightmap?

Vectric Aspire and VCarve (as a bitmap or texture), Carveco, Easel, LightBurn and other laser software for 3D engraving, Blender as a displacement map, and terrain tools in Unity and Unreal.

What is black and what is white?

White is the highest point facing you, black the lowest. "Black is" chooses whether black means the bottom of the whole model or the lowest point you can actually see. Tick Invert if your software expects white to be the deepest cut.

Can I carve a model that has undercuts?

A heightmap stores one height per pixel, so anything hidden underneath an overhang is lost — exactly as a 3-axis CNC would leave it. Choose the side that shows most of the detail.

Why 16-bit?

An 8-bit PNG has 256 grey levels, so a 25 mm tall model is stored in steps of 0.1 mm — visible as terraces when carved. A 16-bit PNG has 65,536 levels, under a micron per step. Vectric, Carveco, Blender and most CNC software read 16-bit greyscale PNG.

What does the pixel size mean?

The width of the model divided by the number of pixels. At 1024 px, a 100 mm model gives about 0.1 mm per pixel — finer than most CNC bits. Set the same size in your CAM software when you import the image.

Is my file uploaded?

No. The model is read and rasterised in your browser; nothing is sent to a server.

More conversions

Want a finished design rather than a conversion? LyraMaker has more than a hundred free generators — name keychains, plates, monograms, rulers, QR codes and more, all exporting STL and 3MF.
Browse the generators →