At One Place

.gcode files

.gcode file
G-code Toolpath
The line-by-line instructions a 3D printer or CNC machine actually executes.

What opens a .gcode file

Windows
PrusaSlicer / Ultimaker Cura (preview), Notepad (built in), Pronterface
macOS
PrusaSlicer / Ultimaker Cura (preview), TextEdit (built in)
Linux
PrusaSlicer / Ultimaker Cura (preview), Text Editor (built in), OctoPrint
In a browser
gcode.ws viewer

What a .gcode file is

G-code is plain text telling a machine where to move, how fast, and at what temperature — the output of a slicer, not a model. It is specific to the printer and settings it was generated for, so a file sliced for one machine can damage another. Any text editor opens it, and slicers and preview tools such as gcode.ws show the toolpath layer by layer.

Converting it

A .gcode file is commonly converted to .txt. It is a plain text format, so any text editor can open and edit it directly.

Details

Extension
.gcode
Full name
G-code Toolpath
Category
3D and CAD
Created by
RS-274 / machine tool standard
Format
Plain text

Common questions

How do I open a .gcode file?
On Windows use PrusaSlicer / Ultimaker Cura (preview); on macOS use PrusaSlicer / Ultimaker Cura (preview); on Linux use PrusaSlicer / Ultimaker Cura (preview). The line-by-line instructions a 3D printer or CNC machine actually executes.
What is a .gcode file?
G-code Toolpath. G-code is plain text telling a machine where to move, how fast, and at what temperature — the output of a slicer, not a model. It is specific to the printer and settings it was generated for, so a file sliced for one machine can damage another.
Can I convert a .gcode file?
Yes. It is usually converted to .txt, either by exporting from one of the programs listed above or with a format converter.

Related pages

Sources

  1. Media Types Registry — IANA
  2. Official vendor product documentation — At One Place

How these figures are compiled and checked