Research Careers Contact

GlossaryDrill file

Drill file

A drill file is the machine-readable file that lists every hole on a circuit board by position and size, and states which holes are plated. It is often an Excellon-style NC file, and it can also be written in Gerber format. It travels with the Gerber files in the release package.

How it works

Gerber files describe the images on each layer. They do not tell the shop where to drill. The drill file does. It defines a set of tools by diameter, then lists the coordinates where each tool drills. The layout tool exports it from the same board data as the Gerbers, using the same origin and units, so holes line up with pads.

Most designs export separate files for plated and non-plated holes, because they go through different process steps. Boards with blind or buried vias need a drill file for each drill span. Slots and routed cutouts are either included as routed paths or shown on a separate mechanical layer. Structured formats such as ODB++ and IPC-2581 carry drill data inside the same package as the copper. The Gerber format specification recommends Gerber drill files, one per drill span with plated and non-plated holes split, so drill data shares the copper's format and attributes. Where an NC file is needed, it points to XNC, a defined subset of Excellon.

Drill file vs drill drawing

The drill file is the data the drill machine runs. The drill drawing is a human-readable view: a symbol for each hole size, a table of sizes and counts, and plating notes, usually part of the fabrication drawing. Shops use the drawing to check the file.

Why it matters

A drill file out of step with the copper produces holes that miss their pads, wrong hole sizes, or plated holes that should not be plated. Common causes are a different origin, wrong units or zero format, or a file from an older revision. Those errors ruin the bare boards.

How to get it right

  • Export the drill file from the same revision and with the same origin as the Gerbers.
  • Separate plated and non-plated holes when the shop asks for it.
  • State whether sizes are finished or drilled sizes. Most designs give finished sizes and let the shop add its plating allowance.
  • Check the file in a Gerber viewer, overlaid on the copper, before you release it.

Drill files in robotics and drone hardware

Robot and drone boards mix small vias under fine-pitch parts with large holes for power connectors, mounting screws and plated through-hole terminals. That spread of sizes, plus mounting holes that are usually non-plated, makes the plated and non-plated split and a careful overlay check worth doing on every release.

Learn more