Skip to content

SVG vs STL, Compared on the Same Badge

Starting from a PNG or JPG of your design? Drop it here: it is traced into flat colors, then written as one STL per color, plus a 3MF that holds the same parts. The preview is free, with a watermark, and needs no signup.

Already have the SVG? The SVG to STL converter builds the files from it in your browser.

Secure checkout by StripeCancel anytime from your account

An SVG is a flat drawing: shapes and colors on a page of a given size, with no depth. An STL is a 3D model: the triangles that wrap a solid, with no color and no unit. Here is one badge saved both ways, then a 3D model turned back into a drawing.

  • The SVG of the badge: 253 bytes, three shapes, three colors, 100 mm wide
  • As STL: three files, one per color, 796 triangles in 40,052 bytes
  • The disc is one circle in the SVG and 129 straight edges in the STL
  • The other way, a 3D chess pawn becomes a flat outline of 581 bytes

By the VectoSolve design team, technical review by Robin Monteiro, founder and developer.

One badge, saved as SVG and as STL

The badge was drawn as an SVG: blue mountains and a red sun on a white disc, 100 mm across. The SVG to STL converter of the site turned it into STL files with its default settings, one file per color. Every file on this page can be downloaded and opened.

The SVG of the badge: blue mountains and a red sun on a white disc
The SVG, shown as it is
WhatSVGSTL
Filesmountain-badge.svg253 bytesmountain-badge-01-ffffff-jade-white.stl25,684 bytesmountain-badge-02-0a2989-blue.stl1,684 bytesmountain-badge-03-c12e1f-red.stl12,684 bytes
What the file holdsThree shapes on a flat page: two circles and a pathThe surface of three solid parts, as flat triangles
Size253 bytes, one file40,052 bytes, three files
Written asText, five linesBinary numbers, 50 bytes per triangle
DepthNone: x and y only2.6 mm: a 2 mm base, the colors 0.6 mm above it
The white discOne circle: a center and a radius of 50129 straight edges around, 512 triangles
ColorsA color code on each shapeNone: one file per color
UnitMillimeters, written on the first lineNone: the numbers are read as millimeters

Inside the SVG: five lines of text

Open the SVG in a text editor and the whole drawing fits on one screen. Each shape takes one line, and they are painted in the order of the file: the mountains and the sun go over the disc.

mountain-badge.svg, the whole file
LineIn the fileWhat it says
1<svg xmlns="http://www.w3.org/2000/svg" width="100mm" height="100mm" viewBox="0 0 100 100">The page: 100 by 100 mm, numbered from 0 to 100 each way, x to the right and y down. There is no third axis.
2<circle cx="50" cy="50" r="50" fill="#ffffff"/>The white disc: its center, its radius and its color. The program that opens the file draws a true circle, at any zoom.
3<path fill="#0a2989" d="M12 74L38 38L50 54L62 42L88 74Z"/>The blue mountains: five points joined by straight lines, M to start and Z to close.
4<circle cx="66" cy="28" r="8" fill="#c12e1f"/>The red sun, 16 mm across, near the top edge, since y counts down from the top.
5</svg>The end of the drawing.

253 bytes in all. The disc is not stored as points: a center and a radius are enough, and the curve is drawn when the file is opened.

Inside the STL: a list of triangles

Each color became its own binary STL. The white base is the largest, 512 triangles, read here from its first byte.

mountain-badge-01-ffffff-jade-white.stl, byte by byte
BytesWhat they holdIn this file
0 to 79Header: 80 bytes of plain textmountain-badge - #ffffff - Jade WhiteThe converter writes the name, the color code and the closest Bambu PLA Basic color here, then fills the rest with zeros.
80 to 83How many triangles follow512
84 to 95The first triangle: its normal, which points out of the solid0, 0, 1Straight up: this triangle is on the top of the base.
96 to 131Then its corners, three points in x, y and z(-49.731, 5.2203, 2), (-49.9331, 2.6119, 2), (-50, 0, 2)All three on the rim of the disc, 2 mm up.
132 to 133Two bytes the converter leaves at zero0
134 to 183The second triangle0, 0, -1, and the same three corners at z = 0The same spot on the underside, facing down.
184 to 25,683510 more triangles in the same layout, 50 bytes apiece

Nothing in these bytes says millimeters or badge, apart from the text of the header. Slicers take the numbers to be millimeters: from -50 to 50 is the 100 mm of the SVG.

A flat disc, 512 triangles

The base has 129 corners around its rim. Its top and its underside take 127 triangles each, two fewer than the corners, and the rim takes two per edge: 258. That makes 512 triangles for what the SVG writes in one line.

The three STL files of the badge
PartTrianglesHeight in the file
The white basemountain-badge-01-ffffff-jade-white.stl512z = 0 to 2 mm
The blue mountainsmountain-badge-02-0a2989-blue.stl32z = 2 to 2.6 mm
The red sunmountain-badge-03-c12e1f-red.stl252z = 2 to 2.6 mm

What the STL changes

Curves become straight edges

An STL can only hold flat triangles, so the converter cuts each curve into straight edges: 129 around the disc and 64 around the sun, the bigger circle getting more.

Every corner and every edge stays within 0.02 mm of the true circle. Zoom in on the STL and the edges stay straight: there is no curve left to redraw.

A third dimension appears

The SVG has no depth to give. The converter adds it: the outline of the whole badge becomes a white base 2 mm thick, and the mountains and the sun stand 0.6 mm on top of it, 2.6 mm in all. Those are its default settings, and both heights can be changed.

The STL also moves the origin to the middle of the badge and turns y upward, with z for the height: the sun, at x 66 and y 28 in the SVG, is centered at 16 and 22 in the STL. All three files use these same coordinates, so loaded together, the mountains and the sun land on the base where the drawing put them.

The other way: from a 3D model to a flat drawing

The STL to SVG converter of the site does the reverse. A solid cannot be unfolded onto a page, so it traces the outline of the model seen from one side, or a slice at one height.

A chess pawn, seen from the front

The front outline of the chess pawn, in black

A 3D pawn of 1,152 triangles, 28 by 28 by 46 mm, turned from a profile with 24 flat faces around its axis. Its front outline is one closed path of 49 corners, 28 mm across and 46 mm high. The roundness is gone: what is left is its silhouette.

The badge base, back to SVG

The top outline of the badge base: a black disc

The white base STL seen from the top gives one path of 129 corners, 1,873 bytes for a disc that took one line of the first SVG. The circle comes back as straight edges, in black, and 99.998 mm tall instead of 100: no corner sits exactly at the top or the bottom of the circle.

Both outlines came out of the STL to SVG converter, which also cuts slices at a chosen height and lays out stacks of layers on one sheet.

SVG or STL: which file you need

Use the SVG when

  • A cutting machine or a laser cuts it out of a flat sheet
  • It is printed flat, on paper, fabric or a sticker
  • You open it in a design or cutting program: Adobe Illustrator, Figma, Inkscape, Canva or Cricut Design Space
  • You still want to edit the shapes and the colors

Use the STL when

  • A 3D printer makes it: Bambu Studio, OrcaSlicer, PrusaSlicer, Cura and Creality Print all open STL
  • The object needs a thickness: a badge, a sign or a keychain
  • Each color prints on its own filament: one STL per color, loaded together

Bambu Studio can import an SVG directly, but it merges every color into one part on one filament. The SVG to STL converter keeps each color as its own part.

SVG and STL questions

What is the difference between SVG and STL?

An SVG is a two-dimensional vector drawing: shapes with colors on a page of a given size. An STL is a three-dimensional model: the triangles that wrap a solid, with no color and no unit. A cutter, a printer on paper or a browser uses the SVG; a slicer turns the STL into layers for a 3D printer.

Can I 3D print an SVG?

Not as it is: an SVG has no thickness. Turn it into an STL first, which gives each shape a height. The badge on this page got a 2 mm base and colors raised 0.6 mm, the default settings of the SVG to STL converter. Bambu Studio can import an SVG, but it merges every color into one part on one filament.

Can I convert an STL to SVG?

Yes, as an outline or a slice: the shape of the model seen from one side, or cut at one height. The chess pawn on this page gives a front outline of 28 by 46 mm, in 581 bytes. The depth does not come back, and neither do colors, which an STL never had.

Why is the STL so much bigger than the SVG?

The SVG describes the disc with three numbers, a center and a radius. The STL writes every triangle of the surface, 50 bytes each, and the disc alone takes 512 of them. The three STL files of the badge take 40,052 bytes, against 253 for the SVG.

Does an STL keep the colors of my SVG?

No. The format has nowhere to put a color. The converter splits the drawing into one STL per color, and in the slicer you assign a filament to each file. The color is kept only as text, in the file name and the header, such as "mountain-badge - #ffffff - Jade White".

What size does my SVG come out as STL?

The width you pick in the converter, 100 mm by default; the height follows the drawing. The SVG of the badge is 100 mm wide, and its STL files span 100 mm, from -50 to 50.

Why are the circles faceted in my STL?

Because an STL holds only flat triangles. The converter cuts each curve into straight edges, 129 around the disc of the badge and 64 around its sun, every one within 0.02 mm of the true circle.

Is SVG a 3D file format?

No. An SVG stores x and y only, even when a drawing is shaded to look 3D. A converter has to add the height before a 3D printer can use it.

I have a logo as a PNG or JPG. How do I get STL files?

Drop it into the converter on this page: it is traced into flat colors, then saved as one STL per color, plus a 3MF that holds the same parts. The preview is free, with a watermark, and needs no signup.

More: SVG to STL converter, STL to SVG converter, image to STL, image to multicolor 3MF, SVG for 3D printing, SVG for Bambu Lab and what is a vector file.

Current plans and prices: pricing.

From a logo to STL files for your printer

Drop a PNG or JPG of your logo: one STL per color comes out, plus a 3MF that holds the same parts. The preview is free, with a watermark, and needs no signup.

Make my STL files