G-Code Minifier

Compress long toolpaths for older CNC controls (like vintage Fanuc or Haas) with strict memory limits by stripping non-essential characters.

Strip Options
Strips all ( text ) and ; text blocks.
Strips N10, N100 codes from the start of lines.
Combines intermediate points on straight, single-axis cuts (e.g. X10 X20 X30 becomes X30).
Combines consecutive, co-radial arc segments into a single smooth arc.
G0 X1. Y1. becomes G0X1.Y1.
Removes trailing zeros. X1.5000 becomes X1.5. Preserves required whole-number decimals.
Deletes empty carriage returns.
Original File
Click or drag G-code file here Supports .nc, .txt, .gcode
Minified Result
Original Size
0.00 KB
New Size
0.00 KB
Space Saved
0.0%