Back to blog

SVG to STL - how to turn a logo into a 3D print from SVG, PNG or JPG

Published: Updated: 7 min read
SVG to STL - how to turn a logo into a 3D print from SVG, PNG or JPG

A company logo on a sign, an icon on a keychain, a club crest or a graphic to stick on the wall - it all starts with a 2D file, but the printer needs a solid. Converting SVG to STL is one click in theory; in practice the result depends on how you prepare the file.

Our SVG to STL converter extrudes the graphic, adds a base plate and a hanging hole, and saves the SVG colours as separate parts in a 3MF. It runs in your browser and the file never goes to a server. Below we show how to prepare a logo, which dimensions to set and how to print it in several colours.

SVG to STLFree toolSVG to STLLogos and graphics as 3D models, also multicolour

SVG or PNG - what to upload

SVG is vector graphics: curves instead of pixels. It gives the cleanest edges at any scale and keeps the colours, so always start with it if you have one. A company logo almost always exists as SVG, AI, EPS or PDF - ask your designer or the print shop that did your business cards.

PNG and JPG work too, so the tool doubles as an image to STL converter. The picture is downscaled to about 400 px on the longest side, thresholded and traced, and the edges are smoothed. A black logo on a white background or a PNG with transparency works best - with transparency the generator handles both dark and white logos. A picture always gives one colour; move the threshold slider (5-95%, 50% by default) if thin details are missing, and turn on inversion for a light graphic on a dark background. Photos and shaded artwork give poor results.

How to prepare an SVG in Inkscape

The converter only extrudes filled shapes. Most problems with SVG files come from text, thin lines and backgrounds, so it's worth spending two minutes in the free Inkscape before exporting:

  • Convert text to curves: Path > Object to Path (Shift+Ctrl+C). A <text> element stores only characters and a font name, not the shape of the letters, so without this the text disappears. In Illustrator it's Type > Create Outlines.
  • Turn unfilled lines into shapes: Path > Stroke to Path. The generator converts strokes into shapes of their width on its own, but doing it yourself gives you full control.
  • Redraw bitmaps: Path > Trace Bitmap. Raster images embedded in an SVG are skipped, and gradients are replaced with grey.
  • Delete the white background or untick its colour in the converter - you'll get an empty space there instead of a flat slab.
  • After scaling to the target width, the thinnest details should be at least 0.8-1 mm wide. The slicer may drop anything narrower.

Dimensions, base plate and keychain hole

You can set the graphic width from 10 to 300 mm (80 mm by default); the height follows proportionally. The extrusion height is 0.4-20 mm, 3 mm by default. For a keychain or a logo on a base, 1-3 mm is enough; for standalone letters to glue on, use 3-5 mm. With a 0.2 mm layer height, pick multiples of 0.2 mm.

The base plate can be rectangular, rounded (the default), circular or follow the outline - a plate offset from the shape of the logo by a set margin. The margin goes from 0 to 20 mm (4 mm by default) and the base thickness from 0.6 to 10 mm (2 mm by default). An outline base looks great with irregularly shaped logos and with letters that would otherwise fall apart into separate pieces. For flat signs with text and a frame, our 3D sign generator is a better fit.

The hole needs a base. It can sit in a tab above the graphic or in a corner (with a rectangular, rounded or circular base). The diameter is 2-10 mm, 4 mm by default, which fits a key ring; for a carabiner or a lanyard use 5-6 mm. The generator keeps 1 mm of the graphic clear around the hole so the wall isn't too thin.

For a keychain, use a 2 mm base and 1-2 mm of graphic - 3-4 mm in total is stiff and light. If you want a keychain with just text, read our article on text to STL and colour keychains in PrusaSlicer.

Need a print like this?

Send a model or describe the part - you'll usually get a free quote within 24 hours.

Request a quote

A multicolour logo: AMS or a filament change

In "Colours from SVG" mode each colour in the file becomes a separate part in the 3MF. Shapes of the same colour are merged, and overlapping shapes of different colours are trimmed the way the SVG shows them - the upper one covers the lower one. After loading the 3MF into Bambu Studio, OrcaSlicer or PrusaSlicer, you assign each part a filament from the AMS or MMU. The "Steps of 0.6 mm" option raises each further colour by 0.6 mm for a layered relief effect.

Without an AMS, the simplest option is a 2-colour print: the base in one colour, the graphic in another. Under the preview the generator shows the change height, equal to the base thickness, for example 2 mm. Add a pause or M600 at that height in the slicer and load the second filament when the printer stops. If several colours sit next to each other on the same layers, you can't do without an AMS / MMU - in that case switch to "Single colour".

Print settings and mirroring

  • Flat, base on the bed, no supports.
  • 0.2 mm layers, or 0.12-0.16 mm for fine details.
  • PLA for decorations and indoor signs, PETG or ASA outdoors and in the car. If you're not sure, check the material comparison.
  • The "Mirror image" option flips the graphic - handy for stamps that print a reversed pattern. Ready-made text stamps are easier in our stamp generator.
  • If you get a warning about more than 200,000 triangles, simplify the graphic: fewer nodes in Inkscape (Path > Simplify) or a smaller picture.

Logos in series from BnB3D

Need a few dozen logo keychains for a trade fair or signs in your company colours? We print logos in several colours, in series too. Send the model from the converter to the price calculator and you'll see the price straight away. If you only have your logo as a PDF or AI file, get in touch - we'll help you prepare it.

Frequently asked questions

How do I convert SVG to STL for free?+

Upload the SVG to the converter, set the width (e.g. 80 mm) and the extrusion height (e.g. 3 mm), then download the STL or 3MF. Everything happens in your browser, with no software to install.

Why doesn't the text from my SVG show up in the model?+

A <text> element doesn't contain the shape of the letters. Convert the text to curves before exporting: in Inkscape Path > Object to Path, in Illustrator Create Outlines.

Can I get a multicolour logo from a PNG?+

No, a raster image gives one graphic colour plus an optional base. Only an SVG with fills gives you colours as separate parts.

How do I print a 2-colour logo without an AMS?+

Add a base and download the STL. In the slicer, insert a pause or M600 at the height shown under the preview, equal to the base thickness, and swap the filament.

Recommended gear for this topic

Affiliate links: if you buy something I get a small commission, and you pay the same. As an Amazon Associate I earn from qualifying purchases.

Author

Bartosz Budny, founder of BnB3D

He has worked in 3D printing for more than 10 years: servicing, building and running printers, and has designed in Fusion 360 for more than 5 years. He writes about what he prints and tests on his own printers in Myszków, Poland (over 4,000 print hours on his MakerWorld models alone).

Got a project to print?

Send a model or a description - you'll usually get a free quote within 24 hours.

Request a quote