โ† Open Viewer
GCodex โ€บ G-Code Guide

Visualize Any G-Code File Instantly

Drop your .gcode, .nc, or .cnc file into GCodex โ€” free browser-based viewer, no upload, no account.

Open G-Code Viewer โ†’

Motion Commands

Control machine movement โ€” rapid travel, feed moves, arcs, and homing.

G-Codes
G0

Rapid Positioning

Move at maximum speed โ€” travel moves only, never cutting

G1

Linear Feed Move

Straight-line move at controlled feed rate F โ€” primary cutting command

G2

Clockwise Arc

Circular arc interpolation โ€” clockwise direction in active plane

G3

Counter-Clockwise Arc

Circular arc โ€” CCW, used for climb-milling finishing passes

Coordinate & Position Commands

Set work origins, switch positioning modes, home axes.

Coordinates
G28

Home All Axes

Move to reference / home position โ€” always run before printing

G29

Auto Bed Leveling

Probe bed surface and build compensation mesh โ€” 3D printers

G90/G91

Absolute / Incremental

G90 = from zero, G91 = from current position

G92

Set Position

Redefine current position without moving โ€” reset E axis

Temperature Commands

Control hotend and heated bed temperatures for 3D printing.

M-Codes โ€” Temperature
M104

Set Hotend Temperature

Non-blocking โ€” sets target and continues immediately

M109

Hotend Temp + Wait

Blocking โ€” printer pauses until target temperature reached

M140

Set Bed Temperature

Non-blocking heated bed โ€” start heating while doing other setup

Machine Control M-Codes

Fan control, EEPROM, spindle, coolant, and program flow.

M-Codes โ€” Machine
M106

Part Cooling Fan

Control fan speed 0โ€“255 โ€” critical for bridges and overhangs

M500

Save to EEPROM

Persist all calibration settings across power cycles


In-Depth Guides

Complete deep-dive resources โ€” slicing, firmware, CAM software, and specialized workflows.

Pillar Guides
๐Ÿ”„

STL to G-Code: Complete Slicing Guide

How to convert any 3D model to printable G-Code โ€” slicer software, settings, CNC CAM workflow, and verification.

Read Guide โ†’
๐Ÿ–ฅ๏ธ

Klipper G-Code Reference

All Klipper commands, pressure advance, input shaper, SAVE_CONFIG, macros, and Klipper vs Marlin differences.

Read Guide โ†’
โš™๏ธ

CAM Software Guide

Fusion 360, Mastercam, FreeCAD โ€” how CAM converts 3D models to CNC G-Code, toolpath strategies, post-processors.

Read Guide โ†’
๐Ÿ”ง

Marlin Firmware Configuration

Steps/mm calibration, PID tuning, EEPROM management, auto bed leveling, microstepping, syringe pump setup.

Read Guide โ†’
๐Ÿงฌ

Bioprinting with G-Code

Scaffold fabrication, hydrogel extrusion, flow-rate sync, bioink rheology, and living tissue printing step-by-step.

Read Guide โ†’
๐Ÿ“–

G-Code Beginner's Guide

What is G-Code, how machines read it, command anatomy, coordinate systems, and how to read a real G-Code file.

Read Guide โ†’

Expert Articles

Technical deep-dives on G-Code, CNC machining, 3D printing, optimization, and troubleshooting.

CNC

How CNC Machining Works: A Deep Dive

Machine types, axes, CADโ†’CAMโ†’G-Code workflow, cutting tools, speeds and feeds.

CNC

Optimize CNC Toolpaths

Chip load, trochoidal milling, entry moves, finishing passes โ€” faster, better, longer tool life.

Manufacturing

3D Printing vs CNC Milling

Side-by-side comparison of additive vs subtractive โ€” cost, materials, precision, speed.

G-Code

G-Code & M-Code Commands Reference

All essential codes with real-world examples โ€” CNC and 3D printer focused.

Troubleshooting

Troubleshoot G-Code Errors

Coordinate errors, thermal runaway, arc mistakes, layer shifts โ€” step-by-step fixes.

Simulation

Why Simulate G-Code Before Running

What simulation catches, cost of crashes, and how GCodex prevents machine damage.

Ready to Visualize Your G-Code?

GCodex renders any G-Code file in 3D โ€” free, browser-based, no signup, works on mobile.

Open GCodex Viewer โ†’