What is a G-code file?
G-code is the set of machine instructions that a 3D printer or CNC machine follows. Viewing it shows the exact toolpath your slicer generated.
It is used by makers checking a sliced print before sending it to the printer.
What you can do with G-code files here
G-code is a printer toolpath made of lines, not a solid: step through it layer by layer, but mesh tools and mesh export do not apply.
- Step through the print layer by layer with the layer slider.
- Show or hide travel moves.
- Check the overall print size and extrusion length.
How to open a G-code file online
- Click Open above, or drag your .gcode, .gco file anywhere onto this page.
- Orbit with the left mouse button, pan with the right button and zoom with the wheel (or pinch on a phone).
Frequently asked questions
How do I open a G-code file without software?
Open this page and drop the file in. OMNIVIEWER reads .gcode, .gco files directly in the browser.
Is OMNIVIEWER free?
Yes. It is free and open source, with no ads and no account. Donations help pay for hosting and development.
Are my files uploaded?
No. Files are opened and converted inside your browser and are not uploaded to a server. If you turn recent files on, a copy stays in this browser so you can reopen it; you can turn that off.
Does it work on Mac, Windows, Linux and phones?
It runs in current Chrome, Edge, Firefox and Safari on desktop, tablet and phone, with nothing to install. It needs WebGL (3D graphics) to be available.
Is there a file size limit?
There is no fixed limit. Large files depend on your device's memory; phones handle less than computers.