PCB to G-code
Convert Excellon PCB drill files (.drl, .xln) to drilling G-code. Converts Excellon drill files (.drl, .xln) into PCB drilling G-code in your browser. No uploads, your files never leave your device.
Drill file
Drop .drl / .xln here or click to browse
Excellon drill · max 20 MB
Drill preview
Scroll to zoom · Drag to panDrill info
No file loaded
Job estimate
Convert a file to see estimates
Drilling settings
Note:Supports Excellon PCB drill files. Copper isolation/trace milling from Gerber is not included; use Excellon for drilling and Gerber-specific workflows for routing.
G-code
No output yet.
How to use it
About PCB to G-code: PCB drill files list every hole as an X/Y hit grouped by tool diameter. This tool turns those hits into drilling G-code with your choice of depth, feed and peck cycle.
- Prepare your drill file. Export the drill file (Excellon .drl or .xln) from your PCB design app and check the units and tool diameters in the header before uploading. Accepted inputs: DRL · XLN · Excellon.
- Upload the file.Click the upload area to browse, or drag and drop a .drl or .xln file onto it. Files up to 20 MB are supported. The drill info panel reports the tools, hits and dimensions it found.
- Set the drilling parameters.MatchDrill depth, Plunge rate, Spindle speedand the optionalPeck depthandDwellto your board and bit.Safe Zis the height the tool retracts to between holes, andFeed / travel refsets the travel feed.
- Check the preview.Review the drill preview and toggle hits and travel moves to inspect them separately. Check the drill info and job estimate, and leaveOptimize drill orderon to shorten the travel between holes.
- Export and work safely.PressGenerate G-code, then useDownload G-codeorCopy to clipboard. Secure the board, check the bit and drill depths, wear eye protection, and never leave the machine unattended.
Please note: This tool drills holes only — it does not isolate copper traces or cut the board outline. Use the Gerber to G-code tool for edge cuts and routing.
Frequently asked questions
- Is PCB to G-code free to use?
- Yes. PCB to G-code is free, needs no account and runs entirely in your browser.
- Are my files uploaded when I use PCB to G-code?
- No. PCB to G-code processes files locally in your browser; nothing is uploaded to a server.
- What can I do with the output from PCB to G-code?
- Download the G-code result and check it before using it with your printer, router or laser.