3D tools

How to convert an SVG to STL for free (online, in your slicer, Tinkercad or Blender)

An SVG is a flat drawing and an STL is already a 3D part, so going from one to the other basically means giving the drawing some height. Loads of free programs can do it, but they don't all keep the same things from your SVG, and you notice that in the part. I'll walk you through the four ways there are, what each one does according to its own docs, and what to check in your SVG so no lines get lost on the way.

Three parts made from SVGs: a round medal with a raised mountain, a keychain with a mountain drawn in lines and a stencil with a star cut out
Three SVGs turned into STLs with Image to STL: an emblem as a medal, a line drawing as a keychain and a star as a stencil.

The four ways at a glance

Image to STL (hotend)

In the browser, no sign-up

What you get: a relief on a plate, a keychain, a cut-out figure, a cookie cutter or a stencil, already watertight.

Keep in mind: one relief height and two colours at most.

Bambu Studio or PrusaSlicer

In your slicer

What you get: the SVG as a part (Bambu Studio) or raised or engraved on another part (PrusaSlicer).

Keep in mind: you need to install them, and in Bambu Studio each colour can get its own filament.

Tinkercad

In the browser

What you get: each closed path, extruded, ready to keep editing.

Keep in mind: it skips text, images, masks and filters, and the SVG has to be under 4 MB.

Blender

An app to install

What you get: curves that you then extrude and turn into a mesh.

Keep in mind: it only reads the shape of the paths and skips fills, line widths, text and images.

If all you want is to print the drawing, the first one is the quickest. If the SVG goes on top of a part you already have, use your slicer. And if you're going to keep designing around it, Tinkercad or Blender.

Step by step with Image to STL

It's the tool we built at hotend for exactly this, and it runs entirely in your browser: no sign-up, and your SVG isn't uploaded anywhere.

  1. Open Image to STL and pick what you want: a relief or keychain, a cookie cutter or a stencil.
  2. Drop your SVG. On the right you'll see the image and, in orange, what's going to be printed.
  3. If it's a logo with white parts and it comes out as a solid block, tick «Use the colours». If the tool spots this, it'll tell you.
  4. Give it a width in millimetres and, if you like, a base, a ring or two colours.
  5. Download the STL (or the 3MF, OBJ or PLY). It's watertight, so your slicer has nothing to fix.
The Image to STL tool with a blue and white emblem loaded: the image and what gets printed on the right, and in the viewer a plate with the raised emblem and the mountain recessed
An SVG emblem with «Use the colours» ticked: the white mountain, sun and bar are left out of the relief.

How the tool reads your SVG

The tool doesn't go path by path. What it does is draw the SVG exactly the way your browser does, 1,400 pixels on the long side, and take the outline of that drawing. That's why fills, strokes, text and gradients all count, just like when you open the SVG in Chrome. And don't worry about resolution: if the drawing fills the SVG, at 60 mm wide each pixel is 0.04 mm, and at 250 mm, the maximum, 0.18 mm. Either way that's finer than one line from a 0.4 mm nozzle.

To work out what's drawing and what's background, it does this:

Left, a blue emblem with a white mountain on a transparent background; centre, the part as a solid disc; right, the part with the mountain, sun and bar recessed
The same SVG read by its transparency (centre), where everything opaque is drawing, and with «Use the colours» (right).

One more thing. When the browser draws an SVG as an image, it doesn't load anything from outside the file, like linked images or stylesheets, unless it's embedded inside (MDN explains this). So an SVG with a PNG tucked inside works, and the tool treats it like that PNG.

Before converting: text, lines and backgrounds

This applies whichever of the four ways you go for. I'm giving you Inkscape's menus, since it's free.

In your slicer: Bambu Studio and PrusaSlicer

Bambu Studio opens an SVG as if it were just another model: its Add button takes SVG the same as STL, 3MF or STEP. In its guide to turning an image into a model, Bambu Lab does it like this: import the SVG (File › Import), scale it, split it into objects (Split › To objects), delete the background and give each part a filament (Change Filament). If your printer does several colours and you want the logo with all of its own, this is the way.

PrusaSlicer goes the other way round: the SVG is added to a part you already have. Right-click the part, Add part › SVG, and choose the depth, the size and whether it's raised (Join), engraved (Cut) or a modifier. Also, according to Prusa, with Use surface the SVG wraps onto a curved surface. For putting a logo on a box lid or on something round, it's the easiest option.

In Tinkercad

According to Tinkercad's blog, in the 3D design space you click Import (top right), drop the SVG and set its size in millimetres. Each closed path gets extruded: the outer one is solid and the ones inside alternate between hole and solid. Then you change the height in the Inspector and export it with Export › STL.

Bear in mind the SVG has to be under 4 MB, and Tinkercad skips text, images, clipping paths, masks, filters and fill patterns. If your drawing has any of those, turn them into paths first.

In Blender

It's the way with the most control, but also the one with the most steps. According to its manual:

  1. File › Import › SVG as Curves. Each path becomes a curve, on the XY plane and scaled by the document's units, so you may need to rescale it.
  2. In the curve's Geometry panel, raise Extrude to give it thickness.
  3. Object › Convert › Mesh, which keeps the faces and volume of closed, extruded curves.
  4. File › Export › STL (.stl).

Keep in mind that Blender's importer only reads the shape of the paths: it skips gradients, fills, strokes, text, images and filters. That's why it's worth preparing the SVG first, as I explained above.

Stencils and cookie cutters from an SVG

Image to STL has two more modes that work straight from an SVG. The stencil is a thin plate, 0.6 to 3 mm, with the drawing cut through so you can spray paint or airbrush over it. Watch out for islands: areas the drawing encloses, like the middle of an O, fall out when you print it (the tool warns you). The cookie cutter follows the outer silhouette with a thin blade and a flange. It has its own page, the cookie cutter generator, and if you fancy some baking, there are four free Christmas cutters in this article.

If what you want is a name or a QR code, the 3D text generator does it with fonts, no SVG needed. And for a photo with shading, the thing you can actually print is a lithophane.

FAQ

Is there a free online SVG to STL converter?
Yes, Image to STL, hotend's own tool. It converts the SVG in your browser, with no sign-up and without uploading it anywhere. You get a relief on a plate, a keychain, a cut-out figure, a cookie cutter or a stencil, and you download it as STL (or 3MF, OBJ and PLY).
Why does my logo come out as a solid block?
Because it has a transparent background and its white parts are white fill, not holes. To the tool, anything that isn't transparent is drawing. Tick «Use the colours» and the white or light parts are left out. If the tool spots this, it tells you.
Why do thin lines disappear?
Because on the part they end up thinner than your nozzle can print. The final width is the stroke width times the part's width in millimetres, divided by the drawing's width in SVG units. At the default smoothing (0.2 mm), the tool removes anything under 0.4 mm. Make the part wider or the strokes thicker in the SVG.
Can you convert an STL to SVG?
With Tinkercad, yes. According to its blog, exporting to SVG gives you the part's outline as lines, right where it crosses the workplane. It's handy, for example, to take a silhouette to a laser cutter.
Can I print the SVG in several colours?
With Image to STL, in two: the base and the drawing, in one 3MF with both parts already in place. If you want more colours, Bambu Lab explains how to import a multicolour SVG into Bambu Studio and give each part its own filament.

Sources