Skip to main content

G-code Cleaner

Strip comments from G-code in one click.

Paste or drop your G-code, remove comments for smaller files, then download the clean version.

Defaults based on standard comment syntax (; and ()).

Assumptions

  • Inline comments in parentheses are removed.
  • Lines starting with ';' are removed.
  • No other syntax changes; moves remain intact.

Examples

  • ; layer change → removed.
  • G1 X10 Y10 (comment) → comment removed, move kept.

FAQ

Does this change moves?

No—only comments are removed.

Does it remove M117 display messages?

No. Only ';' lines and parentheses comments are stripped.

Report an issue

Need a different comment style handled? Tell us.