Introduction
In the world of Printed Circuit Board (PCB) design and manufacturing, Gerber files play a crucial role in the communication between the design software and the PCB fabrication process. Gerber files are a standardized file format that contains all the necessary information for the fabrication of a PCB, including copper layers, solder mask, silkscreen, and drill data. In this article, we will explore how to generate Gerber files using the popular PCB design software, Eagle, and how to visualize and verify these files using an online Gerber viewer.
What are Gerber Files?
Gerber files are a set of vector image files that describe the different layers of a PCB design. Each layer of the PCB, such as the top copper layer, bottom copper layer, solder mask, and silkscreen, is represented by a separate Gerber file. These files use a specific format and syntax defined by the Gerber file format standard, which ensures compatibility across different PCB fabrication processes and software tools.
Gerber files are typically generated from the PCB design software and sent to the PCB manufacturer, who then uses these files to produce the physical PCB boards. The ability to generate and verify Gerber files is an essential step in the PCB design and manufacturing process, as it ensures accurate and reliable communication between the designer and the fabrication facility.
Generating Gerber Files in Eagle

Eagle is a widely used PCB design software that offers a comprehensive suite of tools for designing and generating Gerber files. Here’s a step-by-step guide on how to generate Gerber files in Eagle:
- Open your PCB design in Eagle
- Prepare your design for manufacturing
- Ensure that all components and traces are properly placed and routed
- Check for any design rule violations or errors
- Verify that the design meets the manufacturer’s specifications
- Generate Gerber files
- Go to the “File” menu and select “Cam Processor”
- In the Cam Processor window, click on the “Job” tab
- Click the “Add” button to create a new job
- Configure the Gerber job
- In the “File” section, select the appropriate layers you want to generate Gerber files for (e.g., Top, Bottom, Soldermask, Silkscreen, etc.)
- Choose the appropriate file format for each layer (typically Gerber RS-274X)
- Set the output directory for the Gerber files
- Configure any additional settings or options as required by your manufacturer
- Generate the Gerber files
- Click the “Process Job” button to generate the Gerber files
- Eagle will create separate Gerber files for each layer specified in the job
Once the Gerber files are generated, you can send them to your PCB manufacturer for fabrication. It’s always a good practice to verify the Gerber files before sending them off to ensure that they accurately represent your PCB design.
Using an Online Gerber Viewer
An online Gerber viewer is a web-based tool that allows you to visualize and inspect your Gerber files before sending them off for fabrication. These viewers provide a convenient way to verify the accuracy of your PCB design and catch any potential issues or errors before they become costly mistakes.
There are several online Gerber viewers available, both free and paid. In this article, we’ll demonstrate how to use a popular free online Gerber viewer called “ViewPlus” from Pentalogix.
- Visit the ViewPlus website
- Go to https://www.pentalogix.com/viewPlus/ in your web browser
- Upload your Gerber files
- Click the “Open” button and select the Gerber files you want to view
- ViewPlus supports various Gerber file formats, including RS-274X, RS-274D, and others
- Inspect your PCB design
- Once the Gerber files are loaded, you’ll see a visual representation of your PCB design
- Use the toolbar and navigation tools to zoom, pan, and inspect different layers
- You can toggle the visibility of individual layers or combine multiple layers for a comprehensive view
- Verify design accuracy
- Check for any missing or misaligned components, traces, or features
- Ensure that the silkscreen and solder mask layers align correctly with the copper layers
- Inspect the drill file to ensure that all vias, holes, and pads are correctly represented
- Export or share the design
- If needed, you can export the Gerber viewer session as a shareable link or generate a PDF report
- This can be useful for collaborating with others or documenting the design review process
Using an online Gerber viewer like ViewPlus allows you to catch potential issues early in the design process, saving time and money by avoiding costly fabrication errors or rework.
Best Practices for Generating and Verifying Gerber Files

To ensure a smooth and successful PCB fabrication process, it’s important to follow best practices when generating and verifying Gerber files:
- Follow manufacturer specifications: Always consult and adhere to the PCB manufacturer’s guidelines and specifications for Gerber file generation and formatting. Different manufacturers may have specific requirements or preferences.
- Use consistent design rules: Maintain consistent design rules throughout your PCB design process. This includes adhering to the correct track widths, clearances, via sizes, and other design parameters specified by the manufacturer.
- Verify design rules before generating Gerber files: Before generating Gerber files, run a design rule check (DRC) in your PCB design software to identify and resolve any potential issues or violations.
- Include all necessary layers: Ensure that you generate Gerber files for all required layers, such as copper layers, solder mask, silkscreen, and drill data. Double-check that no layers are missing or incorrectly configured.
- Use an online Gerber viewer: Always visually inspect your Gerber files using an online Gerber viewer before sending them to the manufacturer. This step can help catch any potential errors or discrepancies that may have been overlooked during the design process.
- Document and archive Gerber files: Maintain a well-organized archive of your Gerber files, along with any associated documentation or notes. This can be invaluable for future reference, troubleshooting, or revision purposes.
- Collaborate and communicate: If working with a team or outsourcing the PCB fabrication, ensure clear communication and collaboration throughout the design and manufacturing process. Share Gerber files and design reviews with relevant stakeholders to minimize potential errors or misunderstandings.
By following these best practices, you can increase the likelihood of a successful PCB fabrication process and minimize the risk of costly errors or rework.
FAQs (Frequently Asked Questions)
- What is the difference between Gerber files and drill files? Gerber files represent the different layers of a PCB design, such as copper layers, solder mask, and silkscreen. Drill files, on the other hand, contain information about the locations and sizes of drilled holes, vias, and pads on the PCB.
- Can I generate Gerber files from other PCB design software besides Eagle? Yes, most PCB design software packages, such as Altium Designer, KiCad, and Autodesk EAGLE, have the ability to generate Gerber files. The process and specific steps may vary depending on the software, but the general principles remain the same.
- How do I ensure that my Gerber files are compatible with my PCB manufacturer? It’s important to consult with your PCB manufacturer and follow their specific guidelines and requirements for Gerber file generation. This may include using specific file formats, layer configurations, or additional manufacturing data files.
- Can I modify or edit Gerber files directly? While it is possible to edit Gerber files using specialized software or text editors, it is generally not recommended. Gerber files are intended to be generated directly from the PCB design software to ensure accuracy and consistency. Modifying Gerber files manually can introduce errors and potential compatibility issues.
- How do I combine multiple Gerber files for a comprehensive view in the online viewer? Many online Gerber viewers, including ViewPlus, allow you to load and combine multiple Gerber files for a comprehensive view of your PCB design. This is typically done by selecting or uploading the individual layer files and enabling the desired layer visibility options within the viewer interface.
By understanding the importance of Gerber files, following best practices for their generation and verification, and utilizing online Gerber viewers, you can streamline your PCB design and manufacturing process, ensuring accurate and reliable communication between the designer and the fabrication facility.