THE VECTOR FIELD GUIDE

How to Convert STL to SVG

Convert an STL file to SVG by projecting the 3D mesh into a flat 2D view. Free methods in FreeCAD, Blender and OpenSCAD, plus a trace fallback on this site, with scale checks and laser cutting tips.

By Shahab Uddin · Updated

The short answer

To convert STL to SVG, project the 3D mesh into a flat 2D view in a desktop CAD tool, then export that view as SVG. FreeCAD TechDraw, Blender with the Freestyle SVG exporter, and OpenSCAD with its projection function all do this for free. An STL file stores a 3D surface made of triangles, and an SVG file stores flat 2D paths, so the conversion drops depth and keeps one view, such as the top, front or side. This site has no STL upload tool, because browsers cannot read 3D mesh files, so the conversion happens on your computer. If you only need a simple outline, render a clean top view of the model, save it as PNG, and trace it with the PNG to SVG converter on this site.

What converting STL to SVG actually does

An STL file stores a three dimensional surface as a mesh of small triangles. It has no color, no texture and no unit field, so a file does not record whether its numbers mean millimetres or inches. An SVG file stores flat shapes as paths on a two dimensional plane, with width and height but no depth.

Converting STL to SVG means choosing one view of the model and projecting the triangles onto a flat plane. A top view gives the footprint, a front view gives the elevation, and an isometric view gives a three dimensional looking drawing made of flat lines. Depth is lost in every case, and the SVG is a drawing of the model, not the model itself.

The result suits laser cutting, CNC routing, vinyl cutting, a website diagram or a technical drawing. It does not suit 3D printing. For printing, keep the STL itself, because the printer needs the full mesh, and the reverse guide on this site explains how to turn a flat SVG into an STL by extrusion.

Pick the view and the scale first

  • Decide which view you need. A laser cutter usually wants the top view, a front elevation suits a product drawing, and an isometric view suits a diagram or a manual.
  • Measure the model before you convert it. Note the width, depth and height in your slicer or CAD tool, because the SVG will not carry those numbers by itself.
  • Remember that an STL file has no unit field. If the numbers are in millimetres in one program and inches in another, the same file opens at a different size. Set the units in the tool you convert with, and check the size again in the tool that will use the SVG.
  • Decide whether you need clean outlines or shaded faces. A laser cutter needs clean closed outlines. A diagram can use shaded faces, but they add many extra paths and a larger file.
  • Keep the original STL. The projection cannot be turned back into a 3D model, so the STL stays the master file for printing and editing.

Method 1: FreeCAD TechDraw, free

FreeCAD is a free and open source CAD program for Windows, Mac and Linux, and its TechDraw workbench turns a 3D model into a 2D drawing that exports as SVG. It gives the cleanest result for parts with flat faces and straight edges.

  1. Open FreeCAD and import the STL file with File, Import. The model arrives as a mesh.
  2. Convert the mesh to a solid with Part, Create shape from mesh, then refine the shape, so TechDraw can draw clean edges instead of triangle lines.
  3. Switch to the TechDraw workbench, insert a new page, then insert a view of the solid and pick the direction, such as top, front or side.
  4. Set the scale on the view, add dimensions if you need them, and check that hidden lines are shown the way you want them.
  5. Export the page with File, Export, and choose SVG. Open the SVG in a browser or in Inkscape and check the outlines before you use it.

Method 2: Blender Freestyle, free

Blender is a free and open source 3D program, and its Freestyle line renderer can export the visible edges of a model as SVG. It suits organic shapes and curved models where FreeCAD struggles, and it gives a drawing with a hand drawn look.

  1. Open Blender and import the STL file with File, Import, Stl.
  2. Frame the model in the camera view from the direction you want, top, front or side, and switch the camera to orthographic so parallel lines stay parallel.
  3. Turn on Freestyle in the render settings and enable the Freestyle SVG Exporter add on, then render the scene.
  4. Open the exported SVG in Inkscape or a browser and check the lines. Freestyle draws the visible edges, so hidden edges are left out unless you turn them on.

Method 3: OpenSCAD projection, free

OpenSCAD is a free script based CAD program, and its projection function cuts a 3D shape into a flat 2D outline. It suits simple parts and batch work, and the script records exactly which view was used.

  1. Open OpenSCAD and import the STL file with the import function in a short script.
  2. Wrap the import in a projection call, and set cut to true for a cross section at a chosen height, or leave it false for a flat shadow of the whole model.
  3. Render the script with F6, then export the result with File, Export, Export as SVG.
  4. Check the SVG size against the known dimensions of the model, because OpenSCAD uses its own unit settings and the STL carries no unit field.

Method 4: screenshot and trace on this site

If you only need a simple outline and you already have the model open in a slicer or CAD tool, a screenshot plus tracing is the fastest route, and it uses the tools on this site. It gives a traced outline, not a dimensioned CAD drawing, so use it for craft, vinyl and simple laser work, not for parts that must fit to a tenth of a millimetre.

Set the slicer or CAD view to a flat top view with a plain white background, hide the grid, the axes and any support material, and save a clean PNG of the silhouette.

  • Use the largest and sharpest image you can get. A small screenshot traces as wobbly curves.
  • Make the silhouette one solid color on a plain background, so the trace finds one clean edge.
  • Trace the PNG with the PNG to SVG converter or the PNG to vector tool on this site. Both run in your browser and the file is never uploaded.
  • Pick a small color count for a one color silhouette, and compare the vector preview with the screenshot before you download.
  • Check the size in your cutting software. A traced screenshot has no real world scale, so set the width and height from the known dimensions of the model.

Checking the SVG before you use it

  • Open the SVG in a browser and zoom in to 200 percent or more. Outlines should stay smooth, and corners should stay sharp.
  • Count the paths. A projection that draws every triangle edge makes a dense web of lines, and a laser cutter will try to cut them all. Use the clean outline mode in your CAD tool, or delete the internal edges in Inkscape.
  • Check that every outline your cutter needs is a closed shape. Open shapes will not cut as pockets or holes.
  • Measure the SVG against the known size of the model. If the width is wrong, the units were set wrongly in the conversion, so go back and set them.
  • Try the SVG where it will be used, such as a laser cutter, a vinyl cutter or a web page, before you delete the STL. Keep the STL as the master file until the SVG is proven.

STL or SVG: when to keep each

UseKeep STLUse SVG
3D printingYes, the printer needs the full meshNo, a flat drawing cannot print
Laser or CNC cuttingNo, cutters work from flat pathsYes, one clean 2D view
Vinyl cuttingNo, cutters work from flat pathsYes, a flat outline
Website diagramNo, browsers cannot display STLYes, SVG is the web vector format
Technical drawingOnly as the 3D masterYes, a dimensioned 2D view
Editing the model laterYes, it holds the full shapeNo, depth is lost in projection

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Is STL to SVG conversion free?

Yes. FreeCAD, Blender and OpenSCAD are all free and open source, and each can project an STL into an SVG. This site has no STL upload tool, because browsers cannot read 3D mesh files, so the conversion happens in a desktop program.

Can I convert STL to SVG online in my browser?

Not on this site. Online converters that accept STL upload your file to a third party server, so avoid them for client work or unreleased products and use FreeCAD, Blender or OpenSCAD instead. The trace fallback on this site runs in your browser, but it starts from a PNG screenshot, not from the STL itself.

Will the SVG keep the exact size of my model?

Not by itself. An STL file has no unit field, and a projection drops depth, so the SVG has no real world scale until you set it. Measure the model first, set the units in the tool you convert with, and check the width and height in the tool that will use the SVG.

Why is my SVG full of tiny triangles?

A projection draws the edges of the mesh triangles, so a curved surface becomes a web of small lines. Use the clean outline or silhouette mode in FreeCAD or Blender, convert the mesh to a solid first in FreeCAD, or delete the internal edges in Inkscape. For a laser cutter, only the outer outline and the holes should remain.

Next, make it useful.