Free tool · runs in your browser
STL to G-code Converter
Drop in an STL file and get printable G-code from a basic in-browser slicer. Best for simple models — no upload, no sign-up.
Slicing runs entirely in your browser — your model is never uploaded.
What this tool does
An STL file describes a 3D model as a mesh of triangles. A slicer — often searched for as "stl to gcode" — turns that mesh into G-code, the line-by-line instructions a 3D printer follows, by cutting the model into horizontal layers and tracing the outline of each layer. This page does that entirely in your browser: it reads your STL file, slices it at the layer height you choose, and generates G-code with the temperatures and speeds you set. The test cube button slices a 20 mm cube so you can see the output before using your own model.
What it cannot do — read this first
This is a basic slicer, not a replacement for a full one. It prints perimeters only: no infill, no support structures, no retraction between loops, and no seam hiding. That means it works well for simple solid shapes — calibration cubes, simple brackets, flat parts — and badly for anything with overhangs, bridges or hollow interiors, which would print as empty shells. For real printing, use PrusaSlicer, Cura or OrcaSlicer, which are free and handle all of those cases. Treat this tool as a way to understand slicing and to get a quick G-code file for a simple shape, not as a production workflow.
How to use it
Choose your STL file, set the layer height (0.2 mm is the standard starting point), line width (usually your nozzle diameter, 0.4 mm), filament diameter and print speed, then set nozzle and bed temperatures for your material — 200°C and 60°C are typical for PLA. Download the G-code and preview it in your slicer or printer's viewer before printing. Always watch the first layer: if it does not stick, stop the print rather than letting it fail for an hour.
Frequently asked questions
Can I use this G-code for a real print?
For simple solid models, yes — but preview it first in a G-code viewer and watch the first layer. There is no infill or support, so anything with overhangs will fail. For anything beyond a simple shape, use a full slicer such as PrusaSlicer or Cura.
What temperatures should I use?
For PLA, 200°C nozzle and 60°C bed are typical starting points. PETG is usually around 240°C and 80°C; ABS around 250°C and 100°C. Always check the filament manufacturer's recommendation — this tool only puts your numbers into the G-code.
Why is there no infill?
This is a minimal slicer built to run in a browser page. Infill requires offsetting perimeters and generating fill patterns, which is a much larger program. The perimeters-only output is honest about that limit rather than pretending to do more.
Last updated 2026-11-09. Results are estimates for planning only — always confirm with the official source before spending money or signing anything. This tool runs entirely in your browser; nothing you type or upload leaves your device.