STL to G-code Converter: Slice in Your Browser
Add to Chrome
EnglishEN
Home › G-code › STL to G-code

STL to G-code

Drop an STL to turn it into G-code with our own FDM slicer. Pick a printer, set layer height, walls, infill and supports, press Slice, then preview the layers or download the file.

None of the printer profiles has been test-printed on a real machine yet: watch the first layer. Supports are simple vertical columns. Bambu Lab printers normally take .gcode.3mf; our plain G-code is for Orca or Marlin-style setups.

Drop STL, OBJ, 3MF, STEP or G-code here

or click to browse

Also GLB / glTF, PLY, IGES, OFF, 3DS, FBX, DAE, WRL, AMF · several files at once (OBJ + MTL, glTF + BIN)

🔒 Files are opened by your browser and never leave your device

How to convert STL to G-code here

  1. Drop the STL (any model the viewer opens works too). The Slice panel opens on the right.
  2. Choose a printer profile and check the bed size, nozzle and filament diameter.
  3. Set layer height, walls, infill, temperatures and supports, then press Slice. A progress bar runs and Cancel stops it.
  4. Read the time, the filament in m and g, and the layer count. Press Preview layers to inspect the toolpath, or Download G-code.

Settings are remembered in this browser, so the next part starts from your last profile.

Printer profiles and settings

GroupWhat you set
PrinterGeneric Marlin, Ender-3 class (220 × 220 × 250); Prusa MK4 / MK4S (250 × 210 × 220); Bambu Lab-size bed with Orca-style Marlin G-code (256 × 256 × 250). Bed size is editable
MaterialFilament 1.75 or 2.85 mm, nozzle diameter, nozzle and bed temperature, fan %
ShapeLayer height up to 90 % of the nozzle, line width, walls, top and bottom layers
Infill0–100 %, grid or lines (0 % = hollow, 100 % = solid)
MotionSpeeds for walls, infill, first layer and travel; retraction length and speed
AdhesionSkirt, brim with width, or none
SupportsNone, from the bed only, or everywhere, with an overhang angle

What the slicer writes

It cuts the mesh at the middle of each layer and builds closed outlines; overlapping bodies merge and inside-out meshes still slice. Walls print inner-first, the outer wall last, with an aligned seam at the back. Top and bottom skins are solid, also on sloped sides.

Infill turns 90° every layer and solid areas use zig-zag lines. Retraction happens only when a travel leaves the infill area. Short layers slow down to a minimum layer time.

The output is Marlin G-code with relative extrusion. Prusa and Bambu profiles get M73 progress lines, and the header lists time, filament (mm, cm³, g) and layer count.

Tested numbers

Supports were checked on a plate standing on a post: columns on layers 1–47, two dense interface layers on 48–49 and one layer of air under the plate at Z 10.

Supports and what is not done yet

Areas steeper than the overhang angle (50° by default) get straight support lines 2 mm apart, kept 0.7 mm away from the part. With supports off, the panel warns where the part prints over air, with Z and mm².

Several features are not built yet:

For a part that needs any of these, use a desktop slicer.

Before you slice

A mesh with holes slices badly, and you may only notice when a wall comes out open after hours on the bed. Run STL repair first if the Info panel says the model is not watertight. After slicing, check the time on the 3D print time calculator and price the job with the 3D print cost calculator.

Questions and answers

Can I convert STL to G-code online without installing a slicer?

Yes. The slicer runs in a background worker of this tab, so the STL is not uploaded. It is our own code, built without any desktop slicer engine inside.

Has this G-code been printed on a real printer?

Not yet. The start and end G-code follow the public Marlin reference, but no profile has been test-printed. Stay near the printer for the first layer.

Will it work on a Bambu Lab printer?

Those printers normally take .gcode.3mf from their own slicer, and we do not write that package. The Bambu-size profile writes plain Orca-style Marlin G-code.

How do I add supports?

Pick from the bed only or everywhere in the Supports field and set the angle. You get simple vertical columns; tree supports are not available.

Why is my thin part missing walls?

There is no gap fill yet: a wall thinner than two line widths is left out. For such parts a desktop slicer is the better choice.