View G-code files in your browser
The language 3D printers, CNC mills and lasers run, a move a line. Open a print's G-code right here and see it layer by layer before you print it. Nothing leaves your device.
Or drop it anywhere on this page
What you'll see
Your G-code opens in 3D as the printer will lay it down, each feature in its color and listed beside it, with the slicer's time and filament.
- The layer slider • Build it up, or see one layer alone
- Every feature in its color • Hide travel, infill or supports
- Inspect • Print time, filament and the layer you click
- Export • The view as PNG and the slicer's picture
About G-code
G-code grew out of the numerical control MIT worked on in the 1950s, and the EIA set it down as RS-274 in 1963. Mills and lathes have run it ever since, and RepRap made it the language of 3D printers. Every slicer writes it, from PrusaSlicer, Cura and OrcaSlicer to Bambu Studio and Simplify3D.
Each line is a code and its words: G1 X10 Y20 E0.5 moves the nozzle to X10 Y20 while it pushes half a millimeter of filament. Slicers add comments that name each layer and each feature, like the outer wall or the infill, with the time and filament they worked out and a picture of the print.
Filepeek reads it in your browser and draws each extrusion as a bead as wide and as tall as the slicer made it, each feature in its color. Drag the slider to see the print as far as any layer, press Play to watch it build up, or show one layer alone. Click the print to see the feature and the layer you clicked, hide the travel moves, and save the view as PNG. CNC and laser programs open too, their cuts by tool and their rapid moves apart.
G-code
.gcode • .gco • .g • .gc
Format
- MIME type
- text/x.gcode
- Made by
- The EIA, as RS-274
- Released
- 1963
Inside the file
- Moves
- A line each, G0 and G1, arcs with G2 and G3
- Filament
- E words, how much each move pushes
- Layers
- Named in comments by most slicers
- Extras
- Print time, filament used and a picture
Opens in every browser
Browsers show G-code as text or download it. Filepeek opens it in 3D in Chrome, Edge, Firefox and Safari, on any device, from any slicer.
- YouChromeOpens through Filepeek
- YouEdgeOpens through Filepeek
- YouFirefoxOpens through Filepeek
- YouSafariOpens through Filepeek
Questions
How do I view a G-code file?
Drop it on this page or press Peek a G-code. The print opens in 3D, every feature in its color, with nothing to install.
Can I see it layer by layer?
Yes. Drag the slider under the print to show it as far as any layer, press Play to watch it build up, or show one layer alone. The arrow keys step a layer at a time.
How long will it take to print?
Inspect shows the time and the filament the slicer worked out, with the picture it saved, from PrusaSlicer, Cura, OrcaSlicer, Bambu Studio, Simplify3D and more.
Does it open CNC and laser G-code?
Yes. A mill's or a router's program shows its cuts by tool, with the rapid moves apart, and a laser's its burns, with the time at their feed rates.
Is my file uploaded?
No. The G-code opens inside your browser and never leaves your device.