Skip to content
3DToolBench

Convert a PNG into an STL

A PNG can become two quite different models, and this page makes both. Raise it into a surface, where bright pixels stand up and dark ones sit low. Or trace the shape in it and cut that out as a flat solid, which is what a logo, a stencil or a cookie cutter needs.

Drag a 3D file here, or.

This page is set up for PNG files. Other formats we can read work here too.

The file is read on your own computer. It is never uploaded.

Add a file to switch this on.

Your file is read by your own browser and never sent to a server. There is no upload, no account and no copy of your model anywhere but on your computer.

Transparency is what makes a PNG better than a photo here

A PNG can record, for every pixel, how see-through it is. A logo saved properly is therefore marks on nothing at all, and the file already states exactly where the shape ends — no guessing, no threshold, no halo of background left around the edge.

The cut-out mode uses that directly. Anything see-through is left out, the boundary of what remains is traced as a closed outline, and the outline is given a thickness. A letter O comes back with the hole in the middle, because the tracing works out which rings sit inside which. Nothing about that is special-cased for letters; it falls out of the nesting, exactly as it does for a washer or an island in a lake.

If your PNG has a white background rather than a transparent one, the same mode still works — it falls back to darkness, and the threshold setting is where you put the line. A black-on-white drawing separates cleanly. A photograph does not, and the raised surface is the right choice for one of those.

Lossless, which matters more than it sounds

PNG stores exactly the pixels it was given. Nothing is approximated and nothing is thrown away, so there are none of the faint block edges that JPEG compression leaves behind on smooth areas — the ones that turn into real steps in a printed surface.

That is why a screenshot, a diagram, a QR code, a line drawing or a piece of clip art should always reach this page as a PNG. Those images are large flat areas with hard edges, which is the exact case JPEG handles worst and PNG handles perfectly. You can usually leave the smoothing at zero and keep every edge sharp.

For a photograph, none of this applies and the file is simply larger than it needs to be. Photographs belong in JPEG, and there is a page for those.

Choosing between a raised surface and a cut-out

Ask what the dark part of your picture is. If it is a *shape* — a logo, a letter, a silhouette, an outline — you want the cut-out. You get a flat solid with that shape and a clean vertical edge, which prints quickly, needs no supports, and can be glued, inlaid or used as a stamp.

If the dark part is *shading* — a face, a landscape, anything with gradual tones — you want the raised surface. Cutting out a photograph gives you a meaningless blob, because a threshold has to draw a hard line through soft shading and there is no right place to draw it.

Both are in the first box under the 3D view, and switching between them rebuilds the model in front of you. That is usually faster than reasoning about it.

Thickness, and what makes it printable

A cut-out has one thickness and that is all: 3 mm is a sturdy keyring or fridge magnet, 1 mm is a stencil or an inlay, 10 mm is a shape that stands up on a shelf.

A raised surface has two numbers instead. The base is solid material underneath the whole thing, and it is not optional — the darkest pixel is height zero, so a surface with no base is a sheet with holes torn through it wherever the image was dark. The relief is how far the brightest part stands above that base.

Either way, the volume figure under the model is the check. Volume can only be worked out for a closed shape, so a number appearing there means what you are about to download will slice as a solid rather than being refused as a surface.

What reaches the STL file

The shape, at the size you set, and nothing else. STL holds triangles — no colour, no material, no image — so a red logo and a black one produce the same file. If the colours matter, convert to 3MF instead, which records its own units as well.

The image itself does not travel either. If you wanted the picture to stay a picture on a flat plane, STL cannot do it and GLB can: convert the same PNG to GLB and choose "a flat plane carrying the picture", which keeps every pixel, transparency included, as a texture.

What survives, and what does not

Kept in the STL file

  • The shape in the picture, either raised into a surface or cut out as a solid
  • Transparency, used to find the outline exactly when the shape is cut out
  • The proportions of the image, so nothing comes out stretched
  • The size and thickness you set in millimetres

Lost on the way

  • Colour. An STL file has nowhere to put one, so a red logo and a black one give the same file.
  • The image itself. Nothing in an STL can hold a picture.
  • Transparency as transparency — it decides where the edge is, then it is gone.
  • Detail finer than the spacing of the samples, set by the detail box.

How to convert PNG to STL

  1. Drop the .png file in

    It is decoded in your browser and turned into a model immediately, with nothing uploaded.

  2. Pick a raised surface or a cut-out

    A cut-out for a logo, a letter or a silhouette. A raised surface for a photograph or anything with shading in it.

  3. For a cut-out, set where the edge falls

    Transparent areas are left out automatically. If the background is white instead, move the darkness setting until the outline in the 3D view is the one you meant.

  4. Set the size and thickness in millimetres

    The size box is the longer side. 3 mm thick is a keyring; 1 mm is a stencil.

  5. Download the .stl

    Check that a volume is shown first — that is the proof the shape is closed and your slicer will take it.

PNG and STL compared

PNG and STL compared, row by row
PropertyPNG.pngSTL.stl
File contentsBinary, losslessly compressed with DEFLATE, in labelled chunks.Binary or plain text. Binary is an 80-byte header, a triangle count, then 50 bytes per triangle.
GeometryNone. It is a grid of pixels.Triangles only. Curves are approximated when the file is made, and cannot be recovered.
UnitsOptional pixels-per-metre in a pHYs chunk, usually absent.None. The file stores bare numbers, and every reader has to guess what they mean.
Colour and textureUp to 16 bits per channel, with full alpha transparency.None. There is no place in the format for a colour, a material or a texture.
Separate objectsOne image.One body. Several parts written into one STL become one undivided lump of triangles.
Published byThe PNG Development Group, 1996, to replace GIF. Now ISO 15948.3D Systems, 1987, for the first stereolithography machines.
Written byEvery image editor, every screenshot tool, every browser.Every CAD program and every slicer, as the common denominator.

Questions

How do I turn a logo into an STL?
Use a PNG with a transparent background, and choose "the shape in it, cut out". The outline is traced from the transparency, so the edge is exact. Set the thickness to 3 mm for something you can hold.
My PNG has a white background, not a transparent one.
It still works. With nothing see-through in the file, the darkness setting decides what counts as material — move it until the outline in the 3D view matches the shape you want. Black on white separates cleanly at almost any setting.
Why does my photograph come out as a meaningless blob?
You are probably cutting it out rather than raising it. A photograph is shading, and a cut-out has to draw one hard line through it. Switch the first box to "a raised surface".
Can I make a cookie cutter from a PNG?
You can make the shape. Choose the cut-out, set a tall thickness, and you have the outline as a solid — but a real cutter needs a thin wall and a wider rim to press on, which means editing the result in a CAD program afterwards.
PNG or JPEG for this?
PNG for anything with hard edges or transparency: logos, screenshots, drawings, text. JPEG is fine for photographs and there is a page for those. A PNG of a photograph works here too, it is just a bigger file for no benefit.
Is my image uploaded?
No. It is read and converted inside your browser. Nothing is sent to a server, there is no account, and the page keeps no copy.

Having it printed

If the part is larger than your bed, needs a material your printer cannot handle, or you do not have a printer, these will print it and post it to you. Work out what it would cost you first — the cost calculator on this site gives you a figure to compare against.

These are ordinary links, not paid referrals — we earn nothing if you use them. The converter above is the same whether you do or not.

Where to go next