Convert dxf to gerber

Convert DXF to GERBER

Convert 2D DXF artwork into verified Gerber and drill files for PCB fabrication.

Convert DXF files online

We don’t have a dedicated online converter for DXF to GERBER yet, but you can convert DXF files online to these and more formats:

How to convert dxf to gerber file

A PCB fabricator or CAM system needs Gerber layer artwork, but board outlines, logos, panel features, and mechanical geometry are often supplied as DXF drawings. Converting the usable 2D geometry into assigned PCB layers produces files that can be checked and manufactured.

What DXF contains

DXF (Drawing Exchange Format) is Autodesk’s CAD interchange format, used by AutoCAD and supported by applications such as DraftSight, QCAD, LibreCAD, SolidWorks, Fusion, and CNC or laser-cutting software. It can contain 2D and 3D entities, layers, blocks, dimensions, text, splines, hatches, and geometry.

For PCB work, DXF commonly supplies board perimeters, routed cutouts, panelization features, logos, copper artwork, and silkscreen markings. A DXF layer name does not define a PCB function: a layer called TOP may be copper, silkscreen, milling geometry, or construction data. Assign every imported layer deliberately.

DXF carries no netlist, component, pad, or drill-tool information. A DXF drawing cannot be turned into a complete electrically connected PCB merely by exporting Gerber; it supplies artwork geometry only.

What Gerber contains

Gerber is the standard 2D artwork format used by PCB fabricators. Modern Gerber uses the extended RS-274X format, which includes aperture definitions, coordinates, drawing operations, and polarity within each file. X2 attributes may additionally identify layer functions, but fabricators also use filenames and layer order to identify files.

A manufacturing package normally contains separate files for top and bottom copper, solder mask, silkscreen, paste, and board profile. Drill data is normally a separate Excellon NC drill file, typically .drl; it is not created automatically from circles in a DXF drawing.

Gerber is preferred for fabrication because it represents each physical artwork layer explicitly and is accepted by PCB CAM software. Check output in KiCad Gerber Viewer, gerbv, or the fabricator’s CAM viewer before upload.

Convert DXF through a PCB editor

KiCad PCB Editor is a practical free desktop workflow: it imports DXF graphics onto PCB layers and plots standard Gerber files. Altium Designer and other professional PCB editors provide comparable import-and-plot workflows when they are already part of the design process.

  1. Clean the DXF in its CAD application. Remove title blocks, dimensions, hidden construction geometry, duplicate paths, and irrelevant layers. Convert critical TrueType text, hatches, and complex fills to closed polylines where possible.
  2. Open the target board in KiCad PCB Editor. Confirm the source units and a known reference dimension before import; DXF files can be unitless or contain unit metadata that is interpreted differently by CAD software.
  3. Use File → Import → Graphics and select the DXF file. Choose the destination PCB layer and adjust scale only when a measured feature proves that the import is incorrectly sized.
  4. Import each functional group separately: use F.Cu or B.Cu for copper artwork, F.SilkS or B.SilkS for markings, and Edge.Cuts for the board perimeter and routed internal cutouts.
  5. Set graphic stroke widths to meet the fabricator’s minimum copper, silkscreen, and routing requirements. Imported copper graphics are not routed tracks and have no electrical net assignment.
  6. For the board profile, ensure Edge.Cuts consists of closed, non-self-intersecting contours. Use closed internal contours for routed cutouts. Create actual PCB drill objects with known diameters for drilled holes rather than treating DXF circles as holes.
  7. Open KiCad’s plot dialog, commonly File → Plot, select the required PCB layers, choose Gerber output, and plot to an empty production folder. Use the drill-file controls in that dialog to generate Excellon drill data when the board contains drill objects.
  8. Open all plotted Gerbers and drill files together in Inspect → Gerber Viewer. Verify registration, polarity, copper clearances, text, outline closure, cutouts, and drill locations; then ZIP the production files without changing their contents.

Browser-based options and compatibility checks

EasyEDA provides a browser-based PCB editor that can import DXF geometry into a PCB layout and generate Gerber output. Use it for simple artwork only after checking the imported scale, layer assignment, line widths, and final Gerber set in its fabrication preview or an independent viewer. A generic file-conversion website is not suitable for production unless it documents RS-274X output, exposes unit and layer controls, and provides a complete Gerber preview.

Splines, ellipses, blocks, hatches, and text may be omitted, flattened, or approximated by short segments during import. Excessive segmentation can create large Gerber files or CAM warnings; simplify curves in the source drawing when practical.

A closed DXF boundary is not automatically a filled copper region. Create a filled graphic or copper zone when the intended result is solid metal rather than an outline. Overlapping paths and mixed polarities can produce unexpected exposed or cleared areas, so inspect the plotted Gerber rather than relying on the DXF appearance.

Fabricators may accept descriptive .gbr filenames or conventional extensions such as .GTL, .GBL, and .GKO. The extension does not determine the actual layer content; follow the fabricator’s requested naming convention and verify the loaded layer mapping.

DXF vs GERBER: format comparison

How the DXF and GERBER formats compare on the properties that matter most for this conversion.

Comparison of the DXF and GERBER file formats
Property .DXF Drawing Exchange Format .GERBER Gerber Format
Dimensions Both 2D
Geometry Both
Layers Yes Yes
Materials Limited No
Plain-text readable Yes Yes
Operating system support Wide Wide
Typical file size Large Small
Open standard Partly open Yes
Introduced 1982
Developer Autodesk Ucamco
MIME type application/dxf