# Gerber Files Explained: PCB Layers, Formats & Export

Learn what Gerber files are, which PCB layers and drill files manufacturers need, how to export them, and which errors to check before fabrication.

Written by [Gabriel Hacohen](#)

Published Jul 2026 - 8 min read

![Gerber Files Explained: PCB Layers, Formats & Export](https://www.flux.ai/p/assets/blogs/gerber-files-explained/main.webp)

As electronic computer-aided design (ECAD) software replaced manual drafting tables in the 1970s and 1980s, fabricators needed a universal vector format to drive automated photoplotters. A photoplotter manufacturer known as Gerber Scientific developed a vector graphic format that quickly became the worldwide standard for hardware [manufacturing outputs](https://docs.flux.ai/Introduction/getting-started-in-flux--export-and-manufacturing).

Today, even with direct imaging laser systems, a [Gerber file](https://docs.flux.ai/reference/gerber-export) remains the universal bridge between digital ECAD design software and physical circuit board fabrication. Understanding how these files determine physical board layers, how they differ from native CAD project files, and how to verify a complete **PCB manufacturing package** prevents fabrication delays and costly board re-spins.

### Key Takeaways

-   Each [Gerber file](#what-is-a-gerber-file) represents a single 2D layer or mechanical feature of a physical PCB.
-   A complete **PCB manufacturing package** requires a [Gerber files PCB package](#what-files-are-included-in-a-gerber-package) combined with separate NC drill files and fabrication notes.
-   [Independent inspection](#how-to-generate-and-review-gerber-files) using a 2D **Gerber viewer** before releasing files to fabrication catches alignment, revision, and layer masking errors.

## What Is a Gerber File?

A **Gerber file** is a standardized 2D vector image format used by Computer-Aided Manufacturing (CAM) systems to direct photoplotters, which generate high-precision artwork films for PCB fabrication, and direct-imaging lasers, which project circuit patterns directly onto photoresist-coated copper without requiring film. Rather than treating a circuit board as a complex 3D object, the **Gerber file format** breaks a PCB design down into individual 2D image slices representing specific physical layers of the board.

A complete board layout cannot exist within a single file. Instead, the export process generates a collection of **PCB fabrication files**, where each file defines a specific layer:

-   Top copper
-   Bottom copper
-   Internal signal planes
-   Solder mask boundaries
-   Silkscreen text
-   Mechanical routings

Understanding what a **Gerber file** represents requires understanding the difference between manufacturing outputs from design-source data. A **Gerber file** contains pure vector geometry: lines, flashes, polygons, and arc coordinates, without electrical functionalities. It does not contain [schematic logic](https://docs.flux.ai/Introduction/getting-started-in-flux--schematic), component [footprints](https://docs.flux.ai/tutorials/working-with-footprints), [netlists](https://docs.flux.ai/reference/nets-and-traces), or constraint rules.

### Evolution of the Gerber Format

-   **RS-274D (Standard Gerber):** The legacy vector format required an external wheel table (aperture file) to interpret line widths and shape definitions. Because aperture tables were supplied separately, missing or mismatched aperture files frequently corrupted board geometries.
-   **RS-274X (Extended Gerber):** The widely used standard embeds aperture definitions, units, and coordinate formatting directly into the file header, eliminating external aperture table dependency.
-   **Gerber X2:** The modern extension adds intelligent attributes to the file structure, defining specific layer stackup order, board function (e.g., top copper vs inner plane), and component pin locations directly within the data.
-   **Gerber X3:** This latest extension integrates assembly data directly into the PCB file set by adding dedicated component layers. It embeds reference designators, manufacturer part numbers, and pick-and-place centroid locations. This unifies fabrication and assembly into a single workflow, automating machine programming while remaining fully backward-compatible with legacy viewers.

## What Files Are Included in a Gerber Package For a 2-Layer PCB?

![PCB layer stack cross-section mapped to the Gerber and NC drill files that define each layer, including top copper, solder mask, silkscreen, solder paste, board outline, and through-hole drill files](https://www.flux.ai/p/assets/blogs/gerber-files-explained/layer-map-main.webp)

Cross-section of a standard PCB layer stack alongside the fabrication data used to manufacture it. Copper layers, Solder mask, Silkscreen, Solder paste, Board outline are part of Gerber files.

Generating a complete set of **PCB manufacturing files** requires exporting vector data for every physical layer alongside mechanical drilling instructions.

### Summary of What Gerber Files Contain

| Layer or File Type | What It Defines | Typical Contents |
| --- | --- | --- |
| **Copper Layers** | Conductive pathways and pours | Signal traces, power planes, SMT pads, thru-hole pads |
| **Solder Mask** | Insulation openings | Areas where protective epoxy mask is omitted to expose copper pads |
| **Silkscreen** | Visual labels and markings | Reference designators, pin 1 indicators, logos, warning text |
| **Solder Paste** | Stencil aperture boundaries | Openings for SMT paste deposition during assembly |
| **Board Outline** | Mechanical geometry | Outer board perimeter, internal slots, routed cutouts |

## Gerber Files vs PCB Files and Drill Data

Engineering teams frequently confuse source design files (e.g. PCB files) with manufacturing outputs (e.g., gerber files). Understanding **gerber files vs PCB files** helps designers send correct deliverables to fabrication houses.

-   A native **PCB file** (such as a KiCad .kicad\_pcb or Altium .PcbDoc file) represents the editable CAD database. Such a file contains active components, net connectivity, clearance rules, and parametric footprints.
-   Fabricators generally request flattened **PCB fabrication files** rather than native CAD project files because native files depend on specific software versions, proprietary fonts, and installed library paths.
    -   **PCB Drill files** are supplied separately from standard vector layer files. CNC drilling machinery utilizes NC drill formats (such as Excellon) that specify drill bit diameters, tool numbers, and exact X/Y hole coordinates.

### Differences Between PCB Manufacturing File Types

| Characteristic | Gerber Files | Drill Files | Native PCB File |
| --- | --- | --- | --- |
| **Primary Purpose** | Manufacturing layer geometry | CNC hole drilling data | Editable layout and schematic source |
| **Format Type** | 2D Vector (RS-274X / Gerber X2) | NC Drill (Excellon) | Proprietary database / CAD format |
| **Intelligence** | Geometric shapes and traces | Tool size and X/Y coordinates | Full netlists, components, and DRC rules |
| **Compatibility** | Universal across all fabricators | Universal across CNC drill systems | Software-specific (requires specific ECAD tool) |

## How to Generate and Review Gerber Files

Executing a **PCB Gerber export** requires verifying design constraints before generating output files.

### Step-by-Step Export and Inspection Process

1.  **Run DRC and ERC:** Perform complete Design Rules Checking (DRC) and Electrical Rules Checking (ERC) within the ECAD tool to resolve unrouted traces or clearance violations.
2.  **Confirm Mechanical Layers:** Verify that the board outline is closed, continuous, and drawn on a dedicated mechanical layer.
3.  **Export Gerber Vector Data:** Configure export settings for RS-274X or Gerber X2. While both formats contain the required PCB layer, Gerber X2 includes embedded layer metadata and fabrication attributes that improve automation and reduce manufacturing errors. Export all required copper, solder mask, silkscreen, paste, and mechanical layers.
4.  **Generate NC Drill Files:** Export separate drill files for plated through-holes (PTH) and non-plated through-holes (NPTH), ensuring units and coordinate resolutions match the Gerber export settings.
5.  **Compile Fabrication Notes:** Include stackup specifications, copper weight requirements, surface finish preferences, and solder mask colors in a text file or fabrication drawing.
6.  **Inspect in a Standalone Viewer:** Load the exported ZIP archive into an independent 2D **Gerber viewer** to verify geometry prior to release.

### Pre-Release Verification Checklist

-   Are all required copper, solder mask, silkscreen, and mechanical layers exported?
-   Do drill hole coordinates align perfectly with copper pad centers?
-   Is the board outline continuous, closed, and located on a dedicated mechanical layer?
-   Are solder mask openings correctly defined for all SMT pads and test points?
-   Is silkscreen text legible and kept clear of exposed copper pads?
-   Are internal slots, cutouts, and routing paths clearly documented?
-   Have obsolete or older export files been purged from the ZIP release archive?

## Common Gerber Export Mistakes

Fabrication delays frequently occur due to file packaging errors. Avoiding common pitfalls ensures a smooth transition from CAD design to physical board delivery:

-   **Revision Mismatches:** Including copper layers from Revision B alongside a drill file exported from Revision A causes misaligned holes and broken net connections.
-   **Missing Board Outline:** Omitting the mechanical edge layer forces the fabricator to guess board dimensions or pause production to issue an engineering query.
-   **Unmatched Coordinate Units:** Exporting Gerber layers in metric units while exporting drill files in imperial units results in severe scaling and alignment errors in the fabricator's CAM software.
-   **Inverted or Mirrored Layers:** Accidentally mirroring bottom copper or top silkscreen layers during export results in unworkable PCBs.
-   **Silkscreen Over Solder Pads:** Allowing silkscreen ink to overlap exposed copper pads causes soldering defects during SMT assembly.
-   **Leftover Legacy Files:** Archiving multiple export attempts in the same release folder confuses CAM operators regarding which files represent the final revision.

## How Modern PCB Tools Simplify Manufacturing Outputs

Disconnected design software creates friction during manufacturing handoffs, where schematic updates, board layouts, and exported files exist as separate desktop artifacts.

Modern cloud-native platforms like [Flux](https://www.flux.ai/p) streamline manufacturing handoffs by maintaining connected schematic, layout, and output data in a single workspace. Built-in design rule checks and centralized revision control ensure that exported files accurately reflect the active design state. By providing a shared source of truth, engineering teams and fabricators can conduct collaborative design reviews directly in the browser, reducing revision errors before releasing a **PCB manufacturing package**. [Try Flux now](https://www.flux.ai/p) to simplify PCB manufacturing handoffs and ensure production files are always up to date.

## FAQs

### What is a Gerber file?

A Gerber file is a 2D vector graphic file describing an individual physical layer of a printed circuit board for manufacturing.

### What files are needed to manufacture a PCB?

Fabrication requires a complete PCB manufacturing package containing gerber files for all copper, solder mask, silkscreen, and mechanical layers, combined with NC drill files and fabrication specifications.

### Are drill files included in gerber files?

No. Drill data is generated separately as NC drill files (typically in Excellon format) specifying exact hole coordinates and tool diameters.

### What is the difference between a Gerber file and a PCB file?

A PCB file is an editable CAD design database containing netlists, active components, and layout rules. A Gerber file is a flattened 2D vector manufacturing file containing pure layer geometry without circuit intelligence.

### How do engineers open a Gerber file?

Opening and inspecting gerber files requires utilizing a standalone 2D Gerber viewer software or web tool.

### How do designers check gerber files before manufacturing?

Designers load the complete ZIP archive into an independent Gerber viewer to check layer alignment, verify solder mask clearances, inspect silkscreen legibility, and confirm drill hole registration.

### Are gerber files still used in modern PCB manufacturing?

Yes. While formats like ODB++ and IPC-2581 exist, the Gerber file format (specifically Extended RS-274X and Gerber X2) remains the global standard for PCB fabrication.

## About the author

Gabriel Hacohen

Electronics Engineer at Flux

Gabriel Hacohen is an electrical engineer with deep expertise in analog circuitry, medical devices, high-performance computing, and semiconductors. He holds both Bachelor's and Master's degrees in Electrical Engineering and has written for companies including NVIDIA, Cadence, Synopsys, Netflix, and Autodesk.

Let’s start building

Build your big idea together with Flux. All you need to do is describe what you want to make, or what problem you want to solve. Flux will work with you to make it a reality.

![Close-up photo of a PCB made with Flux, with an ESP32 module, buttons, and a microSD slot.](https://www.flux.ai/p/assets/blogs/miscellaneous/sidebar-cta-pcb.webp) [Try it Free](https://www.flux.ai/signup)

## More in Business & Strategy Library

[

![Handwritten sketches of a modern electronic device prototype](https://www.flux.ai/p/assets/blogs/hardware-startup-ideas/main.webp)

### Is Your Hardware Startup Idea Worth Building?

7 Min Read](https://www.flux.ai/p/blog/is-your-hardware-startup-idea-worth-building)[

![A guide to collaborative PCB design showing cloud-based tools and real-time team workflows](https://www.flux.ai/p/assets/blogs/collaborative-pcb-design/main.webp)

### Collaborative PCB Design: Why Hardware Teams Are Moving to the Cloud

7 Min Read](https://www.flux.ai/p/blog/collaborative-pcb-design)[

![Electronic components on tape reels and trays staged around a PCB, representing component sourcing for production.](https://www.flux.ai/p/assets/blogs/electronic-component-sourcing/main.webp)

### Electronic Component Sourcing: Lead Times & Component Lifecycles

9 Min Read](https://www.flux.ai/p/blog/electronic-component-sourcing)[

![Design for manufacturing workflow taking a validated PCB prototype into scalable production.](https://www.flux.ai/p/assets/blogs/design-for-manufacturing/main.webp)

### Design for Manufacturing: How to Move from Prototype to Production

12 Min Read](https://www.flux.ai/p/blog/design-for-manufacturing)[

![An illustration showing PCB manufacturing cost optimization strategies including layer count reduction and standard material selection](https://www.flux.ai/p/assets/blogs/pcb-cost-optimization-guide/main.webp)

### PCB Cost Optimization: How to Reduce Manufacturing Costs

6 Min Read](https://www.flux.ai/p/blog/pcb-cost-optimization-guide)[

![An illustrated guide to IoT PCB design showing layout, power, and wireless considerations](https://www.flux.ai/p/assets/blogs/iot-pcb-design/main.webp)

### Designing PCBs for IoT Devices: Key Considerations

8 Min Read](https://www.flux.ai/p/blog/iot-pcb-design)[

![Illustration titled '5 Common Mistakes Working with PCB Contractors' showing a PCB design tool Flux with online collaboration mouse cursor for 'Your Company' and 'PCB Contractor'. A chat message overlay from 'Marty' states, 'This isn’t going to work! We’re behind schedule now :(.'"](https://www.flux.ai/p/assets/blogs/5-common-mistakes-when-working-with-pcb-contractors/main.webp)

### 5 Common Mistakes Working with PCB Contractors

8 Min Read](https://www.flux.ai/p/blog/5-common-mistakes-working-with-pcb-contractors)[

![Curated list of hardware founders should read](https://www.flux.ai/p/assets/blogs/hardware-founders-bookshelf/main.webp)

### The Hardware Founder’s Bookshelf

8 Min Read](https://www.flux.ai/p/blog/the-hardware-founders-bookshelf)[

![Flux helps you design with live pricing and stock data, using AI to find in-stock parts and fast replacements before your BOM breaks.](https://www.flux.ai/p/assets/blogs/component-pricing-availability-2026/main.webp)

### Design with Real-Time Supply Chain Visibility

3 Min Read](https://www.flux.ai/p/blog/design-real-time-supply-chain-visibility-2026)[

![A hand holding a small red printed circuit board module](https://www.flux.ai/p/assets/blogs/fearn-trade-secrets-vs-patents/main.webp)

### PCB Trade Secrets vs. Patents: How Hardware Founders Protect Electronics IP

10 Min Read](https://www.flux.ai/p/blog/pcb-trade-secrets-vs-patents)[

![A handheld pulse oximeter representing a patented physical hardware product](https://www.flux.ai/p/assets/blogs/fearn-patent-considerations/main.webp)

### Hardware Patent Strategy for PCB Engineers: 8 Pitfalls to Avoid

11 Min Read](https://www.flux.ai/p/blog/hardware-patent-strategy-pcb-engineers)[

![An electronic device taken apart, with every component laid out. Anyone who buys a product can do this, so a trade secret that a teardown would reveal stops being a trade secret once the product ships.](https://www.flux.ai/p/assets/blogs/fearn-defensive-publication/main.webp)

### What is a Defensive Publication? (vs. Patents and Trade Secrets)

7 Min Read](https://www.flux.ai/p/blog/what-is-a-defensive-publication)[

![Illustration showing Git-style version control applied to PCB hardware design with branching and revision history](https://www.flux.ai/p/assets/blogs/git-for-hardware/main.webp)

### Git for Hardware: Version Control for PCB Design Teams

8 Min Read](https://www.flux.ai/p/blog/git-for-hardware)[

![A guide to PCB version control showing revision tracking, Git workflows, and cloud collaboration for hardware teams](https://www.flux.ai/p/assets/blogs/pcb-version-control/main.webp)

### PCB Version Control Explained: How Hardware Teams Track Design Changes

8 Min Read](https://www.flux.ai/p/blog/pcb-version-control)[

![PCB design history and revision management best practices for tracking changes and improving collaboration](https://www.flux.ai/p/assets/blogs/pcb-design-history-revision-management/main.webp)

### PCB Design History and Revision Management Best Practices

5 Min Read](https://www.flux.ai/p/blog/pcb-design-history-revision-management)[

![Real-time PCB collaboration showing how modern hardware teams design together in a shared workspace](https://www.flux.ai/p/assets/blogs/real-time-pcb-collaboration/main.webp)

### Real-Time PCB Collaboration: How Modern Teams Design Together

7 Min Read](https://www.flux.ai/p/blog/real-time-pcb-collaboration)[

![Copilot scanning a board for components with EOL and NRND lifecycle status](https://www.flux.ai/p/assets/blogs/ai-supply-chain/main.webp)

### AI Gives You the Power of an Entire Supply-Chain Team

3 Min Read](https://www.flux.ai/p/blog/ai-gives-you-the-power-of-an-entire-supply-chain-team)[

![A guide to PCB component library management showing symbols, footprints, and 3D models for hardware design](https://www.flux.ai/p/assets/blogs/pcb-component-library-management/main.webp)

### PCB Component Libraries: Best Practices for Managing Parts

7 Min Read](https://www.flux.ai/p/blog/pcb-component-library-management)[

![A guide to creating and managing PCB footprint libraries using IPC standards and validation best practices](https://www.flux.ai/p/assets/blogs/pcb-footprint-library-management/main.webp)

### How to Create and Manage PCB Footprint Libraries

6 Min Read](https://www.flux.ai/p/blog/pcb-footprint-library-management)[

![PCB library management showing how hardware teams standardize components across projects with centralized libraries](https://www.flux.ai/p/assets/blogs/pcb-library-management/main.webp)

### PCB Library Management: How to Standardize Components Across Teams

7 Min Read](https://www.flux.ai/p/blog/pcb-library-management)[

![Flux for Librarians](https://www.flux.ai/p/assets/blogs/flux-for-librarians/main.webp)

### Flux for Librarians

4 Min Read](https://www.flux.ai/p/blog/flux-for-librarians)[

![Prototyping vs. Production-Ready Electrical Engineering](https://www.flux.ai/p/assets/blogs/biskuit-ai/main.webp)

### Prototyping vs. Production-Ready Electrical Engineering

6 Min Read](https://www.flux.ai/p/blog/prototyping-vs-production-ready-electrical-engineering-the-same-game-different-tradeoffs)[

![PCB Manufacturing Process Explained Step-by-Step](https://www.flux.ai/p/assets/blogs/pcb-manufacturing-process/main.webp)

### PCB Manufacturing Process Explained Step-by-Step

16 Min Read](https://www.flux.ai/p/blog/pcb-manufacturing-process)[

![PCB design documentation checklist showing essential manufacturing package files including Gerbers, BOMs, and assembly drawings](https://www.flux.ai/p/assets/blogs/pcb-design-documentation/main.webp)

### PCB Design Documentation: What Every Manufacturing Package Should Include

7 Min Read](https://www.flux.ai/p/blog/pcb-design-documentation)[

![PCB Design for Manufacturability (DFM): Rules and Best Practices](https://www.flux.ai/p/assets/blogs/pcb-design-for-manufacturability-dfm/main.webp)

### PCB Design for Manufacturability (DFM): Rules and Best Practices

8 Min Read](https://www.flux.ai/p/blog/pcb-design-for-manufacturability-dfm)[

![An illustrated guide to PCB panelization methods and best practices for manufacturing](https://www.flux.ai/p/assets/blogs/pcb-panelization/main.webp)

### Panelization in PCB Manufacturing: Methods and Best Practices

6 Min Read](https://www.flux.ai/p/blog/pcb-panelization)[

![A detailed illustration comparing PCB prototyping and production fabrication processes for hardware development](https://www.flux.ai/p/assets/blogs/pcb-prototyping-vs-fabrication/main.webp)

### PCB Prototyping vs. Fabrication: Which Process Is Right for Your Project?

8 Min Read](https://www.flux.ai/p/blog/pcb-prototyping-vs-fabrication)[

![A guide to PCB reverse engineering showing board analysis, schematic extraction, and common use cases](https://www.flux.ai/p/assets/blogs/pcb-reverse-engineering/main.webp)

### PCB Reverse Engineering: How It Works and When to Use It

8 Min Read](https://www.flux.ai/p/blog/pcb-reverse-engineering)[

![Illustration for PCB Testing Methods: Ensuring Quality and Reliability](https://www.flux.ai/p/assets/blogs/pcb-testing-methods/main.webp)

### PCB Testing Methods: Ensuring Quality and Reliability

5 Min Read](https://www.flux.ai/p/blog/pcb-testing-methods)[

![Close-up view of a pick-and-place machine in a PCB manufacturing facility, automating the process of placing components and circuit board printing.](https://www.flux.ai/p/assets/blogs/pcb-manufacturing/main.webp)

### Discovering PCB Manufacturing: Technologies That Shape the Industry

3 Min Read](https://www.flux.ai/p/blog/discovering-pcb-manufacturing-technologies-that-shape-the-industry)[

![PCBA workflow sequence showing eight stages from bare PCB to electrical testing](https://www.flux.ai/p/assets/blogs/what-is-pcba/main.webp)

### What Is PCBA? PCB vs PCBA and Assembly Explained

7 Min Read](https://www.flux.ai/p/blog/what-is-pcba)[

![Reflow soldering thermal profile overlaid on a populated PCB, showing the preheat, soak, spike, and cooling zones](https://www.flux.ai/p/assets/blogs/what-is-a-reflow-oven/main.webp)

### What Is a Reflow Oven? PCB Reflow Soldering Explained

7 Min Read](https://www.flux.ai/p/blog/what-is-a-reflow-oven)[

![Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors](https://www.flux.ai/p/assets/blogs/jlcpcb-gerber-file-error/main.webp)

### Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors

5 Min Read](https://www.flux.ai/p/blog/jlcpcb-gerber-file-error)

See All (33)

## Let’s start building.

Let’s build your idea together. All you need to do is describe what you want to make, or what problem you want to solve. Flux will work with you to make it a reality.

[Try it Free](https://www.flux.ai/signup)

 ![Close-up of a Flux-designed printed circuit board](https://www.flux.ai/p/assets/homepage-v2/mission-visual.webp)
