The Xometry app works best with JavaScript enabled!
Our SolutionsIndustriesResourcesXometry EnterpriseHow Xometry WorksBecome a Supplier
Additive Manufacturing

3D Printing Service

Metal 3D Printing Service

Solutions For Every Industry
Resources3D Printing DesignOBJ to STL: How to Convert OBJ to STL Files
File conversion. Image credit: Shutterstock.com/AdresiaStock

OBJ to STL: How to Convert OBJ to STL Files

Learn about these two file formats and how to perform the conversion from OBJ to STL.

Xomety X
By Team Xometry
August 23, 2022
 8 min read
RECENT STORIES
What Is Digital Transformation and How Can Machine Shops Benefit From It?
February 1, 2024
 7 min read

OBJ is a very compact file structure that stores all of the shape, texture, and color information for a 3D object. It is useful for fast rendering of graphics and is accepted as an input format by higher-spec 3D print machines and slicers. It doesn’t include external factors such as lighting/shadow, but it has all the information needed to display a 3D object at any resolution required. One benefit is that high-resolution data doesn’t bloat the file size, unlike other formats.

STL (commonly interpreted as STereo Lithography, but likely originated as Standard Triangle Language or Standard Tessellation Language) is the “standard” file type used by the majority of 3D printers in the mid and low price ranges. It’s an old format that is clumsy in some ways. But, it is sufficient for communicating shape (without color or texture information). STL is also universally accepted and very reliable. STLs store the surface of an object as geometric data for a series of points. This generally results in triangular subsurfaces, which form a net that describes the external 3D shape. This gives no information about thickness, color, or texture. It’s not a “design” format but a simplified communication tool.

OBJ’s main advantage over STL is that it stores the color and texture data right there in the file, making it ideal for rendering complex and multicolored parts. Several software tools will do the job when you have an OBJ file and need to convert it to an STL format for your slicer software. Most are either free downloads or online tools, so this is not something you need to pay for. Some are easier to use and more intuitive than others.

This article will discuss the steps in OBJ to STL file conversion using Spin 3D, OBJ to STL file definition, their importance, and the converters to use.

1. Download Spin 3D Mesh Converter Software

Go to the Spin 3D download page and follow the freeware version link. Use the operating system you're using if you want the paid version.

2. Add OBJ Files to the Program

There are two methods to add files for conversion: 

  • Use the File Select button at the top left, the big green ➕ 
  • Drag and drop files from your folders into the Spin 3D workspace

3. Select an Output Folder

Choosing an output folder is not necessary, as the default is to save it in the same folder as the file you’re converting. If you want to save it somewhere else it’s simple, just click on the “Browse” button at the bottom right of the screen. Use Explorer to locate the folder you want converted files saved to.

4. Configure the Output Format

To configure the output format, there's a drop-down list on a button next to “Output Format” at the bottom left of the screen – select STL.

5. Convert OBJ to STL

Click on the “Convert” button at the bottom right of the screen and the software will do the rest. The STL file will be saved either in the same directory as the OBJ file uploaded or in the destination folder set.

What Is an OBJ File?

An OBJ file is a file format that represents 3D geometry. From a 3D print perspective, an OBJ file constructs the outward 3D net shape out of a series of flat polygons (mostly triangles) whose vertices (corners) are clearly defined in a simple and regular format. One point is defined through:

  1. v: A position in space (x-y-z and either w or r-g-b) where w is an optional value that defines the color number (0–1). It can also be a set of three values for RGB color.
  2. vt: Texture datum for the point (u-[v-w]), which acts like the definition of the paint applied to texture a triangle. This will only affect a 3D print if the texture has a roughness that is more pronounced than the minimum build resolution.
  3. vn: The vertex normals, which orientate the vertex.

The three points define a triangle, and many, many triangles make a 3D object. There are other properties, such as parameter space vertices, but these are more relevant to 3D rendering on screen and don’t affect 3D printing.

What Is an STL File?

An STL is an ASCII format file that originated with 3D Systems' development of 3D printers. It was used as a means of communicating the printing requirements to the machines they were developing. STL files use the same basic methodology for communication of 3D objects that OBJ uses – but at a lower level of detail. It contains no color or texture information and has a slightly more clunky file structure. Mesh information for the triangles to construct the 3D representation contains 3-point (x-y-z) information for each vector. Plus the “normal” information, defining which face of the resulting triangle is outward facing. Non-standard binary formats of STL have been developed. This adds methods of encompassing color data into the file – but these are not commonly used.

Why Convert OBJ Files to STL Files?

Converting OBJ files to STL files is only necessary for home machines and the freeware slicer sector of the market. Most high-end printers can accept OBJ format files. But this is unusual in hobbyist and lower-cost machines, which are only set up to use the STL format.

How Long Does It Take To Convert an OBJ file to STL?

The time to convert an OBJ file and STL depends on the complexity of the file. Generally, it will only take a few seconds to complete a conversion. For most files, the setup of directories and uploading the files into software such as Spin 3D takes longer than the actual conversion. 

What Are the Best STL Converters?

The best STL converters are:

  1. Meshconverter
  2. Spin 3D
  3. CAD Exchanger

STL converters fall into three broad categories:

  1. Online tools that are simple and reliable to use.
  2. Downloadable, installed tools that don’t rely on connectivity and are harder to disrupt.
  3. CAD packages that can handle many file formats and must therefore be able to convert between them.

What Are the Best OBJ to STL File Converters?

The best OBJ to STL file converters are:

  1. Spin 3D: It’s a minimalist tool that offers a sufficient range of conversions. It has the simplest user interface and it’s free for hobby/home users.
  2. Aspose: An online tool that does a great job of the widest range of conversions. It is remarkably easy to use and it’s also free.
  3. FreeCAD: While more complex to use, it offers wide capabilities that some users will appreciate. It allows the development and alteration of models as well as conversions. And as its name suggests, it’s also free.

Which File Types Can Be Converted to STL?

A definitive list of 3D object file types that can be converted to STL format for 3D printing is quite extensive. The explosion of 3D rendering, gaming, character creation, product design, and product realization tools has been accelerating for two decades, and the list of file types that are open to conversion is many pages deep. If the file type is not supported by a certain converter, look for an update or another tool. STL is an old, simple, and tested format that is universal to 3D printing. Most file types contain much more information than STL, so this type of “downgrade” conversion is not challenging.

What Are the Differences Between OBJ and STL formats?

Table 1 shows the differences between OBJ and STL formats:

Table 1. Comparison of OBJ vs. STL
PropertySTLOBJ
Property

Vector x-y-z

STL

✔️

OBJ

✔️

Property

Color attributes

STL

❌ in common ASCII format, can be present in digital files

OBJ

✔️

Property

Texture attributes

STL

OBJ

✔️

Property

Parameter space vertices

STL

OBJ

✔️

Property

Line elements

STL

OBJ

✔️

Property

NURBS support

STL

OBJ

✔️

Property

Relative AND absolute indices supported

STL

OBJ

✔️

At its core, STL was created as a way of communicating shape information for 3D objects. It contains no information about color, texture, material properties, or other attributes. This makes it a very simple and robust format. OBJ, on the other hand, is a more complete and detailed definition of a 3D object. It allows detailed virtual rendering to make it colored, textured, and “real” looking. This requires a greater depth of properties to be integrated into the file structure, making the OBJ format considerably more capable than STL.

Are STL Files Print-Ready?

Sometimes no, STL files are not print-ready. There is a range of faults that can occur in the creation of the STL file, including gaps in a mesh of triangles, bad edges, flipped normals, noise shells, overlapping triangles, and intersecting vectors.


Summary

This article covered what OBJ and STL file formats are and how to convert OBJ files to STL format. To learn more about OBJ to STL file conversion tools, contact a Xometry representative.

Xometry provides a wide range of manufacturing capabilities, including 3D printing and other value-added services for all of your prototyping and production needs. Visit our website to learn more or to request a free, no-obligation quote.


Disclaimer

The content appearing on this webpage is for informational purposes only. Xometry makes no representation or warranty of any kind, be it expressed or implied, as to the accuracy, completeness, or validity of the information. Any performance parameters, geometric tolerances, specific design features, quality and types of materials, or processes should not be inferred to represent what will be delivered by third-party suppliers or manufacturers through Xometry’s network. Buyers seeking quotes for parts are responsible for defining the specific requirements for those parts. Please refer to our terms and conditions for more information.

Xomety X
Team Xometry
This article was written by various Xometry contributors. Xometry is a leading resource on manufacturing with CNC machining, sheet metal fabrication, 3D printing, injection molding, urethane casting, and more.