Skip to content
Turn 2-Dimensional SVG Paths into 3-Dimensional STL Meshes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

SVG to STL Converter

Created to enable the 3D printing of plates for a printing press from a 2D vector graphic, this tool runs entirely in the local browser. As the name implies, it takes a scalable vector graphics (SVG) file as input, and produces an ASCII stereo-lithography (STL) file as output.


You can try the tool hosted directly from github.

There are example SVG files in example-svg/Entypo.




  • Specifying type height
    • Including indented/recessed type
  • Rendering with and without a base plate
    • Round and Rectangular base plates supported
    • Specifying base plate height
  • Optionally inverting type for printing press use
  • Optionally flaring the base of type for added strength
  • Reversing the winding order (CW/CCW) of SVG paths for incorrectly-built SVG files

Known problems

  • A hole in an SVG path should be defined by points in counter-clockwise order, where the shape outline is defined by points in a clockwise order, or vice versa. Some SVG creation tools don't do this correctly, and shapes render in 3D space as "inside out".
    • You can try the "Reverse Winding Order" option to fix this, but it's possible to have both combinations of winding in the same file, ensuring that some part is always inside out.
  • A hole that is not a hole, but an additional shape filled with background color will not render as a hole.
  • SVG text elements are not supported. To render text, you need to convert the text to "outlines" or "paths" before saving the SVG file.
  • SVG paths that include scientific notation cause d3-threeD to loop infinitely. Saving as "Optimized SVG" in Inkscape ensures that this format is not used.


This tool requires javascript support, and a browser that can handle a WebGL canvas, and the File API.



Tools Used

svg-to-stl makes use of a number of other open source projects:

You can’t perform that action at this time.