Skip to content
3DToolBench

Convert SVG to STL

An SVG is a flat drawing. An STL is a solid. This tool gives your outlines a thickness and turns them into something a 3D printer can make. You choose how thick, you see the result before you download it, and the file never leaves your computer.

Drag a 3D file here, or.

This page is set up for SVG files. Other formats we can read work here too.

The file is read on your own computer. It is never uploaded.

Add a file to switch this on.

Your file is read by your own browser and never sent to a server. There is no upload, no account and no copy of your model anywhere but on your computer.

Only a closed shape can be given a thickness

This is the one rule that decides whether your file will work. A shape has to be a complete loop before it encloses anything, and only something that encloses an area can be pushed out into a solid. A drawn line has no width in three dimensions. Neither does an arc, a sketch stroke, or an outline whose two ends stop a hair apart.

So closed paths become solid shapes, and open ones are left out. If any are left out you are told how many, right above the settings, before you download anything. If your whole drawing is open paths you get a message saying so rather than an empty file.

The fix is the same in every program. In Inkscape, select everything and use Path → Union (Ctrl+Shift+Plus) or close the paths with Ctrl+Shift+J. In Illustrator, Object → Path → Join. If you traced a bitmap, the trace usually produced closed paths already.

Holes stay holes

The middle of a letter O, the bore of a washer, the windows in a stencil: these are all shapes drawn inside other shapes, and a converter that fills them in has ruined the part. This one works out which outlines sit inside which, across the whole drawing at once, and turns the inner ones into holes.

It counts levels rather than trusting the file. A shape inside a hole becomes solid again — the dot inside a letter i, an island in the middle of a lake. That is what your eye expects, and it is what you get.

It also does not matter how the drawing was built. A letter O drawn as one path with two loops and a washer drawn as two separate circles both come out with a hole in the middle, because the nesting is what decides, not which element each ring belongs to.

How big it comes out

An SVG usually states its real size in its header — width="100mm" together with a viewBox — and when it does, that is the size you get. A 100 mm drawing becomes a 100 mm part. Most files out of Inkscape, Illustrator and Affinity Designer are like this.

Some are not. A file with no stated size is read at 96 pixels to the inch, which is the size a web browser would draw it, and a note appears above the settings saying so. Use the scale box to fix it, and watch the measurements beside the 3D view until they say what you wanted.

The thickness is separate and is always in millimetres. Three is a good starting point: thick enough for a keyring or a sign to survive being handled, thin enough to print in under an hour.

Text has to become outlines first

A <text> element in an SVG is not a shape. It is an instruction to draw some letters in a named font, and the font is on the machine that made the file, not in the file. There is nothing there to extrude.

Convert the text to paths before exporting: Path → Object to Path in Inkscape, Type → Create Outlines in Illustrator. The letters then become real outlines and convert like anything else. If you drop a file with live text in it, you are told that it was skipped rather than left to wonder where the words went.

What survives, and what does not

Kept in the STL file

  • Every closed outline, at the size the drawing states
  • Holes, worked out from which shapes sit inside which
  • Separate shapes as separate objects, so you can convert one of them
  • Curves, flattened finely enough that the edge looks smooth at any size

Lost on the way

  • Open paths and single lines — they enclose no area to thicken
  • Stroke width: an SVG stroke is a drawing instruction, not an outline
  • Colours and gradients — STL stores none
  • Live text, unless you convert it to paths before exporting

How to convert SVG to STL

  1. Prepare the drawing before you export it

    Convert text to paths, expand any strokes into outlines, and union overlapping shapes. These three things account for almost every SVG that converts to an empty or broken model.

  2. Drop the .svg file in

    The extruded result appears straight away. A note above the settings tells you if any open paths were skipped and how many.

  3. Check the size the drawing declared

    If the file states a real width, that is what you get. If the note says it does not, the drawing was read at 96 pixels to the inch and the scale box is how you fix it.

  4. Set the thickness in millimetres

    Two to four for a sign or keyring, one for a stencil, ten to fifteen for a cookie cutter. The height figure beside the 3D view is what will be written.

  5. Download the binary STL

    Holes, nesting and separate shapes are all worked out already. What you see in the 3D view is exactly what goes into the file.

SVG and STL compared

SVG and STL compared, row by row
PropertySVG.svgSTL.stl
File contentsXML. A text description of shapes, readable and editable by hand.Binary or plain text. Binary is an 80-byte header, a triangle count, then 50 bytes per triangle.
GeometryFlat paths: lines, arcs, and cubic and quadratic Bézier curves.Triangles only. Curves are approximated when the file is made, and cannot be recovered.
UnitsReal units are allowed — mm, cm, in — but most files use bare user units.None. The file stores bare numbers, and every reader has to guess what they mean.
Colour and textureFills, strokes, gradients and patterns, none of which describe a solid.None. There is no place in the format for a colour, a material or a texture.
Separate objectsGroups and layers, with ids and names on both.One body. Several parts written into one STL become one undivided lump of triangles.
Published byThe W3C, 1999. Version 1.1 is what tools write; SVG 2 is still arriving.3D Systems, 1987, for the first stereolithography machines.
Written byIllustrator, Inkscape, Affinity Designer, Figma and every drawing program.Every CAD program and every slicer, as the common denominator.

Questions

How thick should I make it?
For a sign, a stencil or a keyring, 2 to 4 mm. For a cookie cutter, 10 to 15 mm with the wall itself only 1 mm wide. For a laser-cut part you are modelling before cutting, match the thickness of your material.
My part came out the wrong size.
Check the note above the settings. If it says the drawing does not state a real size, it was read at 96 pixels to the inch. Type a percentage into the scale box and watch the width and depth shown beside the 3D view until they match what you want.
Some of my drawing is missing.
It was almost certainly an open path. Look at the note above the settings — it says how many were left out. Close those outlines in your drawing program and convert again.
Can I round the edges?
Yes. The rounded edge box adds a bevel to the top and bottom faces. Keep it small compared with the thinnest part of your drawing, or the bevel will eat through the middle of a narrow section.
Is my file uploaded anywhere?
No. The drawing is read and the STL is written by your own browser. Nothing is sent to a server, and there is no account and no copy of your work anywhere but on your computer.
Can I extrude only part of the drawing?
Yes. Each closed shape is listed under the 3D view and you can switch any of them off. That is the way to get one badge out of a sheet of twenty without editing the SVG.

Having it printed

If the part is larger than your bed, needs a material your printer cannot handle, or you do not have a printer, these will print it and post it to you. Work out what it would cost you first — the cost calculator on this site gives you a figure to compare against.

These are ordinary links, not paid referrals — we earn nothing if you use them. The converter above is the same whether you do or not.

Where to go next