Tiny Online Tools logoTiny Online ToolssearchSearch tools…grid_viewAll Tools
Homechevron_right3D Printing Toolschevron_rightG-code Flavor ConverterG-code Flavor Converter

G-code Flavor Converter

Convert G-code between Marlin, RepRapFirmware, Klipper, Smoothieware and Repetier where the mapping is exact — and list everything that is not.

upload_file

Click to browse or drag & drop files here

Select a G-code file — .gcode, .gco, .g or .nc

Accepted: .gcode,.gco,.g,.nc,.ngc

The file is read and converted in your browser. Nothing is uploaded.Detected from the file's flavour marker, or from the commands it uses. Override it if the detection is wrong.Klipper accepts most Marlin motion G-code, but configuration lives in printer.cfg rather than in EEPROM, so the M-codes that write settings are not implemented.OptionsComment out commands the target does not supportOff by default: unsupported commands stay in the file and are listed instead. Turned on, only commands with no support at all are prefixed with "; UNSUPPORTED (target): " — never the partially supported ones, which do work, just differently.Update the slicer's flavour markersRewrites the ;FLAVOR: line and the gcode_flavor setting in the configuration footer. Note that this changes what the slicer would read back if the file were re-imported.Add a provenance headerTwo comment lines naming the source, the target, this tool, and how many commands still need review.

Similar Tools

G-code Analyzer

G-code Analyzer

Measure a sliced G-code file: filament, cost, print time, layer heights, features, speeds, temperatures and every header setting.

G-code Editor

G-code Editor

Change temperatures, speeds, fan settings and custom commands in a sliced G-code file, with a preview of every affected line.

G-code Viewer

G-code Viewer

Preview a sliced G-code file in 3D: layer by layer, coloured by feature, move type, speed or extruder.

G-code Thumbnail Extractor

G-code Thumbnail Extractor

Pull the preview images a slicer embedded in a G-code file back out, view them, and save them as PNG or JPEG.

PDF Page Extract to Images

PDF Page Extract to Images

Extract selected PDF pages as individual PNG, JPG, or WebP images at your chosen DPI. Free, private, runs in your browser.

Image Border Adder

Image Border Adder

Add customizable borders to any image with adjustable size, color, style, and rounded corners.

DNS Record Generator

DNS Record Generator

Generate simple DNS record lines for common record types.

apps

More Tools

Browse our full collection of free online tools.

The honest version of "convert my G-code"

Motion is common ground. G0–G3, G28, G90/G91 and G92 mean the same thing in Marlin, RepRapFirmware, Klipper, Smoothieware and Repetier. Almost everything else is where the firmwares actually differ: heater and fan indexing, bed levelling, retraction, acceleration and jerk, macros. A converter that silently rewrites those does more damage than one that leaves them alone and tells you.

So this tool applies only the mappings that are exact, and reports the rest.

What gets rewritten

  • M900 K…SET_PRESSURE_ADVANCE ADVANCE=… for Klipper, or M572 D0 S… for RepRapFirmware. Same number, same meaning.
  • M203 between Marlin's mm/s and RepRapFirmware's mm/min — every axis value multiplied or divided by 60.
  • M205 X/Y jerk → M566 in mm/min for RepRapFirmware.
  • M420 S1/S0BED_MESH_PROFILE LOAD=default / BED_MESH_CLEAR for Klipper, or G29 S1 / G29 S2 for RepRapFirmware.
  • M201/M203SET_VELOCITY_LIMIT for Klipper.

What gets reported

Four lists, and they are the point of the tool, not a footnote.

Converted — the command, the count, what it became and why. Kept as-is — supported in the target firmware unchanged. Needs your attention — partial or absent support, each with the note that says exactly what breaks: "Klipper has no M205; cornering is set by square_corner_velocity in printer.cfg." Unknown — commands not in the table at all, passed through untouched and listed so you know to check them.

Nothing is ever silently dropped. By default unsupported commands stay in the file and are flagged. If you ask for it, they are commented out with a ; UNSUPPORTED (Klipper): prefix, so the change is obvious in a diff and trivially reversible.

Flavour markers and provenance

The ;FLAVOR: line Cura writes and the gcode_flavor = … setting in a Slic3r-family footer are updated to match the target, and a two-line comment header records where the file came from and what still needs review.

The caveat that matters

Converted G-code should be read before it is sent to a machine, and the first minutes of the print should be watched. This tool changes text; it cannot know your printer.