Excellon drill file viewer: see a PCB's holes and slots

Updated

A board's holes are not in its Gerber layers: they are in its Excellon drill files. Open them with the Gerbers and Gerber3D drills every plated hole, via, mounting hole and slot through the board, in 2D and 3D, and lists them by tool.

Open drill files   or try the sample board

What you see

  • Plated through holes with their copper barrels, and the vias that join layers.
  • Non-plated holes: mounting and tooling holes, bare through the board.
  • Slots, routed or drilled with G85, drawn as slots.
  • A drill chart: each tool's diameter, its number of holes and whether it is plated, with the board's smallest hole in the Board section.

Excellon's ambiguities, handled

Excellon is older and looser than Gerber. Files differ in how they state units (METRIC, INCH, M71, M72), how many integer and decimal digits a coordinate has, and whether leading or trailing zeros are left out. Get it wrong and every hole moves by a power of ten. Gerber3D reads each statement the header makes, follows KiCad's, Altium's and other tools' comment conventions for the format, and checks the result against the board: holes that land outside the board or off every pad are a sign the format was misread, and the reading log says which format was used and why.

Checks on holes

The design checks include the rules that hole problems break:

  • Smallest drill and slot width against the fabricator's limit.
  • Annular ring: the copper left round a plated hole.
  • Hole aspect ratio: board thickness over drill diameter.
  • Hole to hole, hole to board edge and hole to copper spacing (vias, plated and non-plated holes separately).
  • Plated holes with no land, holes drilled twice, and missing drill data.

Exporting drill files

Export the drill files with an explicit unit and a decimal format when your CAD tool offers it, and export plated and non-plated holes as separate files if it can. Include them in the same ZIP as the Gerbers. In KiCad, use File → Fabrication Outputs → Drill Files; see exporting Gerbers from KiCad.

Questions

What is an Excellon file?

Excellon is the format CNC drilling machines read: a header that lists the drill tools and their diameters, then the position of every hole each tool drills. PCB CAD tools export it as the board's drill file, often with the extension .drl, .txt, .exc or .xln.

Why are my holes in the wrong place or the wrong size?

Usually the drill file's units or zero format do not match what the reader assumed: an Excellon file without a clear unit and zero statement can be read a factor of 10, 100 or 25.4 off. Gerber3D reads the header's statements, checks the holes against the board's copper and outline, and reports the format it used. Exporting the drill file with a stated unit and decimal format avoids the ambiguity.

Are plated and non-plated holes shown differently?

Yes. Plated holes have a copper barrel through the board; non-plated holes, such as mounting holes, are bare. Separate PTH and NPTH files, or the plating stated in each file, tell them apart.

Does it show routed slots?

Yes. Slots drawn with Excellon routing commands or with the G85 slot command are drawn as slots, not as rows of holes, and are checked for their minimum width.