Convert STL to G-code Online
A free STL to G-code converter and slicer that runs entirely in your browser. Pick a printer profile, tune your print settings, preview the result, and download printer-ready G-code — no software to install, nothing uploaded to a server.
Drop your STL file here
Supported format: .STL — binary and ASCII STL supported where the parser allows.
STL to G-code
Prepare your model and generate printer-ready G-code
·
- Triangles
- Dimensions
Fix the issue(s) below before slicing.
Preparing model…
Slice Complete
- Layers
- Print time
- Filament length
- Filament weight
- File size
- Est. material cost
Preview G-code
Printer
- Build volume
- Nozzle
- Filament
- Profile
Material
Starting values — adjust for your specific filament.
Print Settings
Smaller layer heights can improve vertical detail but increase print time.
Advanced Settings
Model Transform
Scale
- Original dimensions
- Print dimensions
Bed & Adhesion
Speed & Temperature
Infill & Walls
More walls can increase strength and surface quality.
Other Settings
Process
How It Works
- 01
Upload your STL
Drop your 3D model into the browser.
- 02
Configure your printer
Choose a printer and material profile.
- 03
Set print parameters
Adjust layer height, infill, speed, supports, and other options.
- 04
Slice & Download
Generate printer-ready G-code and download it.
Capabilities
Features
Browser-Based
Process STL models locally where supported.
Interactive 3D Preview
Inspect and orient the model before slicing.
Printer Profiles
Use predefined printer configurations.
Custom Print Settings
Control layer height, infill, speed, supports, and temperatures.
G-code Generation
Generate actual printer toolpaths using the slicing engine.
Print Estimates
Show estimated print time and filament usage when available.
All Tools
Related Tools
Your 3D model stays on your device.
STL files are processed locally in your browser whenever possible. Your model does not need to be uploaded to a server. The slicing engine and printer profile data are loaded as static files from our servers the first time you use the tool — your STL itself is never sent.
- Browser-based processing
- No account required
- No file upload required
- No permanent storage
Questions
Frequently Asked Questions
What is G-code?
G-code is the plain-text instruction set that tells a 3D printer exactly where to move, when to extrude filament, and at what temperature — the direct output of slicing a 3D model.
What is an STL file?
STL is a file format that describes the surface geometry of a 3D model as a mesh of triangles, without color, texture, or printer-specific information.
How do I convert an STL file to G-code?
Drop your .stl file into the STL to G-code tool above, choose a printer and material profile, adjust print settings like layer height and infill if you want, then click Slice Model. The slicer generates real G-code in your browser, and you download the .gcode file when it's done — no software to install.
Can I convert STL to G-code without installing a slicer?
Yes — this tool runs a real slicing engine directly in your browser, so no desktop software installation is required.
Can G-code be converted back into an STL file?
Not meaningfully. G-code stores printer toolpaths (layer-by-layer movement and extrusion instructions), not the original 3D surface geometry, so there's no reliable way to reconstruct an accurate STL mesh from it. Always keep your source STL file if you might need to re-slice or edit the model later.
Is STL to G-code actually a conversion?
Not exactly. It's technically a slicing process: the model is cut into layers and translated into printer-specific toolpaths, not just converted between file formats.
Does the generated G-code work with every 3D printer?
No. G-code is printer/profile dependent. Select the correct printer profile before slicing.
Can I use this STL slicer on mobile?
The interface adapts to mobile screens, though slicing larger or more complex models is faster and more reliable on desktop.
Are my STL files uploaded?
No. Your STL is parsed and sliced locally in your browser. It is not sent to our servers.
What printer settings should I use?
Start from the default values for your selected printer and material, then adjust based on your specific results — there's no single universally correct setting.
Can I change layer height?
Yes, from a set of common presets or a custom value, in the Print Settings panel.
What is infill?
Infill is the internal lattice structure printed inside a model, controlling its strength, weight, and material usage.
What are supports?
Supports are temporary structures the printer builds under steep overhangs so the filament has something to print onto.
Why doesn't my STL fit on the print bed?
Your model's dimensions exceed the selected printer's build volume. Use Scale to Fit, or manually resize or reposition the model.
Can I preview the G-code?
A text preview of the generated G-code is available after slicing, alongside print time and filament estimates.
Can I use the generated G-code directly on my printer?
Always verify the printer profile, temperatures, build volume, and generated toolpaths before sending G-code to a physical printer.