Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.

How to Merge Multiple Gerber Files: Complete Guide for PCB Engineers

The first time I needed to combine multiple PCB designs into a single Gerber package, I spent far too long searching for the right approach. Whether you’re trying to panelize different boards together, combine layers from separate exports, or merge silkscreen files with assembly drawings, knowing how to merge Gerber files properly saves both time and manufacturing costs. This guide covers every scenario where merging Gerber files makes sense and walks through the practical methods to accomplish it.

Why Merge Multiple Gerber Files?

There are several situations where PCB engineers need to merge Gerber files, and each requires a slightly different approach.

Common Reasons for Gerber File Merging

ScenarioPurposeTypical Approach
PanelizationCombine multiple boards into one manufacturing panelMerge all layers + add panel features
Layer combiningMerge silkscreen with assembly layerCombine specific layers only
Mixed designsDifferent boards on same panelFull file set merging
Revision consolidationCombine old and new design sectionsSelective layer merging
Logo/artwork additionAdd graphics to existing designSingle layer merge
Cost reductionMultiple prototypes in one orderFull panelization merge

Understanding your specific goal determines which merging method works best. Panelizing requires merging corresponding layers from multiple designs while maintaining alignment. Adding a logo to silkscreen only requires merging a single layer.

Understanding Gerber File Structure for Merging

Before merging Gerber files, you need to understand what you’re combining. Each Gerber file represents a single layer—merging combines the graphical data from multiple files while maintaining the coordinate system.

Layer Matching Requirements

When merging multiple PCB designs, corresponding layers must be combined:

Source Board 1Source Board 2Merged Output
board1.GTLboard2.GTLpanel.GTL
board1.GBLboard2.GBLpanel.GBL
board1.GTSboard2.GTSpanel.GTS
board1.GBSboard2.GBSpanel.GBS
board1.GTOboard2.GTOpanel.GTO
board1.GBOboard2.GBOpanel.GBO
board1.GKOboard2.GKOpanel.GKO
board1.DRLboard2.DRLpanel.DRL

The merging process reads each layer file, applies coordinate offsets to position boards correctly, and writes combined output files that contain data from all source boards.

Critical Merge Considerations

FactorImportanceNotes
Coordinate originCriticalAll boards must use consistent origin reference
UnitsCriticalDon’t mix inch and metric within a merge
FormatImportantRS-274X recommended for all files
Layer countCriticalAll boards must have same layer count
Aperture definitionsImportantMay need consolidation
Board specificationsCriticalSame thickness, copper weight, finish

Methods to Merge Multiple Gerber Files

You have several options for merging Gerber files, ranging from free command-line tools to professional CAM software.

Method 1: GerberPanelizer (Free GUI Tool)

GerberPanelizer is a free Windows application that merges Gerber files through a visual interface. It’s designed primarily for panelization but works for any Gerber merging task.

Step-by-step process:

  1. Prepare source files: Organize each board’s Gerbers in separate folders with proper naming (.GTL, .GBL, .GTS, etc.)
  2. Rename outline files: If using KiCad, rename .gm1 files to .gko (the extension GerberPanelizer expects for board outlines)
  3. Create new project: Open GerberPanelizer, select File → New
  4. Set panel dimensions: Configure panel size in Panel Properties (e.g., 100x100mm)
  5. Import boards: Drag each Gerber folder onto the workspace. Boards appear in the layout area.
  6. Arrange boards: Use Board Placement → Autopack or manually position boards. Right-click boards to add instances for duplicates.
  7. Add breakaway features: If panelizing, use Breaktabs → Create Breaktabs to add mouse bites between boards
  8. Verify panel: All boards should show green status indicating valid panel configuration
  9. Export merged Gerbers: File → Export Merged Gerbers. Select an empty output directory.
  10. Verify output: Open merged files in a Gerber viewer to confirm correct merging

GerberPanelizer tips:

  • Files merge by extension—all .GTL files become one merged .GTL
  • Board outline should only appear in .GKO file, not duplicated in other layers
  • Save project file before exporting (exports cannot be edited later)
  • Tool generates preview images showing front and back of merged panel

Method 2: GerbMerge (Command Line Tool)

GerbMerge is a Python-based command-line tool for merging RS-274X Gerber files. It’s powerful for automated workflows and scripting.

Installation:

pip install gerbmerge

Basic usage:

Create a configuration file (merge.cfg) defining your boards:

[MergeOutputFiles]Prefix = merged[JobBoard1]BoardFile = board1/board1*TopLayer = board1.GTL*BottomLayer = board1.GBL…[JobBoard2]BoardFile = board2/board2*TopLayer = board2.GTL…

Run the merge:

gerbmerge merge.cfg layout.txt

GerbMerge features:

  • Automatic board placement optimization
  • Manual placement via layout file
  • Support for different board orientations (rotation)
  • Excellon drill file merging
  • Configurable panel dimensions

Limitations:

  • Requires rectangular board outlines
  • Configuration file syntax has learning curve
  • Maximum 26 unique drill sizes in merged output

Method 3: CAM350 (Professional CAM Software)

CAM350 is industry-standard CAM software with comprehensive Gerber merging capabilities.

Merging process in CAM350:

  1. Import first design: File → Import → AutoImport. Select directory containing first board’s Gerbers.
  2. Import drill data separately: File → Import → Drill Data. Select Excellon file.
  3. Save as CAM file: File → Save to preserve imported data
  4. Merge additional boards: File → Merge. Select second board’s CAM file or import its Gerbers.
  5. Position merged board: Right-click to place at desired offset
  6. Repeat for additional boards: Merge as many boards as needed
  7. Consolidate layers: For each layer type, use Edit → Move To Layer to combine corresponding layers from all boards onto single output layers
  8. Add panel features: Draw board outline, add V-score lines or routing paths
  9. Export merged Gerbers: File → Export → Gerber Data
  10. Export merged drills: File → Export → Drill Data

CAM350 advantages:

  • Full editing capabilities during merge
  • DFM checking on merged panel
  • Professional-grade layer management
  • Handles complex aperture definitions

Method 4: Merging Within PCB Design Software

If you have access to original design files (not just Gerbers), merging within your CAD tool is often easier.

Altium Designer:

  • Use Embedded Board Array feature
  • Place → Embedded Board Array
  • Select source PCB files
  • Configure array dimensions
  • Export Gerbers from panel document

KiCad:

  • File → Append Board to add designs to current PCB
  • Manually arrange appended boards
  • Add panel outline and breakaway features
  • Plot combined Gerbers

Eagle:

  • Use panelize.ulp script
  • Run ULP → panelize.ulp
  • Configure array parameters
  • Generate Gerbers via CAM processor

Merging Specific Layer Types

Different merging scenarios require attention to specific layer behaviors.

Merging Copper Layers

Copper layer merging is straightforward—graphical data simply combines. Ensure adequate spacing between boards to prevent shorts during manufacturing.

ConsiderationRequirement
Minimum spacing0.5mm between copper from different boards
Ground planesMay need adjustment at board edges
Thermal reliefVerify pour settings don’t create issues

Merging Solder Mask Layers

Solder mask files are typically negative polarity—drawn areas represent openings. When merging, maintain this polarity consistently.

Watch for:

  • Polarity consistency between source files
  • Expansion settings from original designs
  • Coverage of routing/tab areas in panel

Merging Silkscreen Layers

Silkscreen merges require attention to text overlap and readability.

IssueSolution
Overlapping textAdjust board spacing or edit merged output
Different fontsAccept inconsistency or standardize before merge
Logo additionMerge logo file with existing silkscreen layer

Merging Drill Files

Drill file (Excellon) merging requires special attention because drill files contain tool definitions that must be consolidated.

Drill merging challenges:

  • Different tool numbering in source files
  • Exceeding maximum tool count (typically 26-99 depending on manufacturer)
  • Coordinate format inconsistencies
  • Plated vs. non-plated hole separation

Best practice: Verify merged drill file in Gerber viewer overlaid with copper layers to confirm hole positions align with pads.

Merging Board Outline Layers

When combining multiple boards, the original board outlines become internal routing paths, and a new panel outline encompasses all boards.

Original FilesMerged Result
Board 1 outlineInternal routing path
Board 2 outlineInternal routing path
Panel boundaryNew outer outline
Breakaway tabsAdded between boards

Common Merging Problems and Solutions

Gerber merging can introduce issues that weren’t present in original files.

Alignment Problems

Symptom: Layers don’t align correctly in merged output

Causes and fixes:

CauseSolution
Different originsStandardize origin before merging
Coordinate format mismatchConvert all files to same format
Unit inconsistencyConvert all to mm or all to inches
Scaling issuesVerify no scaling applied during merge

Drill Misalignment

Symptom: Drill holes offset from copper pads

Common causes:

  • Different coordinate origins between Gerber and drill exports
  • Trailing vs. leading zero format mismatch
  • Inch vs. metric unit confusion

Solution: Open merged files in viewer, overlay drill layer on copper, and verify alignment before sending to manufacturer.

Aperture Conflicts

Symptom: Strange pad shapes or missing features

Cause: D-code conflicts when merging files with different aperture definitions

Solution: Use merge tool that properly consolidates aperture lists, or manually verify aperture table in merged output.

Missing Layers

Symptom: Some layers don’t appear in merged output

Cause: File extension mismatch or layer mapping errors

Solution: Verify all source files use consistent naming conventions before merging.

Best Practices for Merging Gerber Files

Follow these guidelines to ensure successful merges.

Pre-Merge Checklist

StepAction
1Verify all source boards DRC-clean
2Confirm identical layer stackup
3Standardize file naming conventions
4Convert all files to RS-274X format
5Use consistent coordinate units
6Document board origins

During Merge

StepAction
1Import files from organized folder structure
2Verify each board loads correctly
3Check layer mapping before proceeding
4Position boards with adequate spacing
5Save intermediate work
6Add panel features (outline, tabs, fiducials)

Post-Merge Verification

CheckMethod
Layer alignmentOverlay all layers in viewer
Drill alignmentOverlay drill on copper layers
Board spacingMeasure in viewer
File completenessVerify all layer files present
Aperture validityCheck for errors when loading
Manufacturer acceptanceUpload to online viewer/DFM tool

Useful Resources for Merging Gerber Files

Merging Tools

ToolTypePlatformURL
GerberPanelizerGUIWindowsgithub.com/ThisIsNotRocketScience/GerberTools
GerbMergeCLICross-platformgithub.com/unwireddevices/gerbmerge
hm-panelizerGUICross-platformgithub.com/halfmarble/hm-panelizer
KiKitCLI/PluginCross-platformgithub.com/yaqwsx/KiKit
CAM350ProfessionalWindowsdownstreamtech.com
CamtasticProfessionalWindowsaltium.com

Verification Tools

ToolPurposeURL
GerbvFree Gerber viewergerbv.github.io
KiCad GerbViewFree Gerber viewerkicad.org
ViewMateFree/paid viewerpentalogix.com
HQDFM OnlineOnline DFM checknextpcb.com
Ucamco Reference ViewerOnline viewergerber-viewer.ucamco.com

Manufacturer Online Viewers

ServiceNotes
JLCPCBInstant render, DFM feedback
PCBWayLayer preview, pricing
OSH ParkRenders with purple mask
Seeed StudioPanel preview

Frequently Asked Questions

Can I merge Gerber files from different CAD tools?

Yes, Gerber is a standardized format, so files from different CAD tools (KiCad, Eagle, Altium, OrCAD) can be merged together. However, you must ensure all files use the same format version (RS-274X recommended), consistent units, and compatible coordinate systems. The challenge is usually in file naming conventions—different tools use different extensions. Standardize naming to Protel conventions (.GTL, .GBL, etc.) before merging. Also verify that all source designs share identical specifications: same layer count, board thickness, copper weight, and surface finish.

How do I merge just one layer, like adding a logo to silkscreen?

To merge a single layer (such as adding a logo to existing silkscreen), you only need to combine the specific layer files. In GerberPanelizer, you can add a logo Gerber to the same folder as your board—files merge by extension, so both .GTO files combine automatically. In CAM350, import both files to the same layer and they’ll overlay. The key is positioning—apply a coordinate offset to the logo file so it appears in the correct location. Create the logo as a separate Gerber file with the same origin as your main design for easiest alignment.

What’s the maximum number of boards I can merge into one panel?

There’s no hard limit on the number of boards you can merge—the constraint is typically the maximum drill tool count. Most merging tools and manufacturers support 26-99 unique drill sizes across the merged panel. If your combined designs exceed this limit, you’ll need to standardize hole sizes across designs before merging. Physical constraints also apply: your merged panel must fit within your manufacturer’s maximum panel size (commonly 450x600mm for production). For prototype services, panels are typically limited to 100x100mm or similar, which practically limits the number of boards you can include.

Why do my merged drill files show holes in wrong positions?

Drill misalignment after merging almost always results from inconsistent coordinate settings between original Gerber and drill exports. Check three things: First, verify the coordinate origin used for drill export matches the Gerber origin. Second, confirm the coordinate format (leading/trailing zero suppression) is consistent. Third, ensure units match—mixing inch Gerbers with metric drill files causes 25.4x scaling errors. To diagnose, load merged output in a Gerber viewer and overlay the drill layer on top copper. If holes are systematically offset in one direction, the origin was different. If holes appear scaled wrong, you have a unit mismatch.

Should I merge Gerber files myself or let the manufacturer do it?

For standard panelization of identical boards, manufacturers typically handle this automatically and efficiently—they combine your design with other customers’ boards to fill their production panels. However, merge Gerber files yourself when you need multiple different designs on one panel (manufacturers charge extra for this), when you have specific panel configuration requirements, or when you want control over board arrangement and breakaway tab placement. For prototypes where you’re ordering from pooled services (OSH Park, JLCPCB), letting them panelize is usually more cost-effective. For production quantities or mixed-design panels, creating your own merged Gerbers gives you full control.

Conclusion

Merging multiple Gerber files is a fundamental skill for PCB engineers working with panelization, cost optimization, or complex multi-board projects. Whether you choose a free GUI tool like GerberPanelizer, a command-line solution like GerbMerge, or professional CAM software like CAM350, the principles remain the same: organize your source files consistently, merge corresponding layers correctly, verify the output thoroughly.

The most important step is verification. Always load your merged output in a Gerber viewer before sending to manufacturing. Check layer alignment, drill positions, board spacing, and panel outline. A few minutes of verification prevents expensive mistakes and manufacturing delays.

Start with simple merges—combining identical boards into a panel—before attempting complex multi-design merges. As you gain experience, you’ll develop workflows that reliably produce correct merged output, saving time and reducing your per-board manufacturing costs through efficient panelization.

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.

  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.

Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.