Tool · free · in your browser
Lithophane generator
Turn a photo into a print-ready 3D lithophane. Crop it, make it flat, curved, a circle, a heart or a lamp, with a border and a stand, and see it lit before printing. Everything in your browser: your photo is never uploaded to any server.
Lithophanes generated
Tip: photos with a clear subject (portraits, pets, silhouettes) work best. Contrast is adjusted for you.
How it works
- 1 Drag in a photo (JPG, PNG or WEBP) and move the box to choose which part gets printed.
- 2 Pick the shape (flat, curved or lamp; flat also as a circle or a heart), the border and the size. The model rebuilds itself with every change.
- 3 Check it in the “Lit” view, which simulates a light behind it, and download the print-ready STL.
What you get: screenshots from the tool
These images come straight from the generator, using the sample photo (the puppy loaded by the “try it with a sample image” link) and the default settings: a 100 mm wide picture, a 3 mm border, 3 mm maximum thickness, 0.6 mm minimum and normal detail, one point every 0.3 mm.
What it does to your photo, under the hood
It does five things, and knowing them explains almost every odd result:
- It crops the photo and shrinks it to a grid. It takes the part inside the box and resamples it to one point every 0.2, 0.3 or 0.4 mm depending on the detail level. It never uses more points than the crop has pixels, and it stops at about 360,000 points so it fits in a phone's memory.
- It measures each point's brightness with the standard BT.709 weights: 0.2126 for red, 0.7152 for green and 0.0722 for blue. Green counts ten times as much as blue, so a deep blue sky comes out darker (thicker) than it looks in the colour photo. Transparent pixels in a PNG count as white.
- It cleans up the photo, unless you untick those two boxes. Smoothing blends each point half-and-half with its neighbours to remove sensor grain. The contrast adjustment takes the darkest 1% of the photo to black and the lightest 1% to white, and spreads the rest in between: a dull photo now uses the whole thickness range.
- It turns each grey into a thickness, linearly: black gets the maximum thickness, white the minimum, and greys fall in between. The border is always at the maximum thickness.
- It closes the part. The relief is the front face. The back is flat, or a plain cylinder for the curved shape and the lamp, so it only needs the edge points: that saves half the triangles. Circle, heart and stand are cut and joined with Manifold, the same geometry engine as the 3D text generator. The result is a closed solid (watertight and manifold) that your slicer doesn't need to repair.
Which detail level to pick
The detail level sets how far apart the relief's points are, and with it how heavy the file gets. For a 4:3 landscape photo of 1600 × 1200 pixels with the 3 mm border:
| Detail | Point | Grid at 100 mm | Triangles | STL | Grid at 200 mm | Triangles | STL |
|---|---|---|---|---|---|---|---|
| Fast | 0.4 mm | 251 × 188 | 110,808 | 5.5 MB | 501 × 376 | 408,952 | 20.4 MB |
| Normal | 0.3 mm | 334 × 251 | 194,356 | 9.7 MB | 668 × 501 | 721,720 | 36.1 MB |
| Fine | 0.2 mm | 501 × 376 | 434,908 | 21.7 MB | 692 × 519 | 772,528 | 38.6 MB |
The figures come from the code. A binary STL takes 50 bytes per triangle. At 200 mm, “Fine” hits the memory cap and settles for one point every 0.29 mm. A portrait or square photo has more rows and weighs more: a 3:4 photo at 100 mm and normal detail gives 332,484 triangles, about 16.6 MB.
When is “Fine” worth it? Horizontally, a 0.4 mm nozzle can hardly draw details narrower than its own line; vertically, layer height is the limit. That's why “Normal” works with 0.3 mm points, a little under the line width, and “Fine” only gains something if you print upright with 0.1-0.15 mm layers, at the cost of more than twice the triangles.
Sizes of the curved version
The curved shape wraps the photo into a 200° arc, a little over half a turn, so the piece stands up on its own and can surround a light. The width you choose is the length of the arc; without a border, the inside diameter is the width divided by 1.745 (a border adds its width to each side of the arc):
| Chosen width | Inside diameter |
|---|---|
| 60 mm | 34 mm |
| 80 mm | 46 mm |
| 100 mm | 57 mm |
| 120 mm | 69 mm |
| 150 mm | 86 mm |
| 200 mm | 115 mm |
Since the arc doesn't reach 360°, the piece is open at the back: it's a shade to look at from the front. It's also deeper than the flat one: at 100 mm wide with the border, about 39 mm instead of 3, something to keep in mind when placing it on the bed.
Sizes of the lamp
The lamp wraps the photo into a full cylinder, so the width becomes the circumference and the inside diameter is the circumference divided by π. The border goes at the top and bottom, and the part downloads standing up.
| Circumference | Inside diameter |
|---|---|
| 120 mm | 38 mm |
| 150 mm | 48 mm |
| 200 mm | 64 mm |
| 250 mm | 80 mm |
| 300 mm | 95 mm |
An LED tealight is about 38 mm across: at 140 mm around or more it fits inside with room to spare. The photo's left and right edges meet at the seam, so it's best if that area is background rather than a face.
If the result doesn't look right
- Everything comes out thick and dark. The photo is dark overall. Keep the automatic contrast adjustment on; if it's still dark, brighten the photo before loading it.
- The face is hard to make out. The subject is too small: at 100 mm and normal detail, a face that fills a tenth of the width gets about 33 points. Raise the crop zoom and move the box until the face fills the frame.
- The background looks rough. Smoothing removes the photo's grain, but not a real texture like the grass in the example. Blur or brighten the background first, or cut the subject out onto a transparent PNG: transparent areas come out smooth at the minimum thickness.
- The slicer is slow or complains about size. Pick “Fast” detail or run the STL through the mesh reducer.
- Light areas come out fragile or with holes. Raise the minimum thickness or pick the layer height you'll print with under “Layer height”: the base adjusts itself to three or four layers.
For printing it (material, orientation, infill) and lighting it, see the full guide on how to make a lithophane from a photo.
What it's for
A lithophane is one of the most rewarding printable gifts: a photo that comes alive when lit, in a frame, a lamp or a backlit keychain. Here you make it in the browser, nothing to install and nothing uploaded, with real millimetre control, a lit preview and an always-printable mesh (watertight, with the base tied to your layer height). If instead you want to lighten an STL or convert between formats, see the mesh reducer and the 3D converter; and for organic lattices, the voronoi generator.
Frequently asked questions
- What is a lithophane?
- An image carved into a thin material that only reads when backlit: dark parts of the photo print thicker (blocking more light), light parts thinner. Put a light behind it and the photo appears. It's a classic for lamps, frames and gifts.
- Is my photo uploaded to a server?
- No. Everything is computed in your browser, on your device. Your photo is never sent anywhere, so it's private and there's no size limit beyond your machine's memory.
- How do I print it so it looks good?
- In white or translucent material, 100% infill and no seam on the front face. The minimum thickness follows your layer height so the thinnest area prints solidly. The lamp and lithophanes with a stand download already upright, ready to print standing up.
- Which photos work best?
- Photos with a clear subject: portraits, pets, silhouettes, landscapes with sky. The automatic contrast adjustment rescues dull photos, but it can't invent detail the photo doesn't have. You can toggle the negative to swap lights and darks.
- What format do I get?
- STL (the universal 3D-printing format) plus OBJ, 3MF or PLY. The mesh is watertight and manifold by construction, so your slicer won't complain.
- Can I make it heart-shaped or as a lamp?
- Yes. The flat one can be a rectangle, a circle or a heart, with a border and a stand so it stands up. The lamp wraps the photo into a full cylinder to put a light inside, and the curved shape turns it into a 200° shade that stands on its own.