How to Generate PCB Gerber Files: A Complete Walkthrough for Altium, KiCad, and Eagle
This article was originally published in Aug 2023 and last updated on August 10, 2026.

Pre-Generation Checklist Before Exporting Gerber
- Perform the full Verifica delle regole di progettazione (DRC)
- Double-check your PCB outline
- Verify proper layer designation
- Rebuild copper pours and zones

Choosing the Right Gerber Format: RS‑274X vs. X2 vs. X3
- RS-274X (or Gerber X1): The standard format that is completely self-contained (meaning that all the aperture definitions are included in the file itself). Supported by nearly all PCB manufacturers. This is your best option unless you have any particular reasons.
- Gerber X2: Introduced in 2014, it is an enhanced version of RS-274X with intelligent metadata like layer description (“this is the top copper layer”) and stackup information. Supported by most modern manufacturers. You should choose it if your manufacturer supports this format.
- Gerber X3: The latest standard (2020) embeds component placement and distinta base (BOM) information in the Gerber file format, potentially replacing pick-and-place files. While not widely adopted yet, ask your manufacturing facility if it supports this standard.
- ODB++: An alternate, intelligent, single-file format. Highly functional but not as widespread as Gerber. Most manufacturing facilities like to use Gerber.



Generating Gerber Files in Altium Designer
- Load your PCB document – make sure that this is the latest version of the document, which includes the final changes in routing and copper pours.
- Create Gerber setup – go to File -> Fabrication Outputs -> Gerber Files. This action will open a multi-tab dialog that you need to fill in.
- Set the units and precision – in the General tab set Inches as a unit and 2:5 format (it will give you 0.01 mil of resolution, which is enough for almost any design). Do not use metric units unless your manufacturer specifically asked for them.
- Choose layers for plotting – in the Layers tab you can either plot all the layers used in the PCB or you can do it manually. For a typical 4-layer PCB, you should select Top Copper, Inner1, Inner2, Bottom Copper, Top Solder Mask, Bottom Solder Mask, Top Silkscreen, Bottom Silkscreen, Top Paste, Bottom Paste and Board Outline. Altium will assign the standard Protel extensions (e.g.,
.GTLfor top copper,.GBLfor bottom copper).

- Advanced options – From the Advanced tab, set the default tolerances for aperture (±0.005mil). Select the option “Suppress leading zeroes” and leave the plotter type as “Unsorted (raster)”. Lastly, check the box “Optimize change location commands” – this reduces the file size without degrading the quality.
- Generate the NC Drill files separately – Back to File → Fabrication Outputs → NC Drill Files. Select the same units (Inches) and precision (2:5). The most important thing is to select “Reference to absolute origin” – this makes sure that the coordinates of drilling will fit the Gerber layers perfectly. In case there are plated and non-plated holes in the design, separate drill files must be generated.
- Double-check with CAMtastic – After the files are created, Altium automatically opens its own CAM viewer. Make sure to quickly check each of the layers to see if everything is okay.
Generating Gerber Files in KiCad
- Open your board file (.kicad_pcb) and do DRC for the last time.
- Enter the Plot dialog – Click on File -> Fabrication Outputs -> Gerbers (.gbr). A dialog will appear where you can choose layers and other options.
- Choose output directory – It is advisable to use a new, empty directory for this purpose.

- Select layers – On the left side of the window, select all required layers: F.Cu, In1.Cu, In2.Cu (if any), B.Cu, F.Paste, B.Paste, F.Silkscreen, B.Silkscreen, F.Mask, B.Mask, and especially Edge.Cuts. If you forget about the Edge. Cuts layer, the factory will not be able to determine the shape of your PCB – this is the classic mistake of a beginner.
- Specify general options – On the right side of the window, enable “Check zone fills before plotting” – it will update your copper pours automatically. You should also enable “Use Protel filename extensions” – your file names will become easily readable by manufacturers (for example: top.gtl, bottom.gbl). We recommend you also check “Use extended X2 format” – it adds useful layer metadata while remaining backwards compatible.
- Plotting of Gerber files – Click the Plot button. It will take seconds to produce all required Gerber files using KiCad.
- Creating a drill file – Go back to File → Fabrication Outputs → Drill Files (.drl). Select the appropriate units (inches or millimeters, but follow your manufacturer’s preference), make sure the drill origin is set to “Absolute”, and choose a proper drill map format. Then click on “Generate” and save the file.
- Verification process – There is a built-in Gerber viewer (GerbView) in KiCad. It will help you to verify your files.
Pro tip:
Generating Gerber Files in Autodesk Eagle

- Open the board file (.brd) in the Eagle Board view.
- Start the CAM Processor – either by clicking on its icon or through File → CAM Processor. This will open a new window where you will configure your output.
- Load or create the CAM job – Eagle includes a default job named gerb274x.cam that creates the RS-274X files. It can be loaded through File → Open → Job. Many Fabbricazione di PCB houses provide CAM jobs for Eagle – using one of them ensures compatibility.
- Check the layer mapping – The CAM job automatically selects the layers that it will output. Make sure that all the copper, mask, silkscreen, paste, and outline layers are there. Eagle assigns the layers by number (top copper – layer 1, bottom – 16, outline – 20). If your board uses customized layers, make the necessary corrections.
- Set Output Directory – Specify a directory in which to save your Gerber files.
- Process the Job – Click on the Process Job button. Eagle will create a series of .gbr files (or any other extension according to the job settings).
- Create drill data – The most common type of CAM job is one with an Excellon drill file. However, if not specified in the job, you can always create another layer with drill data using the CAM Processor. Make sure the drill format corresponds to your Gerber precision (usually 2:4 or 2:5 for inches).
- Verifica – As Eagle doesn’t have a built-in Gerber viewer, we strongly advise using some external Gerber viewer program (which we will discuss later) to make sure that everything is OK.
Pro tip:
File Naming Conventions
.GTL,.GBL,.GTS, etc. This is how Protel/Altium names its files and has become the industry standard. Adopting it will enable your manufacturer to know which one goes where, without opening the files.| Strato | Extension |
| Top Copper | .GTL |
| Bottom Copper | .GBL |
| Inner Layer 1 | .G1 |
| Top Solder Mask | .GTS |
| Bottom Solder Mask | .GBS |
| Top Silkscreen | .GTO |
| Bottom Silkscreen | .GBO |
| Top Paste | .GTP |
| Bottom Paste | .GBP |
| Board Outline | .GM |
| Drill File | .DRL or .TXT |
How to Verify Your Gerber Files Before Submission
- File count – For a 2-layer board, you need to have 8 Gerber files at least, plus a drill file. For a 4-layer board, you will need two extra layers of copper. It’s actually very easy to miss a layer – all it takes is counting.
- Use a Gerber viewer – Import all your files to the viewer and manually verify each individual layer. We suggest:
- KiCad GerbView (free and bundled with KiCad) – highly dependable and supports RS-274X and X2.
- HQDFM Online Viewer – cloud-based, no need to install anything, supports many different formats.
- EasyEDA Gerber Viewer – fast and convenient for quick checks.

- Alignment of layers – Enable several layers at once and verify the proper overlap of pads, vias, and board outline. Misalignment usually happens due to the selection of a different origin for Gerber and drill layers.
- Mask openings checking – Make sure that the openings of the mask are slightly bigger than the pads (usually the clearance is 2-3 mils) and that there are no fully masked cuscinetti.
- Board outline check – The board outline has to be closed polygon. Zoom into corners of the outline – any gap in the outline will make the viewer to display an open path.
- Drill-copper layer alignment – Open the drill layer above copper layers in the viewer and make sure that all holes coincide with pads or vias. If not, there is probably a problem with units or coordinate origin.
Common Gerber Errors and How to Avoid Them
- Missing layers – the most common mistake. Always maintain a checklist and use a viewer for verification.
- Incomplete board outline – A small gap in the Edge. Cuts layer makes it impossible to route the board. Make sure that the outline is a continuous polyline.
- Using the obsolete RS-274D format – It demands separate aperture files, which are usually overlooked. Use the RS-274X format which embeds all information.
- Origins of Gerber and drill are different – If your drill file uses “absolute” origin and Gerber “relative” origin, they would not match. Set the same origin for both files (absolute origin is safer).
- Failing to refill copper pours – This mistake is made more often with Eagle and KiCad tools, where if you do not refill copper, your Gerber file will contain incomplete copper fills. Always run the fill command before export.
- Drill unit error – Mismatch of inches and mm units in drill file will scale your holes. Check the unit of your drill output.
Final File Package Checklist
- Gerber files (all layers):
- Drill files:
.drl o .txt)- Supporting documents (for assembly):
- Package:
.zip archiveEmerging Trends: Gerber X3 and Beyond
Ready to Submit? Let’s Get Your Boards Manufactured
Domande frequenti
This article was originally published in April 2023 and last updated on July 29, 2026.
Collabora con FS Technology e ottieni un servizio professionale di assemblaggio di schede elettroniche (PCBA).
Blog correlati
Table of Contents How to Read a Circuit Board: A Complete Step-by-Step Guide for Engineers and Technicians (2026) Printed Circuit Board Assemblies (PCBAs) form the
The Ultimate Guide to WiFi Extenders: Technology, Market Trends, and PCBA Manufacturing Insights Think about this: you are conducting an important video conference, and then
Table of Contents What Is SMT? Surface Mount Technology Explained for PCBA This article was originally published in June 2022 and last updated on August
Table of Contents Voice Assistant PCBA: MEMS Microphone Array Layout & Echo Cancellation Guide In today’s smart home hubs, AI edge devices, vehicle infotainment and
Table of Contents How to Generate PCB Gerber Files: A Complete Walkthrough for Altium, KiCad, and Eagle This article was originally published in Aug 2023
Table of Contents What is the PCB Meaning in Electronics? This article was originally published in July 2022 and last updated on June 25, 2026.