How to Convert an Image to STL for 3D Printing (Complete Guide)

An image has no depth, so every image-to-STL converter has to invent one. This guide explains the five ways to do that, which one suits your picture, how resolution drives file size, and what to check before the STL goes into Bambu Studio, PrusaSlicer or Cura.

What converting an image to STL actually does

A converter turns flat pixels into a closed triangle mesh measured in millimetres. Because a picture holds no depth, the tool needs a rule for height: brightness becomes height, a filled shape becomes a raised outline, typed letters become solid text, or an AI model guesses the hidden back of an object.

STL stores nothing but triangles. There is no colour, no unit field and no notion of front or back, only a list of faces that together should enclose a solid volume. Everything that makes the print look right has to be baked into the shape before export: the width in millimetres, how tall the raised parts are, how thick the base is, and whether the surface is smooth or stepped.

That is why the first decision is not the file format but the conversion method. The same JPG of a dog gives a shallow embossed tile in relief mode, a backlit photo panel in lithophane mode, a flat silhouette in extrude mode, or a rough figurine with an AI generator. Each method needs a different kind of source image, so it helps to decide what you want to hold in your hand before you upload anything.

Choosing a method: relief, lithophane, extrude, text or AI

Use relief for embossed tiles and terrain, lithophane for photos you want to light from behind, extrude for logos and silhouettes, text mode for names and signs, and AI generation only when you need a full 3D object from a photo. The first four run free in your browser; AI generation costs credits.

A quick test: if the picture is mostly about light and shade, it belongs in relief or lithophane. If it is mostly about a shape with clean edges, it belongs in extrude. If you want to be able to walk around the printed object, only an AI model can supply the sides and back that the camera never saw.

Which conversion method fits which picture
MethodInput that worksWhat you getTypical printsTool page
ReliefGreyscale-friendly PNG or JPG, height maps, line artBase plate with raised areas; white is high by defaultTerrain tiles, embossed plaques, coasters/png-to-stl/
LithophaneA photo with clear faces and good contrastPanel where dark pixels are thick and light pixels thinNight-light panels, curved frames, lampshades/lithophane-maker/
ExtrudeSVG with filled paths, or a high-contrast PNG/JPG that gets tracedFlat outline raised to a fixed height, optional plate and holeLogos, keychains, cookie-cutter style shapes/svg-to-stl/
TextUp to 80 typed charactersSolid letters in one of five bold fontsName tags, desk plates, labels/text-to-stl/
AI modelOne photo of a single object on a plain backgroundFull 3D mesh with a back side, repaired and scaledFigurines, toys, product mock-ups/photo-to-3d-model/

Source: Input limits and defaults as built into the STL Genie converters, November 2026.

Step by step: a relief STL from a PNG or JPG

Open the converter, drop in the image, set the width in millimetres, choose a maximum relief height and base thickness, check the preview, then download. Defaults are 100 mm wide, 3 mm relief, 1.2 mm base and 200 samples on the long side, which suits most small tiles without producing a huge file.

The terrain example on this site uses exactly that recipe at 180 samples with a 4 mm relief: it came out 100 × 74.9 × 5 mm, 49,850 triangles, watertight in one shell, and an estimated 18.6 g of PLA at 15 % infill.

  • Load the image. PNG, JPG and WebP are read locally by a Web Worker; nothing is uploaded and you do not need an account.
  • Set the width. The height of the tile follows the image aspect ratio, so a 4:3 picture at 100 mm becomes roughly 100 × 75 mm.
  • Pick the relief height. 3 mm is the default; 4 mm gives terrain more drama, while 1.5 to 2 mm keeps a coaster flat enough to use.
  • Decide on invert. By default white is high. Turn invert on for dark line art on a white background so the lines stand up instead of sinking in.
  • Use one or two smoothing passes for photos to soften JPEG noise; leave smoothing at zero for crisp line art.
  • Read the print report card, then download STL, 3MF or OBJ. The file name already carries the size, for example relief_100x74.9x4.5mm.stl.

Lithophanes, logos and text in brief

Lithophanes map brightness to thickness, so the photo appears only when light shines through. Logos need clean filled shapes, which SVG gives directly and PNG gives after tracing. Text mode skips images entirely and builds letters from a font. Each has its own settings worth learning before the first print.

A lithophane defaults to 0.8 mm at the brightest pixel and 3.0 mm at the darkest, with a 3 mm frame. Flat panels print with the textured face up; arc and cylinder versions stand upright. The separate lithophane settings guide covers thickness, resolution and shape choices in detail.

For logos, the extrude mode reads filled SVG paths and skips stroke-only paths, telling you how many it skipped. If you only have a PNG, the threshold slider decides which pixels count as the shape: 0.5 works for black-on-white artwork, and invert handles white-on-dark logos.

Text mode takes up to 80 characters over several lines, with Helvetiker, Optimer, Gentilis, Droid Sans or Droid Serif in bold. Font size is the em height in millimetres, so 14 mm capitals read clearly on a desk plate from across a room.

When an AI photo-to-3D model is worth paying for

AI generation makes sense only when you need a real three-dimensional object, such as a figurine of a pet or a toy, from a single photo. It costs credits, needs a free account, and the back of the model is a guess. For flat or wall-mounted prints, the free browser modes are the better fit.

Our AI path sends the photo to a 3D generation provider, then runs the returned model through a repair step that merges vertices, fills holes, fixes normals and drops small floating fragments. The result is scaled to a target height, 80 mm by default, and placed flat on the build plate. Standard jobs cost 13 credits and HD jobs cost 25; a failed job refunds its credits automatically.

If the repair cannot close the mesh, the result is labelled as needing a check rather than being called watertight. The photo-to-3D guide explains which photos give the AI the best chance.

Resolution versus file size and detail

Resolution is the number of height samples along the long side. Doubling it roughly quadruples triangles and file size, because the grid grows in both directions. On a 100 mm relief, 200 samples gives 0.5 mm cells and a 2.9 MB STL; 600 samples gives 0.17 mm cells and 25.9 MB.

Lithophanes carry more triangles than reliefs at the same sample count because they have a textured face, a back face and a frame. Build time is short on a desktop either way; the real cost of high resolution is a heavier file that takes longer to slice and preview.

There is also a printing limit. A 0.4 mm nozzle lays down lines roughly that wide, so cells much smaller than about 0.4 mm add triangles without adding visible detail on an FDM printer. For a 100 mm print, 200 to 300 samples covers what a standard nozzle can resolve.

A 100 mm wide model at different resolutions
ModeSamples (long side)Cell size (mm)TrianglesBinary STL (MB)Build time (ms)
Relief1001.0115,6900.71
Relief2000.50361,3902.94
Relief3000.334137,0906.58
Relief4000.251242,79011.615
Relief6000.167544,19025.933
Lithophane1500.67151,1822.44
Lithophane3000.334204,7829.816
Lithophane6000.167814,07038.850

Source: Measured on STL Genie, November 2026 (Intel i7-8700, Node 22, same mesh code the browser runs). Full data: /data/relief-resolution.csv and /data/lithophane-resolution.csv.

Reading the print report card before you download

Every result shows its size in millimetres, triangle count, a watertight verdict, the number of separate shells, the volume in cubic centimetres and an estimated filament weight. Check the size first, then the watertight line. If both look right, the file should import into a slicer without surprises.

  • Size L × W × H: confirms the model is in millimetres and the height you expect.
  • Triangles: a rough guide to file size; a binary STL is 84 bytes plus 50 bytes per triangle.
  • Watertight: yes only when every edge is shared by exactly two faces walking it in opposite directions.
  • Shells: separate pieces. A keychain with raised artwork on a plate can show several shells; slicers merge overlapping shells when printing.
  • Volume and grams: PLA at 1.24 g/cm³, modelled as a 0.8 mm solid skin plus your chosen infill inside.

Importing the STL into your slicer

Drag the STL into Bambu Studio, PrusaSlicer, OrcaSlicer or Cura and check the dimensions match the report card. STL has no unit field, so slicers assume millimetres. If the model appears tiny or enormous, it was exported in inches or metres somewhere else; scale it rather than re-converting.

Reliefs and flat lithophanes should lie flat on the plate as exported. Arc and cylinder lithophanes are exported standing upright on their bottom edge, which is how they are commonly printed. Text, logos and keychains lie flat with the plate on the bed.

If you plan to change filament colour for raised artwork, a 3MF download keeps the millimetre unit declared in the file, but the colour change itself is set in the slicer at the layer where the artwork begins. Commonly recommended starting settings are 0.2 mm layers for reliefs and keychains and 0.12 mm layers for lithophanes, but follow your printer profile first.

Common problems and quick fixes

Most first-print problems come from the source image rather than the converter: low contrast flattens a relief, JPEG noise creates a rough surface, a logo with gaps traces as broken shapes, and very high resolution creates a file the slicer struggles with. Fix the image or the setting, then convert again.

  • Relief looks flat: raise the relief height or increase image contrast before converting.
  • Surface looks grainy: add one or two smoothing passes or start from a PNG instead of a heavily compressed JPG.
  • Logo has missing parts: in SVG, make sure shapes are filled rather than stroked; with PNG, move the threshold until the preview shows the full shape.
  • Wrong size in the slicer: confirm the slicer has not applied an inch conversion; STL from this site is always in millimetres.
  • File too big to upload to a print service: drop resolution to 200 or 300 samples.
  • Thin hairs or whiskers print stringy: they are finer than one nozzle line; smooth or simplify the image.

Frequently asked questions

Can I convert a JPG to STL for free?

Yes. Relief, lithophane, extrude and text conversions run free in your browser with no account and no upload. Only AI photo-to-3D generation uses credits, because it calls an external 3D model on a server.

What image resolution do I need for a good STL?

Around 1000 pixels on the long side is plenty for most prints. The converter samples the image to at most 600 points, and for a 100 mm FDM print 200 to 300 samples already matches what a 0.4 mm nozzle can show.

Why is my image-to-STL file so large?

Because triangle count grows with the square of resolution. A 100 mm relief at 600 samples measured 544,190 triangles and 25.9 MB; at 200 samples it was 2.9 MB with little visible difference on a standard nozzle.

Should I download STL or 3MF?

Either works in modern slicers. STL is the most widely accepted by print services and older tools, while 3MF states its unit as millimetres inside the file. The STL vs 3MF vs OBJ guide compares them in detail.

Can I turn a photo of a person into a 3D figure?

Only with AI generation, and expect the back and fine features to be approximations. For a photo of a face, a lithophane usually gives a more recognisable result than a 3D figure printed at small scale.