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.

Processed in your browser. Your photo is never uploaded.

How it works

  1. 1 Drag in a photo (JPG, PNG or WEBP) and move the box to choose which part gets printed.
  2. 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. 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.

The lithophane generator showing the puppy lithophane lit from behind, the photo crop and the shape, size and image settings
The flat lithophane in the “Lit” view: 106 × 79.6 × 3 mm with the border, and 190,796 triangles.
The puppy photo cut into a heart, seen lit The puppy photo wrapped into a full cylinder as a lamp, seen lit
As a heart (99.6 × 99.6 × 3 mm, with a square crop) and as a lamp: a cylinder 100 mm around and 37.8 mm across.

What it does to your photo, under the hood

It does five things, and knowing them explains almost every odd result:

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

DetailPointGrid at 100 mmTrianglesSTLGrid at 200 mmTrianglesSTL
Fast0.4 mm251 × 188110,8085.5 MB501 × 376408,95220.4 MB
Normal0.3 mm334 × 251194,3569.7 MB668 × 501721,72036.1 MB
Fine0.2 mm501 × 376434,90821.7 MB692 × 519772,52838.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.

Close-up of the puppy's face at fast detail: soft outlines and no fur Close-up of the puppy's face at fine detail: fur and eyes stand out
The puppy's face in relief at “Fast” detail (109,194 triangles, left) and “Fine” (426,380, right), in the viewer.

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 widthInside diameter
60 mm34 mm
80 mm46 mm
100 mm57 mm
120 mm69 mm
150 mm86 mm
200 mm115 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.

CircumferenceInside diameter
120 mm38 mm
150 mm48 mm
200 mm64 mm
250 mm80 mm
300 mm95 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

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.