Sign in Sign up free Account

DXF to G-code Converter

Free online DXF to G-code converter. Convert DXF to G-code and get G-code toolpaths for CNC routers, laser engravers and pen plotters, in millimetres. Reads lines, arcs, circles, polylines, text and layers, at real scale. Runs in your browser: nothing uploaded, no sign-up.

Runs in your browser · Nothing uploaded

Opens inLightBurnFusion 360AutoCADGRBLMach3

Drop several files at once to convert the whole folder in one pass. Got a different format? A PNG, JPG, HEIC, PDF, SVG or DXF still comes out as G-code.

DXF to G-code Converter: what you need to know

DXF files are everywhere: laser cutting and CNC routing. No fills or colour to speak of. It is geometry for machining, not a picture. That is when people search for DXF to G-code, and it is what this page does: the same geometry, carried across with its scale and the right way up.

The steps are short: drop your DXF into the box above, check the result, and download a G-code when it looks right.

DXF and G-code: what changes

  • DXF: AutoCAD's interchange format: lines, arcs and polylines with real units in the header. No fills or colour to speak of. It is geometry for machining, not a picture.
  • G-code: Motion commands a controller runs directly: move here, at this speed, with the tool on. No interpretation left. The machine does exactly what the file says.

How the DXF to G-code converter works

A DXF already holds shapes, so it is not traced at all. Its paths are read directly (curves, lines and the transforms applied to them) and written out as a G-code, so nothing is thrown away and re-approximated.

The G-code moves the tool along those paths with the tool off for every reposition and a safe retract before every rapid, and the toolpath is drawn for you to check before you download.

What the G-code is used for

  • Laser cutting and engraving
  • CNC routing
  • Sending straight to the controller

Why convert DXF to G-code here

  • No re-tracing. Your DXF geometry is carried across, not redrawn from pixels.
  • Units stated. G-code output says what its numbers mean.
  • Transforms applied properly. Nested groups and scaled paths land where they should.
  • Checked before you cut. The output file is read back and drawn on screen.

Tips for the best G-code

  • Purge unused layers and blocks in CAD first for a smaller, cleaner result.
  • Convert text to outlines in your DXF before converting if your design software can; fonts are not available to a cutter.
  • Remove guides, hidden layers and anything you do not want cut.
  • Check the reported size against the size you expect before sending it to the machine.

On the blog: How to Convert DXF to G-code Free, Step by Step

How it works

  1. Upload your artwork

    Mono mode is preset, a single cut outline is what a machine wants, not colour layers.

  2. Set your real size

    Choose millimetres or inches and the finished width. The file carries physical units, not pixels.

  3. Check the preview, then cut

    Inspect the toolpath before you download. Cuts draw solid, rapids dashed.

DXF to G-code converter: free and online

  • dxf to g-code
  • convert dxf to g-code
  • dxf to g-code converter
  • dxf to g-code online
  • change dxf to g-code

Convert DXF to g-code in your browser: drop in a DXF file and download the G-code. The file is converted on your own device and never uploaded, so this dxf to g-code converter is safe for private and confidential files.

DXF is the drawing exchange format of CAD, laser and CNC software, from AutoCAD to LightBurn. G-code is the list of moves a CNC router, laser or plotter follows, line by line.

The paths come out at the real size you set, in millimetres or inches, ready for a laser, a CNC router, a vinyl cutter or a plotter.

More conversions from DXF: DXF to PLT, DXF Unit & Size Checker, DXF Viewer, DXF to EPS, DXF to DWG, DXF to SVG.

Other conversions to G-code: Sketch to G-code, Image to G-code, SVG to G-code, PNG to G-code, JPG to G-code, Logo to G-code.

People also search for

  • dxf to g-code free
  • dxf to g-code without losing quality

Why it matters

Correct units, stated in the file

DXF exports write $INSUNITS. Without it a part imports at 25.4x the intended size, which is the single most common cause of a ruined first cut.

Y axis the right way up

SVG puts +Y down the screen; CAD and CAM put it up. We flip it. Exporting without that correction gives a part mirrored about the X axis, it cuts, but backwards.

Closed contours

A cutter following an open outline leaves the part attached. Outlines are closed, and anything that is not is flagged before you download.

Conservative G-code

The tool is disengaged before every reposition, retracted before every rapid, and the program always ends tool-off and clear.

Is DXF to G-code worth paying for?

A G-code is the file a shop actually runs. Walk through the artwork requirements a laser cutter, a CNC shop or a sign maker publishes and the same request appears: send something a machine can follow. What turns up instead is a screenshot or a logo pulled off a website at 600 pixels, and somebody redraws it by hand, twenty-five to forty minutes, or sends it to an art service at $25 to $60 a file.

The conversion and the preview here are free and unlimited. The G-code itself is $3.99 as a guest, with no sign-up, or comes with a plan, and it arrives clean: a machine file is never watermarked, because a mark in a cut file is extra cut paths a machine would run.

What the plan includes

Reviews

No reviews yet. Used this tool? Yours could be the first.

Used this tool? Sign in to write a review.

Questions

What is the best DXF to G-code converter?

One that gives you the same geometry, carried across with its scale and the right way up, shows the result before you pay, and does not upload your file. That is what this page is built to do.

How do I convert DXF to G-code?

Drop your DXF file on this page, check the preview, and press Download. The G-code is made in a few seconds, with no sign-up.

Is my DXF file uploaded anywhere?

No. The dxf to g-code conversion runs in your browser, on your own device. The file never leaves it.

What units does the file use?

Whichever you pick, millimetres or inches, and the choice is written into the file header so the receiving software does not have to guess.

Will this work with my laser?

DXF is written as R2000 by default, which LightBurn, Fusion, AutoCAD and current CAM packages all read. There is an R12 option for older controllers that predate LWPOLYLINE.

Can I trust the G-code?

Preview the toolpath first, and dry-run any new program above the material. The generated code assumes you have set your own work origin, and it homes nothing.

DXF to G-code: here, by hand, or on a server

  Veconvert Illustrator, by hand A paid vectorizer
What it costsFree preview; one file for $3.49 as a guest ($3.99 for technical files), $6.50 in bulk$23 a month$8–15 a month
How long it takesSeconds30–60 minutes by handSeconds
Skill neededNone. Drop the fileYou have to be able to drawNone
Where your file goesNowhere. It stays in this tabStays on your machineUploaded to a server
G-code with real unitsYesYes, with setupUsually pixels
Machine files tooDXF, G-code, PLT, STL from the same traceSeparate export each timeRarely

Ready to convert your DXF?

Free, unlimited, no account, and nothing leaves this tab.

Convert a DXF now