Gerber file extensions explained
Updated
A board's Gerber files have names that say which layer each one is. The most common scheme is Protel's three-letter extensions; KiCad and other tools write the layer into the file name instead. Here is what they mean.
Protel extensions
| Extension | Layer |
|---|---|
.GTL | Top copper |
.GBL | Bottom copper |
.G1, .G2, … / .GP1, .GP2 | Inner copper layers / inner planes |
.GTS | Top solder mask |
.GBS | Bottom solder mask |
.GTO | Top silkscreen (overlay, legend) |
.GBO | Bottom silkscreen |
.GTP | Top paste (stencil) |
.GBP | Bottom paste |
.GKO | Keep-out, often the board outline |
.GM1, .GM2, … | Mechanical layers; one usually holds the outline |
.GD1, .GG1 | Drill drawing and drill guide |
.DRL, .TXT, .XLN | Excellon drill files |
KiCad names
KiCad names each file after the board and the layer, with .gbr (or Protel extensions if you ask for them): board-F_Cu.gbr (front copper), board-B_Cu.gbr (back copper), board-In1_Cu.gbr (first inner layer), F_Mask, B_Mask, F_Silkscreen (F_SilkS in older versions), F_Paste, Edge_Cuts, with board-PTH.drl and board-NPTH.drl for the holes and board-job.gbrjob for the job file. See exporting Gerbers from KiCad.
Eagle and others
Eagle's CAM jobs have used .cmp (component-side copper), .sol (solder-side copper), .stc and .sts (masks), .plc (silkscreen) and .crc/.crs (paste), and newer versions use Protel-style names. EasyEDA and many other tools use the Protel extensions.
How Gerber3D tells the layers apart
Names are a convention, not a rule. Gerber3D first reads a file's X2 attributes, which state its layer outright; then its name, in all the conventions above; then its contents (an outline looks like an outline, a drill file starts like one). The Files section says which evidence decided each layer, and the Layers section lets you change any role that is wrong.
Questions
What is a .GTL file?
The top copper layer of a PCB, in Gerber format, named with the Protel convention: G for Gerber, T for top, L for layer. .GBL is the bottom copper.
What is a .GKO or .GM1 file?
The board outline. .GKO (keep-out) is the Protel name; .GM1 is Altium's mechanical layer 1, often used for the outline. KiCad names it Edge_Cuts.
Do the extensions matter to the fabricator?
Less than they used to. Fabricators and viewers identify layers from Gerber X2 attributes when the files have them, and from the names otherwise. A clear name and X2 attributes together leave no doubt.
My files all end in .gbr. Which is which?
KiCad and other tools often use .gbr for every layer and put the layer in the name (board-F_Cu.gbr). If the files have X2 attributes, the layer is stated inside the file as well.