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.
The four ways at a glance
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.
- Open Image to STL and pick what you want: a relief or keychain, a cookie cutter or a stencil.
- Drop your SVG. On the right you'll see the image and, in orange, what's going to be printed.
- 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.
- Give it a width in millimetres and, if you like, a base, a ring or two colours.
- Download the STL (or the 3MF, OBJ or PLY). It's watertight, so your slicer has nothing to fix.
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:
- If the SVG has a transparent background, which is the usual case, the drawing is everything that isn't transparent, whatever its colour. One of those white logos made for dark backgrounds comes out the same as a black one.
- The trouble comes with logos that have white parts inside. Those parts are fill too (white, but fill), not holes, so the logo comes out as a solid block. We ran into this testing the emblem in these pictures, which is why we've added «Use the colours»: it puts the SVG on white, splits it by tone and leaves the white or light parts out.
- If the SVG comes with a background rectangle, it splits by tone straight away and the edge of the image decides what's background. If it comes out the wrong way round, tick «Invert» and you're done.
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.
- Turn text into paths with Path › Object to Path (Ctrl+Shift+C). Tinkercad skips text and Blender ignores it. In Image to STL it's drawn with whatever font you have installed and, if you don't have it, the browser picks another. Once it's a path, it doesn't depend on anything.
- If you're using Blender and the drawing is made of lines (strokes with a width and no fill), turn them into fills with Path › Stroke to Path (Ctrl+Alt+C), because Blender ignores stroke width on import. Image to STL keeps strokes as they are.
- Check how thick the lines are. On the part they'll be the stroke width times the part's width in millimetres, divided by the drawing's width in SVG units. We checked it with the tool: a 2-unit stroke in a drawing 800 units wide, set to 60 mm, ends up 0.15 mm and disappears. At the default smoothing (0.2 mm) anything under 0.4 mm goes, and that's what a 0.4 mm nozzle can't print anyway. The same stroke in an icon 20 units wide, at 40 mm, is 4 mm and comes out perfectly.
- Remove the background if the program doesn't do it for you. In Bambu Lab's guide, after importing the SVG you split it into objects and delete the background rectangle. Image to STL doesn't need this.
- If what you have is a PNG, Image to STL takes it as it is. For the other programs, Inkscape turns it into an SVG with Path › Trace Bitmap (Shift+Alt+B).
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:
- 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.
- In the curve's Geometry panel, raise Extrude to give it thickness.
- Object › Convert › Mesh, which keeps the faces and volume of closed, extruded curves.
- 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
- Bambu Lab Wiki — Converting an Image to a 3D Model Using Bambu Studio
- Bambu Lab Wiki — Bambu Studio Top Toolbar Features (formats Add accepts)
- Prusa Knowledge Base — SVG embossing tool
- Tinkercad — How to Import and Export SVG Files in Tinkercad (December 2021)
- Blender Manual: Import SVG as Curves, Curve Geometry, Convert and STL
- Inkscape — Keys and Mouse Reference and Inkscape Beginners' Guide — Editing Nodes on a Geometrical Shape
- MDN — SVG as an image
- Images and sizes taken from Image to STL with SVGs we drew ourselves.