Table of Contents
What are Gerber Files?
Gerber files are a critical component in the PCB soldering process. Gerber files, also known as photolithography files, are a standard two-dimensional image file format widely used to depict the graphical data of a PCB, including pads, traces, vias, and all other physical levels of detail. It allows PCB manufacturers to understand exactly what the designer intended and to produce according to this design data.
- Top and bottom copper layers
- Top and bottom solder mask
- Top and bottom silkscreen legend
- Drill holes
- Board outline
The Benefits of the Gerber File Format
The Gerber file plays a vital role in the PCB manufacturing process, and its main roles include:
Accurate Guidance for Production
Bridging Design and Manufacturing
Standardised communication language
A Brief History of Gerber Files
This was improved with RS-274X, which combined aperture definitions, commands, and coordinate data into a single, more complete Gerber file. The latest Gerber X2 standard adds even smarter metadata like pad types for more intelligent PCB fabrication.
Gerber File Composition
- Configuration Parameters – Specifies settings like units of measurement, image polarity, and coordinates format. This ensures the manufacturer interprets the file correctly.
- Aperture Definitions – Defines “apertures” or standardized shapes/sizes for flashes and draws, similar to fonts. Circles, rectangles, polygons, and more complex apertures can be defined.
- Image Commands – Consists of simple commands like “D02” for draw, “D03” for flash, and “D01” for move. Draw traces out paths while flash fills in pads, vias, and regions.
- Coordinate Data – Lists X-Y coordinates locating where image commands like draw and flash are performed. Draw commands list a series of coordinate points to connect.
Copper Layers
Solder Mask Layers
Silkscreen Legend Layers
Drill Files
Board Outline Layer
Other Layers
The Gerber File Format Explained
- ASCII Text File – Gerber files are plain text files using ASCII characters to encode all data.
- Simple Graphics Primitives – Uses basic draw, flash, and move commands rather than higher-level graphics.
- Aperture Definitions – Apertures define the sizes and shapes of graphics primitives.
- Compact But Powerful – While terse and arcane, the format efficiently conveys all PCB visuals.
- Numeric Control Origins – Still contains syntax from its roots driving photoplotter numeric control.
Viewing and Validating Gerber Files
- Layer Accuracy – Do copper layers match schematics? Are mask and legend layers correct?
- Alignment – Are layers precisely lined up with no offsets?
- Completeness – Are all necessary layers included?
- Polarity – Are images of dark and light areas correct?
- Sizes and Shapes – Are apertures rendering correctly?
Creating Gerber Files with CAD Software
- Checking Settings – Confirm your design’s units, coordinates format, and other parameters match the output settings.
- Generating Layers – Export individual Gerber files for each physical layer of your board.
- File Naming – Name files appropriately according to their layer using extensions like .GBR or .GTS.
- Visual Verification – thoroughly inspect layers in a Gerber viewer before releasing.
- Outputting Drills – Include an NC drill file in addition to the Gerber layers.
- Additional Outputs – Fabrication drawings, BOMs, netlists, and other info as required.
- Archiving – Zip the Gerber dataset for simplified transfer and storage.
Gerber Files in PCB Manufacturing
- Photoplotting – Originally for photoplotter film generation, now used in laser photoplotters.
- Direct Imaging-Gerber files are converted into images to drive direct laser imaging of PCB innerlayers.
- CAM processing – Gerber data is processed, optimized, and prepared for fabrication by CAM software tools.
- Solder Masking – The solder mask layer is used to image or pattern the solder mask onto raw PCBs through photolithography.
- Etching Copper – Copper layers image etch-resistant material to selectively remove copper during etching.
- Drilling Holes – Excellon drill files guide PCB drilling machinery.
- Routing – The board outline layer shapes mechanical routing or cutting bits.
- Visualization – Gerber viewers check files, and probe designs, view 3D models, and program AOI inspection systems.
- Layer Alignment – Gerber’s ensure accurate multi-layer board stacking and alignment throughout fabrication.






