PNG & SVG to STL

Turn a logo, icon, or picture into a flat 3D-printable STL: extrude its shape, or raise it as a relief. SVG files are extruded from their vector paths.

  • Free
  • No sign-up
  • Runs in your browser

No image loaded

PNG, JPG, WebP up to 20 MB, or SVG up to 5 MB

Converted on your device. Your image is never uploaded.

How to convert a PNG to STL in 3 steps

  1. 1

    Drop your image

    Use a PNG with a transparent background, a high-contrast logo, a photo, or an SVG.

  2. 2

    Choose shape or relief

    Extrude the silhouette, or raise a heightmap from brightness. Set width, height, and base in millimeters.

  3. 3

    Download the STL

    Check the 3D preview and download a binary STL, sized in millimeters, ready to open in your slicer.

How to convert a PNG to STL

A PNG is flat, so turning it into something printable means deciding what the third dimension should be. This converter offers the two common answers: give the shape a thickness, or let brightness set the height. Both run entirely in your browser.

Two ways to turn an image into a solid

Silhouette extrudes the shape of the image. Every pixel that belongs to the shape becomes a column of the height you choose, and everything else is left out. This is what you want for logos, icons, lettering, cookie-cutter outlines, keychains, and stencils. With a transparent PNG the shape is simply the opaque pixels. With an image on a plain background, the threshold slider decides which pixels count: darker than the threshold by default, or lighter with Invert on.

Heightmap turns brightness into height. Dark pixels rise highest and light pixels stay near the base, or the other way round with Invert, over a solid backing plate. This suits textured tiles, embossed signs, terrain from a grayscale elevation image, and flat lithophane-style panels. Photos work, but strong contrast and simple shapes read much better in plastic than subtle shading.

A transparent image opens in Silhouette mode and an opaque one in Heightmap mode, since that is usually what they are for. You can switch at any time; the preview updates as you change settings.

SVG to STL

SVG files are vector drawings, so they are extruded from their paths rather than from pixels. Curves stay smooth at any size, which makes SVG the best input for logos and lettering if you have it. Every filled shape is extruded to the height you choose, holes such as the inside of an O are kept, and the width you set is the width of the artwork in millimeters.

Only filled shapes have an area to extrude. Lines and outlines drawn with a stroke but no fill are skipped, and the converter tells you how many it skipped. In Inkscape, select them and use Path, then Stroke to Path, to turn them into filled shapes first. Text should also be converted to paths with Path, then Object to Path, so the file does not depend on fonts.

Settings that matter for printing

Width sets the final size of the model in millimeters; depth follows the image’s proportions. Measure where the print is going, or check your printer’s build plate, before you choose.

Height is how far the shape or relief rises, and Base adds a solid plate under the whole image. A base of 1 to 2 mm keeps separate letters or islands of a design connected so they print as one piece. Without a base, every separate part of a silhouette becomes its own small object.

Detail sets how many pixels across the image is sampled, from 100 to 600. Higher detail follows edges more closely but makes a larger file and a slower preview. As a rule of thumb, there is no benefit to pixels smaller than your nozzle: at 80 mm wide, 200 pixels is 0.4 mm per pixel, about the width of a standard nozzle line.

Good starting points

  • Logo or keychain: Silhouette, 2–3 mm height, 1–2 mm base if the design has separate parts.
  • Cookie cutter outline: Silhouette with a thin shape, or an SVG of the outline converted to a filled path.
  • Embossed tile or sign: Heightmap, 2 mm relief on a 2 mm base, high-contrast artwork.
  • Lithophane-style panel: Heightmap with dark areas raised, about 3 mm relief on a thin base, printed upright in white PLA.

Preparing an image for a clean result

The cleaner the edges in the image, the cleaner the edges of the print. A PNG exported with a transparent background is ideal for silhouettes. JPG photos have compression noise around edges that shows up as rough outlines; raising the threshold or lowering the detail smooths it. Remove backgrounds, shadows, and gradients you do not want to become geometry before converting.

Fine lines thinner than about two nozzle widths often do not print, whatever the converter does. Thicken them in an image editor first. For heightmaps, a slight blur on the image often prints better than sharp noise, because every tiny bump becomes a layer change.

What the STL contains

The download is a binary STL in millimeters with Z up, lying flat on the build plate. For images, the mesh is built so that every edge is shared by exactly two triangles and every triangle faces outward, which is what slicers expect. SVG shapes are extruded the same way, though very complex or self-overlapping paths can still produce small errors. Where two pixels of a silhouette touch only at a corner, the converter fills one neighboring pixel so the mesh stays well formed; that changes the outline by at most one pixel at such spots.

Silhouettes are made of pixel-sized steps, so curved edges show a fine stair-step pattern that becomes less visible as detail increases. SVG input does not have this, which is one more reason to use a vector file when you have one. If you want to check a file before printing, the STL checker reports holes and other problems in any STL.

When you need a full 3D model instead

Extruding an image gives you a flat object with the outline or texture of the picture. It cannot invent the back, sides, or depth of a character, pet, or product in a photo. For that, PrintMesh’s AI PNG to STL turns a single image into a full 3D model you can print, which is a different job and needs an account.

Ways to turn an image into an STL

Ways to make a printable STL from a PNG, JPG, or SVG, compared.

Ways to make a printable STL from a PNG, JPG, or SVG, compared.
FeatureThis converterAI image to 3DSlicer image importCAD or Blender
ResultFlat extrusion or reliefFull 3D model with depthRelief or lithophaneAnything you model
SVG supportYes, filled pathsNoSome slicersYes
Install or accountNeitherAccount neededSlicer installInstall and skills
Size in millimetersYesScale afterYesYes
Image leaves your deviceNoYes, for processingNoNo
Best forLogos, signs, keychains, tilesCharacters, pets, objectsQuick lithophanesPrecise or complex parts

Troubleshooting

Quick fixes for the results people ask about most.

The whole rectangle was extruded
The image has no transparency, so the threshold decides the shape. Move the threshold slider, or turn on Invert if the subject is lighter than the background.
Edges look jagged
Silhouettes follow the pixel grid. Raise Detail, start from a larger image, or use an SVG for perfectly smooth curves.
Letters or parts fall apart in the slicer
Separate shapes become separate objects. Add a base of 1 to 2 mm to join them into one plate.
My SVG is empty or missing lines
Strokes without a fill have no area. Convert strokes and text to paths in your vector editor, then try again.
The relief is too bumpy
Every speck of noise becomes height. Lower Detail, blur the image slightly, or increase contrast before converting.

Only have a photo?

PrintMesh’s AI turns a photo or image into a full 3D model with depth, not just a flat extrusion, that you can preview and export for printing.

Try PrintMesh

PNG & SVG to STL FAQ

How do I convert a PNG to STL for free?
Drop the PNG into the converter, choose Silhouette to extrude its shape or Heightmap for a relief, set the size in millimeters, and download the STL. It is free, needs no account, and the image stays on your device.
Can I convert an SVG to STL?
Yes. Filled shapes in the SVG are extruded to the height you set, with holes kept and curves smooth. Convert strokes and text to paths first, since lines without a fill have no area to extrude.
Does this make a 3D model of what is in my picture?
No. It makes a flat extrusion of the shape or a relief from the brightness. For a full 3D model of a character or object from one picture, use PrintMesh’s AI PNG to STL.
What image works best?
A PNG with a transparent background and clean, bold edges, or an SVG. For heightmaps, a high-contrast grayscale image. Thin lines and subtle shading do not survive printing well.
Can I make a lithophane with it?
You can make a flat lithophane-style panel: choose Heightmap, raise dark areas, use a thin base, and print it upright in white PLA. Dedicated lithophane tools add frames and curved shapes.
Is my image uploaded?
No. The image is read and converted in your browser. Nothing is sent to a server.
What are the size limits?
PNG, JPG, and WebP files up to 20 MB, and SVG files up to 5 MB. The image is sampled at up to 600 pixels across, which is finer than a 0.4 mm nozzle can print at most sizes.

Last updated: