Free · no signup · your file stays on this device
SVG / DXF Tools

SVG to STL: extruded 3D models in millimetres

Turn a closed SVG outline into a solid mesh you can open in a 3D printing slicer. Choose the XY width, the thickness along Z and an optional baseplate; holes stay holes and the islands inside them come back as material. The file never leaves this browser tab.

Input SVG

Drop an SVG here

One SVG file up to 10 MiB; parsed locally, never uploaded.

100 x 70 mm calibration drawing: one outline, one square hole, and an island inside that hole.

No file chosen yet

Extrusion parameters

Artwork height: —

Extruded along Z, 0.2 to 500 mm.

Chord height, 0.002 to 0.5 mm.

3D wireframe preview

Choose an SVG to start.

Drag to rotate; the arrow buttons rotate too. The preview is a wireframe only, so the checks on the right decide.

Choose an SVG to start.

Result and checks

Choose an SVG to start.

Independent re-parse

  • Binary STL bytesPending

Not checked: self-intersection, non-manifold repair, slicer supports and printer tolerance.

What this tool produces

One Binary STL file named extruded-model.stl: a single closed triangle mesh, every value in millimetres, with the artwork outline extruded along +Z. Holes are cut through the model, and a shape drawn inside a hole becomes solid material again, because nesting is decided by even-odd containment rather than by colour.

  • An 80-byte ASCII header, a little-endian uint32 triangle count, then 50 bytes per triangle holding the normal and three vertices as float32.
  • Top faces at +Z, bottom faces at -Z, and side walls whose normals point away from the material, so the mesh is closed and consistently wound.
  • The file is parsed back from its own bytes before the download unlocks: length, count, finite values, unit normals, bounds and enclosed volume are all rechecked.

Accepted and refused SVG content

The reader is a whitelist, not a renderer. Geometry it understands becomes material; everything else either has no effect on the model or blocks the export outright, and the panel lists which of the two happened.

Becomes geometry

  • rect, including rounded corners from rx and ry, which are discretized
  • circle
  • ellipse
  • polygon, and path with M/L/H/V/Z closed by Z or by coincident endpoints
  • C/S/Q/T Bezier curves, flattened to the chord tolerance
  • g groups carrying matrix, translate, scale or rotate transforms

Blocks the export

  • script, foreignObject, image, use and symbol
  • text and style elements
  • filter, mask and clipPath
  • on* handlers, href or xlink:href, and any url(...) or javascript: value
  • open subpaths, line segments, and polyline without a closure
  • any stroke wider than zero, plus A (arc) path commands

A polyline is open by definition, so it is refused too: close it into a polygon first. Nothing is sealed for you, which means an outline that does not end where it starts is reported instead of being guessed into a wall.

title, desc and metadata blocks are read for refused content and then ignored. fill, stroke and stroke-width are inherited from svg and g ancestors, so an icon that declares its paint once on the root element is refused as a stroked drawing instead of being extruded as a solid block.

Curves are approximated, and the tolerance is stated

Every curve is replaced by straight segments that stay within a chord height tolerance, 0.05 mm by default. A circle therefore becomes a polygon with just enough sides to hold that tolerance at the size you export, not a fixed 48-step ring.

The result panel reports the tolerance actually used. Lower it for a smoother surface and a larger mesh; raise it for a coarser model that slices faster. Curvature is never recovered after export: the STL holds triangles only.

Parameters and what they change

The width is the lock: the artwork aspect ratio sets the height, so a 100 x 70 mm drawing scaled to 150 mm becomes 150 x 105 mm. Thickness and baseplate are independent of that ratio.

Target width (XY)
Artwork width in millimetres, 1 to 100000. The height follows the SVG bounding box.
Artwork height
Derived from the width and the source aspect ratio, shown for reference only.
Extrusion thickness (Z)
0.2 to 500 mm. This is the model height above the plate, not the artwork Y size.
Baseplate
A slab under the model that keeps thin parts together. Unchecked means off, and the model then sits directly on z=0.
Baseplate margin
0 to 50 mm of plate around the artwork on all four sides, which widens the bounding box by twice the margin.
Curve tolerance
Chord height in millimetres, 0.002 to 0.5. It decides how many straight segments replace each curve.

Limits and what is not checked

One SVG file up to 10 MiB, at most 2000 closed rings, 8000 points per ring and 200000 triangles. The triangle ceiling is enforced on an upper-bound estimate before any triangulation starts, so a dense drawing is refused quickly instead of freezing the tab.

The baseplate touches the model at z=0. The two solids share that plane rather than being fused into one manifold, so confirm your slicer accepts a coplanar joint before printing.

Not checked by this tool

  • Self-intersecting outlines: crossing edges are triangulated as drawn, and are not repaired or raised beyond the triangle checks.
  • Non-manifold repair: the mesh is closed when the input rings are clean, but no healing, stitching or hole filling is attempted.
  • Slicer settings: supports, overhangs, infill, layer height and bed adhesion are outside this page.
  • Printer tolerance: fit, wall thickness and minimum feature size are not validated, and no slicer or printer compatibility is claimed.

Where to go next

Extrusion needs closed outlines; if you only need a 2D cut path, the same drawing becomes DXF or SVG instead.

FAQ

Why does the export refuse my SVG?

The reader only accepts filled, closed outlines. A stroke, an open subpath, a line segment, a text element, a script, an image, a filter, a mask, a clip path or an external reference each block the export, and the panel names the element or command that caused it. Convert strokes to filled paths and close every contour first.

How do holes and islands survive the extrusion?

Each closed ring is tested against the others with an even-odd containment test, so a ring inside a ring becomes a hole and a ring inside that hole becomes material again. Winding is normalized afterwards: outlines counter-clockwise, holes clockwise, which is what makes every side wall face outwards.

Is the STL in millimetres, and how precise is it?

Yes: one STL unit is one millimetre, and the model keeps full precision until the float32 write. A 100 mm model resolves about 0.000008 mm per step, far inside the 0.001 mm bounding-box check applied when the file is re-parsed.

What does the baseplate add to the file?

A rectangular slab from minus the baseplate thickness up to z=0, extended by the margin on all four sides. It is a second solid sharing the z=0 plane with the model, so the bounding box grows by twice the margin in X and Y, and by the slab thickness in Z.