Image to STL: How to Turn a Picture into a 3D Printable File

How to convert an image to STL for 3D printing: the free converter steps, lithophane settings, and 4 other methods for a full 3D object, with checks to run before you print.

By Sam Kostabi, 3Dstudio.co Updated 12 min read
3D model of a machined steel clamp with two bolts and linked plates, shown at an angle on white

In this article

  • A heightmap or lithophane turns an image into a flat relief in minutes, with settings that print well
  • Trace and extrude suits flat shapes; AI generators and photogrammetry are needed for real depth
  • AI image-to-3D generators guess the sides a photo cannot show, so scale and check the result
  • Check any STL for a watertight mesh, correct scale and wall thickness before printing

To convert an image to STL, open a free image to STL converter, drop in a PNG or JPG, set the width and the relief height, and download the file. The converter reads the brightness of each pixel as a height, so the result is a flat relief or a lithophane, not a full 3D model of the object in the picture.

To get a full 3D object from a photo, you need an AI image-to-3D generator, photogrammetry (many photos taken from all sides) or a model built by hand, for example by a 3D modeling service.

How to convert an image to STL with our free converter

  1. Open the converter. Go to the free image to STL converter page.
  2. Drop in your image. It accepts PNG, JPG, WebP and GIF. A 3D preview appears straight away.
  3. Set the size. Width runs from 20 to 250 mm (default 100 mm). Relief height runs from 0.5 to 10 mm (default 3 mm). Base thickness runs from 0 to 5 mm (default 1 mm). Detail is the number of points across, from 60 to 400 (default 200). The depth follows the proportions of the image. Tick “Raise the light areas instead” if you want white to be high.
  4. Check and download. Rotate the 3D preview to check the relief, then download the STL.

The file is built in your browser, so the image is never uploaded. There is no sign-up and no watermark. The converter also reads transparent areas as white, so a logo on a transparent PNG gives a clean plate.

Which method to use for your image

The right method depends on what you start with: a logo, a product photo, a portrait or a real object you can walk around.

Have a 3D model? 3Dstudio.co turns a screenshot of it into a photoreal image. The first look shows in under 10 seconds, the finished render in about 15 seconds. Free to start, no credit card.

Render your model free
What you have Method What you get Tool to use
A logo, badge or silhouette on a plain background Heightmap, or trace and extrude A raised flat plate Our image to STL converter; Inkscape and Tinkercad
A photo or portrait to hang in a window or in front of a lamp Lithophane A thin panel that shows the picture when lit from behind Our image to STL converter
A product photographed cleanly from one or a few angles AI image-to-3D generator A rough starting shape with guessed sides Meshy, Tripo, MakerWorld MakerLab
A real object you can walk around Photogrammetry A mesh of the real shape, with no scale until you measure Meshroom, RealityScan, Polycam
Drawings, measurements or an object that has to fit another part Modeled by hand A clean model built to your dimensions A 3D modeling service (paid)

How to prepare an image before converting it

Every pixel becomes a height, so every flaw in the image becomes a flaw in the print.

  • Crop tight to the subject. Empty margins use up print area and add nothing.
  • Remove the background. A busy background becomes bumps behind the subject. Use a plain white or transparent background.
  • Convert to grayscale and raise the contrast. The converter only uses brightness, so strong contrast gives a clear difference between high and low.
  • Remove noise and JPEG blocks. Every speck becomes a small bump on the surface. Start from the sharpest, cleanest file you have.
  • Make thin lines thicker. A standard nozzle is 0.4 mm wide, so lines thinner than that, and small text, will not print.
  • For a lithophane, use a well-lit photo. The subject should be brighter than the background and the face clearly visible.
  • For trace and extrude, use 2 colors. Pure black on pure white traces to a clean outline.

Turning a flat image into a heightmap or a lithophane

A heightmap reads the brightness of each pixel in a flat image and turns it into a height. It works well for logos, silhouettes, simple line art and single-subject photos with a clear separation between light and dark. It does not work well for a busy photo, because every stray shadow and texture becomes a bump.

Diagram of an image turned into a printable relief: a simple leaf picture, its grayscale heightmap and the raised 3D relief built from it
A flat image, its grayscale heightmap and the relief built from it. In this diagram white is high; our converter raises dark areas by default, and one checkbox flips it.

A lithophane is a thin print that shows a picture when light shines through it. Thick areas let less light through and look dark. Thin areas look light. It suits a portrait or a landscape photo better than a plain heightmap, because it is made to be lit from behind, not looked at under normal light.

Diagram comparing a front-lit relief plaque with a backlit lithophane, where thick areas look dark and thin areas look light
A relief is read under light from the front, while a lithophane is lit from behind, so its thick areas look dark and its thin areas look light.

Tools do not agree on which pixels go up. Our converter raises dark areas by default, which is the lithophane convention, and one checkbox flips it. Other tools may use the opposite default, and Cura asks you to choose Darker is higher or Lighter is higher. If your logo prints with the background raised, flip this setting.

A heightmap only ever has one side. It is useful for a logo, a sign or a lithophane. It is not a way to turn a photo of a person, a building or a product into a model you can print in the round.

Settings for logos, signs and lithophanes

Print Base Relief Raised areas Filament and orientation
Lithophane 0.8 mm 2.5 mm Dark areas (default) White filament, printed standing upright
Logo plate or sign, black logo on white 1 mm (default) 3 mm (default) Dark areas (default) Any color, printed flat
Keychain or badge Use trace and extrude instead (next section)

More detail points give sharper edges and a bigger file. 200 points across is enough for most prints up to 150 mm wide. A lithophane also needs full infill, so the light passes evenly through every part. Display it in front of an even light source, such as a lamp or a window. If it looks flat or washed out, the relief is too thin. If it looks too dark, the relief is too thick or the filament is not white.

An STL stores only the shape, not color. For a multi-color relief or a color lithophane, save a 3MF or OBJ file instead and print with filament changes or a multi-material printer. Our STL, OBJ, GLB and 3MF file formats compared explains the differences.

Tracing an image to a vector and extruding it

Tracing turns a flat image into a vector outline, which is a set of clean edges instead of pixels. Extruding gives that outline a thickness. The result is a flat slab of one constant thickness. It suits a badge, a nameplate, a coaster or a keychain, and it adds no depth beyond the outline.

Diagram of a pixel image traced into a clean vector outline and extruded into a flat solid of even thickness
A pixel star is traced into a clean outline and then extruded into a flat slab of even thickness, the three steps of this method.
  1. Trace the image in Inkscape: Path, then Trace Bitmap, with the Brightness cutoff option for a 2-color image.
  2. Save the result as an SVG.
  3. Give it thickness in Tinkercad (import the SVG), in PrusaSlicer (right-click an object, then Add part, then SVG) or in Bambu Studio, which also imports SVG files.
  4. Export the shape as STL, or print straight from the slicer.

If you already have the logo as an SVG, skip the tracing step. It is cleaner than converting a PNG. All shapes must be closed paths, because an open line has no inside to give thickness. The method breaks down as soon as the source has more than one flat plane, a curved surface or overlapping parts, because tracing sees an outline and never a third dimension. More free 3D and CAD tools are listed on our tools page.

AI image-to-3D generators

An AI image-to-3D generator takes one or more photos and guesses a full three-dimensional shape, including the sides you cannot see. For a simple, symmetrical object photographed cleanly, the guess can be close enough to print. The hidden sides, exact proportions and small features are invented, not measured.

For a good result, give the generator one subject on a plain background, in even light, seen from a three-quarter angle, with nothing cut off by the frame. These generators handle thin parts, text and logos on the surface, transparent or shiny objects and hair badly. Several photos from different angles usually improve the guess, because the generator has more of the real object to work from.

Many generators now export STL or 3MF directly, as well as GLB, OBJ and FBX, and some run their own printability check. Meshy, for example, offers STL and 3MF. None of them know the real size, so scale the model to one known dimension. If your file arrives as OBJ or GLB, our OBJ converter or free 3D model converter turns it into STL. The mesh is often dense and uneven, and may still have holes or very thin parts, so treat the result as a starting point and check it before printing.

Photogrammetry and 3D scanning from many photos

Photogrammetry builds a 3D model from many overlapping photos taken all around a real object. The software matches points between the photos and builds a textured mesh of the real shape. Common options are RealityScan, Polycam and Meshroom (Meshroom is free and open source).

It needs an object you can walk around, a matte surface and even light. Shiny, transparent and plain featureless surfaces fail, because the software finds no points to match. It gives real proportions, but no scale until you measure one dimension, and the mesh usually has holes underneath that must be closed before printing. For a person or an animal, a photogrammetry scan or digital sculpting for figures and faces is the method to use.

Modeling the object properly from photos and drawings

Modeling by hand is the method to choose when the model has to be accurate, not just plausible. A person builds the shape in a 3D program from your drawings, measurements and photos, and checks proportions and features while building.

The source decides the accuracy. A model built from dimensioned drawings is exact. A model built from photos and one known dimension is a careful reconstruction that looks right. For a part that will be manufactured, send the drawing, not only the photograph. A photo gives a model that only looks right.

This is what our 3D modeling service does. Even a photo of a hand sketch is enough for a quote. Send clear photos from several angles, plus one stated dimension, such as the width of the object or a nearby object for scale. We model objects you own or have the right to reproduce. The model comes back in a standard 3D format such as OBJ or FBX, which you can then convert to STL. See how a 3D modeling project runs from your files to delivery.

Checking that the STL is actually printable

Whichever method produced the file, check it before you send it to a printer or a print service:

  • Watertight: the mesh must be a single closed solid, with no holes, gaps or loose edges. Our STL converter shows Watertight: Yes or No for files up to 400,000 triangles. For a bigger mesh, simplify it first or use your slicer’s check.
  • Scale: STL files have no units, so check the size in your slicer before printing. A model built from a photo with no reference measurement can easily end up far too large or far too small.
  • Wall thickness: thin fins and edges that look fine on screen can be too thin to survive printing. Give any thin section enough thickness to hold together when handled.
  • A flat base and manageable overhangs: a heightmap or lithophane already sits flat, but a traced or AI-generated shape may not, and may need supports under an overhang.

Tip: If the mesh is not watertight, repair it in your slicer, in Microsoft 3D Builder or in Blender before you print, not after a failed print.

A model with a very high number of small, jagged triangles, typical of an AI generator or a rough scan, is slow to slice. A printer cannot reproduce detail smaller than its nozzle width and layer height, so the extra triangles add nothing. Simplifying the mesh before slicing fixes both problems. See how a polygon mesh is built from triangles and reducing the polygon count of a mesh.

What goes wrong and how to fix it

Problem Cause Fix
The logo printed inverted, with the background raised The brightness setting is the opposite of what you expected Tick or untick “Raise the light areas instead”
Stepped, jagged edges Too few detail points, or a low-resolution image Raise the detail setting and use a sharper image
Bumpy, noisy surface Photo noise or texture became height Blur or simplify the image first
Lithophane looks flat or washed out The relief is too thin, or the filament is too dark Raise the relief height and print in white filament
Small text disappears Lines are thinner than the nozzle can print Make the lines thicker, or make the text larger
The AI model prints with holes or will not slice The mesh is not watertight Repair it in your slicer or a repair tool
The model is the wrong size STL has no units Scale it in the slicer to one known dimension

Comparing the 5 methods

Method Real depth on all sides Scale correct Effort Weak at
Heightmap or lithophane No, one side only Yes, you set the width Minutes Anything seen from more than one side
Trace and extrude No, a flat slab Yes, you set the thickness Minutes Curved surfaces and real depth
AI image-to-3D generator Yes, but guessed No, scale it yourself Minutes, then cleanup Accuracy: hidden sides and small features
Photogrammetry Yes, measured No, until you measure one dimension A photo session, then cleanup Shiny, transparent or featureless objects
Modeled by hand Yes, built to your dimensions Yes, from your drawings Longest, and not free Speed

Questions about converting images to STL

Can I convert a JPG or PNG directly to STL?

Yes, as a heightmap or lithophane relief, using a tool such as our image to STL converter. That gives a flat relief raised from a base, not a full three-dimensional model of whatever the picture shows.

Why did my image print with the background raised instead of the logo?

Tools use opposite brightness conventions. Our converter raises dark areas by default, so tick “Raise the light areas instead” to flip it. In Cura the same choice is Darker is higher or Lighter is higher.

How thick should a lithophane be?

In our converter, use a base of 0.8 mm and a relief of 2.5 mm, with dark areas raised, printed upright in white filament. A thinner relief looks too pale, and a thicker one blocks too much light.

Can I convert an SVG logo to STL?

Yes, and it is cleaner than converting a PNG, because no tracing is needed. Import the SVG into Tinkercad, PrusaSlicer or Bambu Studio and give it a thickness. All paths must be closed.

Does an STL file keep the colors of my image?

No. An STL stores only the shape. For color, save a 3MF or OBJ file and print with filament changes or a multi-material printer.

Can an AI tool turn my product photo into a printable model?

Yes, as a rough starting shape. It guesses the sides and details it cannot see in the photo, so treat the result as a draft to check, scale and clean up, not a finished file.

How do I convert a photo of a person into a printed figure?

You need several photos from different angles, processed with photogrammetry, or a model built by hand from references. A single photo cannot show the back of a head or the far side of a face, and a heightmap only works from one side.

Diagrams in this post are drawn with an AI image tool from our brief and checked by our team.

Need an object modeled from your drawings or photos?

Two ways to get images of your building

Free AI render

For trying options on your own design

  • Upload a screenshot of your model from SketchUp, Revit, Archicad or Rhino.
  • Get a first look in under 10 seconds.
  • The AI changes materials, light and surroundings. Fine details can come out simpler than in your model.
  • Free to try, no credit card.
Render a screenshot free

Need it marketing-ready? Send drawings for a fixed quote.

3Dstudio.co studio

For images that must match the drawings

  • We build the 3D model from your drawings and check it against them.
  • A reply within 30 minutes: a fixed price and a delivery date, or the 1-2 questions we need answered first.
  • Clay model first, 2 revision rounds, then refined until you sign off.
  • 4K images with full usage rights, under NDA. Projects start at €1,000.
Get a quote