JPG to STL: Turn JPEG Photos into Printable Reliefs and Lithophanes

Convert a JPG or JPEG photo into an STL relief, a backlit lithophane or a traced outline. Smoothing removes the blocky compression noise JPG files carry, and the photo is converted to grey for you. Free, private, in your browser, with nothing uploaded.

Brightness becomes height. Free, runs on your device.

Sample models

Model settings
Model previewSample model · drag to rotate
Rendered model: Potted cactus

How it works

  1. 1Open the JPG from your phone or camera

    Drop a .jpg or .jpeg file onto the page. It is decoded by your browser, which also reads the orientation flag a phone writes into the photo, so portrait shots normally arrive upright. Check the preview; if it is sideways, rotate and re-save the photo first.

  2. 2Let the converter turn colour into grey

    Each pixel is reduced to one brightness value, because height and thickness are single numbers. Colours with the same brightness, such as a mid red and a mid green, end up at the same height, so judge the photo in black and white before you print.

  3. 3Smooth out the JPEG noise

    Raise smoothing to 2 or 3 passes for phone photos and web downloads. That calms the 8 x 8 pixel blocks and speckle that JPEG compression adds, which would otherwise print as a rough, sandy surface. Watch the 3D preview as you change it.

  4. 4Check the report, then download

    Confirm the millimetre size, watertight result and filament estimate on the report card, then save STL, 3MF or OBJ. A photo relief is normally one watertight shell, ready for the slicer.

Settings explained

Photos need slightly different settings from graphics. The table lists the relief defaults the converter opens with and the values we suggest for typical JPG photos, plus the two lithophane settings photo owners most often change.

SettingWhat it doesStart withHigherLower
Width (mm)Long-side size of the printed photo.100 mm (default). 120 to 150 mm for portraits with small faces.Faces and fine texture get more room.Small faces lose recognisable features.
Max relief height (mm)Height of the brightest areas above the base.3 mm (default). 2 mm for busy, high-contrast photos.Deeper relief and stronger shadows under side light.Softer, more even surface.
Base thickness (mm)Flat slab under the photo relief.1.2 mm (default). 1.5 to 2 mm for wall hanging.Stiffer and flatter on the wall.Lighter, but more prone to curling.
Smoothing passesBlurs the height map to remove JPEG blocks and sensor noise.1 (default). 2 to 3 for phone photos and compressed downloads.Cleaner surface; very high values soften eyes and edges.Every compression artefact becomes a bump.
Resolution (samples, long side)Number of height samples across the photo.200 (default). 300 for prints above 150 mm.Finer detail, bigger file, and more visible noise unless you smooth.Small file, softer image.
InvertSwaps which tones are high: off raises light tones, on raises dark tones.Off (default) for most photos.Not a slider: on gives a negative-style relief.Off keeps highlights raised.
Lithophane thickness (min / max mm)Thinnest and thickest wall in lithophane mode; dark = thick.0.8 / 3.0 mm (defaults).A wider range gives more contrast but needs a brighter light.A narrower range looks flatter but glows more evenly.

Printing photos made from JPG files

Photo reliefs reward fine layers, around 0.12 mm, and a matte filament that does not glare. Lithophanes from JPG photos are usually printed in white PLA at 100 % infill so no infill pattern shows through. Print a small test first; a 60 mm version costs a few grams and shows if the contrast works.

  • Light grey or white filament shows relief shading best; dark filament hides it.
  • Print reliefs flat and lithophanes the way the shape is built: flat panels face up, arcs and cylinders upright.
  • Slow the outer wall for lithophanes so the thinnest areas print cleanly.
  • Use the report card gram figure to compare a 100 mm and a 150 mm version before committing to the bigger print.
  • Hang reliefs where light comes from the side; overhead light flattens them.

3D models to print

Drag any model to turn it. We modelled these in code to show full-colour 3D objects; each one is a free STL you can download and print.

Retro toy rocket, 3D model
Retro toy rocketModelled in code by STL Genie · full colour
Size
41.9 × 38.6 × 81 mm
Triangles
34,912
Download STL (1.7 MB)
Striped lighthouse, 3D model
Striped lighthouseModelled in code by STL Genie · full colour
Size
44.5 × 43.1 × 96 mm
Triangles
24,436
Download STL (1.2 MB)
Potted cactus, 3D model
Potted cactusModelled in code by STL Genie · full colour
Size
46.3 × 42.6 × 83.9 mm
Triangles
66,832
Download STL (3.2 MB)
Toadstool pair, 3D model
Toadstool pairModelled in code by STL Genie · full colour
Size
57.1 × 50.3 × 57 mm
Triangles
84,736
Download STL (4.0 MB)
Rubber duck, 3D model
Rubber duckModelled in code by STL Genie · full colour
Size
48 × 64.9 × 56.2 mm
Triangles
34,208
Download STL (1.6 MB)
Glazed teapot, 3D model
Glazed teapotModelled in code by STL Genie · full colour
Size
87.2 × 55.2 × 56.1 mm
Triangles
99,744
Download STL (4.8 MB)

Ways to turn a JPG into an STL

You can convert a JPG here, use a slicer's own image or lithophane import where your version has one, model it by hand in Blender with a displacement map, or send it to an AI generator. For flat photo prints this converter is the shortest route; AI only helps when you want a full 3D object.

RouteJPEG noise handlingLithophane shapesEffortCost
STL Genie relief and lithophaneSmoothing passes 0 to 10Flat, arc, cylinderMinutesFree
Slicer image or height-map importVaries; check your slicer versionVariesMinutesFree
Blender displacement modifierFull control with filtersAny shape you can modelAn hour or moreFree, steep learning curve
AI photo to 3DHandled by the modelNot applicableUpload and waitPaid per model

Why JPG compression shows up in an STL

JPEG saves space by throwing away fine detail in 8 x 8 pixel blocks. On screen you rarely notice, but when brightness becomes height, every block edge and speckle turns into a ridge or pit. Smoothing averages neighbouring samples before meshing, which removes most of it without blurring large shapes.

Images that have been saved many times, screenshots of photos and pictures downloaded from social media are the worst offenders. If you have the original from your camera or phone, use that instead. A larger original at good quality gives the converter cleaner data than any amount of smoothing can recover.

Smoothing is not free: each extra pass also softens real detail such as eyelashes and lettering. Two passes is a good default for phone photos; go higher only when the preview still looks gritty.

Colour to grey: what happens to your photo

Height and thickness are single values, so the converter reduces every pixel to one brightness level before building the mesh. Colour information is lost. Two areas that look very different in colour but have similar brightness will print at the same height, which can make a colourful photo look flat.

  • Preview the photo in black and white in any editor; if the subject does not stand out there, it will not stand out in plastic.
  • Increase contrast or adjust individual colour channels before converting, so the subject separates from the background.
  • Skies and plain walls become large flat areas; crop them out to give the subject more of the print width.
  • Faces lit from the front read better than faces in strong side light, whose shadows become dents.

Photo relief or lithophane?

Choose a relief when the print will hang on a wall or sit on a shelf with light falling on it. Choose a lithophane when it will be lit from behind, in a window, a lamp or a night light. The same JPG works for both, but a lithophane shows far more of the photo's tonal range.

In a lithophane every tone maps directly to a wall thickness. With the default 0.8 to 3.0 mm range the steps are even, as the table below shows, so a mid-grey becomes 1.9 mm. If your printer struggles with very thin walls, a 0.6 to 2.4 mm range keeps the same contrast spread over a thinner panel.

Lithophane mode, invert off.
Pixel brightnessThickness, 0.8 to 3.0 mm rangeThickness, 0.6 to 2.4 mm range
0 % (black)3.00 mm2.40 mm
20 %2.56 mm2.04 mm
40 %2.12 mm1.68 mm
50 %1.90 mm1.50 mm
60 %1.68 mm1.32 mm
80 %1.24 mm0.96 mm
100 % (white)0.80 mm0.60 mm

Source: Measured on STL Genie, November 2026.

Lithophane resolution and file size for photos

The lithophane mode defaults to 300 samples on the long side, finer than the relief default, because backlighting reveals small thickness changes. On a 100 mm panel that gives cells about a third of a millimetre wide and a 9.8 MB STL. Doubling to 600 samples quadruples the triangle count.

Flat lithophane, square test photo, 100 mm wide.
ResolutionCell size at 100 mmTrianglesSTL size
1500.671 mm51,1822.4 MB
2500.402 mm141,4946.7 MB
300 (default)0.334 mm204,7829.8 MB
4500.223 mm456,95021.8 MB
600 (max)0.167 mm814,07038.8 MB

Source: Measured on STL Genie, November 2026 (Intel i7-8700, Node 22).

JPG, JPEG and phone photos: does the format matter?

JPG and JPEG are the same format with a different file extension, and both convert the same way here. Phone photos may also arrive as HEIC on iPhones; export or share them as JPG first. WebP is accepted too. Quality matters far more than the extension, so use the least-compressed copy you have.

A typical 12-megapixel phone photo is much larger than the converter needs, which is fine: it is scaled down to the resolution you choose. What hurts is a small, heavily compressed copy, for example one saved from a messaging app, because the detail is already gone before it reaches the converter.

Troubleshooting

The printed photo has a rough, sandy texture

That is JPEG compression noise or camera sensor noise turned into height. Raise smoothing to 2 or 3 passes and compare the preview. Using the original file instead of a re-saved or downloaded copy helps more than anything else.

My portrait photo came out sideways

The orientation flag in the photo was not applied, which can happen after some editing apps strip metadata. Rotate the picture in any photo viewer, save it again so the pixels themselves are upright, and load it once more.

The lithophane looks flat and grey when lit

The photo probably has low contrast, or the light behind it is too weak or too close. Boost contrast before converting, widen the thickness range, and use a diffuse light a few centimetres behind the panel. Lithophanes are also commonly printed at 100 % infill so no pattern shows through.

The face in my relief has dents where the eyes should be

Dark pixels sit low in a relief, so dark eyes, eyebrows and shadows become hollows. That is normal for a brightness relief. Try invert for a different look, use a lithophane instead, or brighten the eye area slightly in an editor.

The STL is too large to upload to a print service

Lower the resolution: a relief at 200 samples is about 2.9 MB, against 25.9 MB at 600. Or download 3MF, which is usually smaller. For prints under 150 mm the lower resolution rarely shows.

Frequently asked questions

Can I convert a JPG to STL for free?

Yes. Load the JPG on this page, pick Relief or Lithophane, set the size and download the STL. It runs in your browser with no account, no upload and no watermark.

Is JPEG to STL the same as JPG to STL?

Yes. JPEG and JPG are the same image format; only the file extension differs. Both load the same way and produce the same result.

How do I stop JPG artefacts showing in my 3D print?

Raise smoothing to 2 or 3 passes. It averages out the compression blocks and noise before the mesh is built. Start from the highest-quality copy of the photo available.

What is the best JPG photo for a lithophane?

A sharp photo with clear contrast, a subject that fills the frame and a plain background. Close-up portraits and pets work well. Busy, low-contrast scenes and very dark night photos usually print as grey mush.

Will the colours of my photo appear in the STL?

No. An STL stores only shape, and the converter turns the photo into brightness to make the height or thickness. You see the picture through shading or light, not colour.

How big should I print a JPG relief?

100 mm wide is a good first test. Portraits usually need 120 to 150 mm so facial features are large enough for the nozzle to draw. The report card shows the filament weight so you can compare sizes before printing.

Can I make a 3D figure from a JPG photo?

Not with the free relief and lithophane modes, which make flat or curved panels. For a full 3D object, the AI mode builds a model from the photo; it needs a free account and uses credits.

Last updated 2026-11-18.