What Is a Slicer for 3D Printing and How Does It Work?

A slicer is software that converts a 3D digital model into the step-by-step instructions a 3D printer needs to build an object, layer by layer. Without it, your printer has no idea what to do with a design file. The slicer takes your model, divides it into hundreds or thousands of thin horizontal layers, and generates a set of commands called G-code that control every movement the printer makes.

How a Slicer Fits Into the Printing Workflow

The path from idea to physical object has three main stages. First, you design (or download) a 3D model using CAD software like Fusion 360, SolidWorks, or a free tool like TinkerCAD. That model gets exported as a file, most commonly in STL format. Second, you open that file in a slicer, adjust your settings, and generate the G-code. Third, you send the G-code to your printer, which follows those instructions to create the part.

The slicer is the critical middle step. Your 3D model is just geometry: a shell of triangles describing a shape. It contains no information about how hot the nozzle should be, how fast the printer should move, or how solid the inside of the object needs to be. The slicer adds all of that, translating shape into a precise manufacturing plan.

What G-code Actually Controls

G-code is a simple programming language made up of short commands, each telling the printer to do one specific thing. About 95% of a typical G-code file consists of a single command type: linear movement instructions that tell the print head where to go, how fast to travel, and how much plastic to push through the nozzle along the way. Each line specifies coordinates (X, Y, Z positions) and an extrusion value that controls how much filament feeds into the hot end.

Other commands handle temperature. Before printing starts, the G-code tells the printer to heat the nozzle and bed to specific temperatures and wait until they’re reached. Throughout the print, additional commands control fan speed, retraction (pulling filament back to prevent oozing), and pauses between layers. A single print can contain tens of thousands of these individual instructions, all generated automatically by the slicer in seconds.

Key Settings You Control in a Slicer

When you load a model into a slicer, you’re presented with dozens of adjustable settings. A few matter more than the rest.

  • Layer height is the single biggest factor affecting print quality and speed. A typical starting point is 0.2mm (50% of a standard 0.4mm nozzle). Thinner layers like 0.12mm produce smoother surfaces but take significantly longer. Thicker layers up to 0.28 or 0.32mm print faster but show more visible “staircase” lines on curved surfaces.
  • Infill density determines how solid the inside of your print is. Most objects don’t need to be fully solid. Decorative pieces print fine at 5 to 10% infill, general-purpose parts work well at 10 to 20%, and structural parts that bear loads typically need 40 to 60%.
  • Wall thickness (or wall count) sets how many solid outer layers surround the infill pattern. Three to five walls produce strong prints. More walls add strength but increase print time.
  • Print speed controls how fast the print head moves. Faster speeds reduce print time but can reduce quality, especially on fine details or overhangs.

Support Structures and Overhangs

3D printers build objects from the bottom up, and molten plastic can’t be extruded into thin air. When a model has overhangs, bridges, or features that jut out at steep angles, the slicer can generate temporary support structures underneath them. These supports print alongside the object and get removed afterward, either by snapping them off or dissolving them in water if you’re using a soluble support material.

Traditional supports use a grid or lattice pattern. They work reliably but can leave rough marks on the surface where they attach and sometimes waste material. Tree supports are a newer alternative: they grow upward like branching trunks, touching the model only at the tips. Tree supports use less filament and are easier to remove. In one comparison, tree supports cut print time by over three hours and used about 75 fewer grams of filament compared to standard grid supports on the same model.

Filament Profiles and Material Settings

Different plastics need different temperatures, cooling strategies, and speeds. PLA prints well at nozzle temperatures of 190 to 220°C with a bed temperature around 50 to 60°C and the cooling fan running at full blast after the first layer. ABS needs higher temperatures and minimal fan use to prevent cracking. PETG, TPU, and specialty materials each have their own requirements.

Rather than forcing you to memorize all of this, slicers come with pre-configured filament profiles. You select your material from a dropdown, and the slicer automatically applies the correct temperatures, fan speeds, retraction distances, and flow rates. You can create custom profiles too, useful when you’re dialing in a new brand of filament that behaves slightly differently from the defaults.

File Formats Slicers Accept

STL is the universal standard. Every slicer and every printer supports it. STL files describe only the surface geometry of a model using triangles, with no color, texture, or material information included. If you’re starting out, STL is the simplest choice.

OBJ files carry more detail, including color and texture data, making them popular for artistic or scanned models. Not all slicers fully support OBJ textures, so it’s worth checking compatibility. 3MF is a newer format designed to replace STL. It can store geometry, color, multiple materials, and even slicer settings like support placement and infill density in a single compact file. Most modern slicers, including PrusaSlicer and Cura, fully support 3MF.

The slicer’s output is always G-code (or a manufacturer-specific variant of it). That G-code file is what you transfer to your printer, whether by USB, SD card, or Wi-Fi.

Advanced Features Worth Knowing About

Once you’re comfortable with the basics, slicers offer features that can meaningfully improve your prints.

Variable layer height lets the slicer use thinner layers on curved or sloped surfaces and thicker layers on flat or vertical sections of the same print. This gives you smooth surfaces where they matter without the time penalty of printing the entire object at a fine layer height. Most slicers let you set this automatically with a detail-versus-speed slider, or manually paint which zones get thinner layers.

Ironing passes the hot nozzle back over the top surface of a print without extruding much material, melting and smoothing the surface for a near-glossy finish. Adaptive infill varies the density of internal fill based on the geometry above it, using denser infill under overhangs and sparser infill in areas that don’t need the extra support.

Popular Slicer Software

Most slicers are free, and the choice often comes down to which printer you own. Bambu Studio is the default for Bambu Lab printers, with tightly integrated profiles and network printing built in. PrusaSlicer is the go-to for Prusa owners and works well with many other printers too. Cura, originally developed for Ultimaker, has the broadest printer compatibility and is a common choice for open-source or generic printers.

OrcaSlicer has gained popularity as a fork of PrusaSlicer and Bambu Studio, combining features from both. Because PrusaSlicer, Bambu Studio, and OrcaSlicer share the same codebase, their print quality is very similar. The practical advice from experienced users: start with whatever slicer your printer manufacturer recommends, then explore alternatives if you hit a limitation.