Free tools / SVG → STL

SVG to STL.

Turn an SVG logo, icon or drawing into a 3D model for printing. Set the width in millimetres, give each colour its own height and add a base, then download STL, 3MF or GLB.

Loading the SVG to STL converter…

Specification

What this tool does

Reads the shapes, strokes, colours and fill rules of the SVG, works out which colour shows at every point, and raises each colour to its own height as one closed solid. Holes such as the inside of an O stay open. Text, pictures and gradients cannot become geometry, so the tool names them instead of guessing.

Inputs
SVG file with paths, rectangles, circles, ellipses, lines, polylines and polygons
Outputs
Binary STL in millimetres, Z up, one closed mesh
3MF in millimetres with one part per colour
GLB in metres, standing up and facing the front
Controls
Width 5 to 400 mm (height follows)
Height per colour 0.2 to 20 mm, or leave a colour out
Base: none, follows the shape, or rectangle
Mirror for stamps
Limits
SVG files up to 32 MiB and 100,000 elements
Text must be converted to outlines first; pictures are skipped
Gradients become one colour; clip paths, masks and filters are ignored

Privacy: Files are parsed, previewed and written back inside your browser. Nothing is uploaded, no account is needed and no generation credits are spent.

Maintained by Bake3D · Updated

Turn a logo or icon into a 3D print

An SVG file describes a picture with shapes instead of pixels. That makes it a good start for a 3D print: every edge is sharp at any size. This tool reads those shapes and raises them into a solid you can print. Each colour in the drawing can get its own height, so a two-colour logo becomes a model with two levels.

The file is read in your browser and is never uploaded. You do not need an account.

Use it for logos, badges, signs, stencils, cookie cutter outlines, coasters and stamps. For a photo, the image to STL tool turns brightness into a raised relief, and the lithophane maker makes a picture that shows when light shines through.

Convert an SVG in five steps

  1. Drop your SVG file on the box, or click Try a sample badge to see how it works.
  2. Set the width in millimetres. The height follows, so the drawing keeps its shape. If the file states a real size, a link lets you use it.
  3. Look at the colour list. Give each colour a height, or turn a colour off.
  4. Add a base if the shapes need to hold together, for example loose letters.
  5. Check the size and the check line, then download STL, 3MF or GLB.

How colours become layers

The tool finds which colour you see at every point of the drawing, the same way a browser paints it: shapes later in the file cover earlier ones. Each colour then rises to its own height. By default, colours that are painted later sit higher, so you can see the layers in the preview. Click Same height for a flat model.

You can turn a colour off. Where that colour sits on top of another shape, it leaves a gap. This is useful for white details on a dark logo: turn white off and the details become holes. A rectangle that fills the whole drawing in the first colour is often just a page background, so the tool starts with it turned off.

A base goes under everything. “Follows the shape” traces the outline of the drawing with a margin. “Rectangle” makes a plaque. With a base, a colour that is turned off leaves a gap only down to the base, not through it.

Mirror flips the drawing left to right. Use it for a stamp, so the print reads the right way round.

Holes, fill rules and strokes

Letters such as O, A and B have holes. SVG marks holes in one of two ways, called fill rules. With the “nonzero” rule, a hole is a shape drawn the other way round. With the “evenodd” rule, every second outline is a hole. The SVG standard defines both, and this tool follows both. The sample badge has an A that uses one rule and an O that uses the other, and both keep their holes.

Strokes are outlines drawn with a pen width, like the ring around the sample badge. The tool turns each stroke into a filled shape with the same width, ends and corners. Icons drawn only with strokes work too.

What the tool cannot convert

Some parts of an SVG are not shapes. The tool lists each one it finds, so nothing is lost without a warning.

  • Text. Letters typed in a design program are not outlines yet. Convert them first: in Illustrator, use Create Outlines, and in Inkscape, use Path, then Object to Path. Inkscape’s manual says to do this as the last step, because it cannot be undone. Or make your text right here with the 3D text generator.
  • Pictures. Photos placed inside the SVG are skipped.
  • Gradients and patterns. They print as one solid colour, taken from the first colour of the gradient.
  • Clip paths, masks and filters. They are ignored, so parts they would hide will show.
  • See-through shapes. Shapes with transparency print as solid.

Size and units

The width you set is the width of the shapes that print. The empty page around them does not count, and neither do colours you turn off. Many SVG files also state their own size, such as 60 mm wide. When they do, the tool shows it and offers to use it. SVG files in pixels use 96 pixels per inch, as the CSS standard defines.

Keep thin parts at least 0.4 mm wide, the width of the most common nozzle (Prusa explains nozzle sizes). Fine lines in a small logo may need a larger width to print.

The 3MF download keeps each colour, and the base, as a separate part of one object. In your slicer, give each part its own filament. Prusa shows where to do this in its guide to assigning extruders. With one nozzle, you can add a colour change at the height where each new colour starts instead.

The STL download is one closed mesh with all colours joined, for single-colour prints. The GLB keeps the colours of the SVG for web pages and game engines. Read our guide to 3MF, STL and OBJ to compare the formats.

How we checked it

Every model is one closed solid: every edge is shared by exactly two triangles and every face points out. The check line under the preview shows this, using the same edge count as our STL viewer and checker.

  • Automated tests cover both fill rules, holes inside holes, shapes painted over other shapes, turned-off colours, strokes with round and square ends, and pixel art, where squares touch only at their corners. Each model must come out closed, with its exact area and volume.
  • Blender 4.4. We exported the sample badge at 56 mm wide, with the dark colour at 1.6 mm and the orange at 2.4 mm. The STL opened in Blender at 56.00 × 56.00 × 2.40 mm, with 6,400 triangles, no open edges and a volume of 4.65 cm³. With a 1.2 mm base added, it measured 62.00 × 62.00 × 3.60 mm and stayed closed.
  • Three 3MF readers. The 3MF files open in our own 3MF reader, in the three.js 3MF loader and in a separate Python reader inside Blender, with one part per colour and the same size.

A closed model is a good start, but it does not promise a good print. Check thin parts and the first layer in your slicer. For other ways to make printable files, read how to make an STL file or see what Bake3D does for 3D printing.

Common questions

Why is my model empty or missing a part?

The part is probably text, a picture or a shape with no fill and no stroke. The tool lists what it skipped above the colour list. Convert text to outlines in your design program and load the file again.

Why did the inside of my letter fill in?

The hole was drawn the same way round as the letter, and the file asks for the “nonzero” fill rule, so the hole counts as filled. A browser would show it filled too. Reverse the inner path in your design program, or set the fill rule to “evenodd”, then load the file again.

Can I convert a PNG or JPG?

Not with this tool, because a PNG or JPG has pixels, not shapes. Use the image to STL tool for a raised picture or the lithophane maker for a backlit photo. You can also trace the picture into an SVG in a vector program first. For a full 3D model of an object in a photo, with a back and sides, use image to 3D.

What size will my model be?

The width you set, and a height that keeps the drawing’s shape. The size line shows all three sizes in millimetres. The tool measures the shapes themselves, so empty space around the drawing does not count.

Do I need a base?

Only if the shapes do not touch, or if you want a plaque. Without a base, each separate shape prints as its own piece. The check line tells you how many pieces the model has.

Is my SVG uploaded?

No. The file is read and turned into a model inside your browser. Nothing is sent to a server.

Other free tools