The final step in keyboard PCB design is generating manufacturing files that accurately communicate your design to the fabrication facility. Gerber image files describe layer features such as copper, mask openings and legend. Drills, stackup, fabrication notes and assembly data complete the manufacturing package. Errors in file generation can result in incorrect boards, manufacturing delays, or rejected orders.
Before release, validate the keyboard Gerber layers, drill files and fabrication drawing with the selected PCB supplier. A supplier can flag manufacturability concerns, but file review is not a substitute for an electrical design verification.
In This Guide
- Understanding Gerber File Layers
- Drill File Formats and Generation
- Supported PCB Design Software
- KiCad Export Process (Example)
- Gerber Verification Before Submission
- Assembly Files: BOM and Position Data
- File Organization and Manufacturer Specifications
Understanding Gerber File Layers
Use an Extended Gerber/RS-274X or Gerber X2 output accepted by the fabricator. X2 adds attributes that can identify file function and other manufacturing information. The format owner, Ucamco, publishes the specification and reference tools. File extensions are naming conventions; an extension alone does not prove the file format or layer function.
Required Files for 2-Layer Keyboard PCB
| File | Extension | Description |
|---|---|---|
| Top Copper | .GTL | Traces, pads, copper pours on top |
| Bottom Copper | .GBL | Traces, pads, copper pours on bottom |
| Top Solder Mask | .GTS | Mask openings for soldering |
| Bottom Solder Mask | .GBS | Mask openings on bottom |
| Top Silkscreen | .GTO | Component labels, graphics |
| Bottom Silkscreen | .GBO | Labels on bottom (if used) |
| Board Outline | .GKO/.GM1 or named .gbr | Closed external boundary and any defined internal cutouts; state slots/routing separately |
Optional Files
- Paste Layers (.GTP, .GBP): Intended stencil apertures when stencil/SMT assembly is in scope; the assembler reviews reductions and special package requirements
- Drill Drawing: Hole/slot map with plating, finished-size tolerances and special notes; it supplements rather than replaces machine drill/routing data
Copper layers define conductive features. Solder mask layers normally represent mask openings; polarity and layer attributes must be confirmed in the exported format. Silkscreen defines the legend and must respect solderable-area keepouts. Board outline needs a closed external boundary, with closed internal cutouts where present. Do not add a second, conflicting outline on another fabrication layer. For multilayer boards, include every copper layer with an unambiguous stack order.
Drill File Formats and Generation
Excellon drill data are commonly used for tool definitions and hole coordinates; Gerber-based drill output is another option when the recipient accepts it. State units, coordinate format/origin and the meaning of hole dimensions. A fabrication drawing should specify finished plated-hole size and tolerance; a drill tool is selected to account for the manufacturing process.
Keyboard Hole and Slot Checks
Use the exact switch, socket, stabilizer and mounting drawings. Different MX-style, Choc, optical and individual-receptacle footprints are not interchangeable. In particular:
- Vias and electrical leads: Identify finished PTH diameter and tolerance, annular ring and any fill/cap requirement.
- Switch guide posts and socket bosses: Check each mechanical feature and plating designation; do not copy one generic set of keyboard hole sizes.
- Individual receptacles: Match the complete part number’s mounting-hole requirement. A receptacle barrel dimension is not automatically the finished hole diameter.
- Stabilizers and mounting: Check plate/case alignment, screw clearance, keepouts and any plated mounting connection.
- Slots and internal cutouts: Include their dimensions, end geometry, plating and routing instructions, not just a line in a screenshot.
PTH vs NPTH
Plated Through-Holes (PTH): Copper-plated for electrical connection—switch pins, vias, component leads.
Non-Plated (NPTH): Unplated mechanical features such as specified alignment or mounting holes. Some mounting connections are intentionally plated, so follow the released design rather than inferring plating from the hole’s name.
Best practice: Separate PTH and NPTH outputs where the fabricator requests them, or use its agreed alternative with explicit plating identification. Decimal millimeter output is a useful choice when accepted; preserve units and format declarations and check the imported drill overlay.
Essential Gerber Files
Supported PCB Design Software
RS-274X (extended Gerber) and Gerber X2 are commonly accepted fabrication data formats, but fabrication inputs must be checked for the actual CAM output, format settings, aperture definitions, drills and stackup. Confirm the preferred format with the recipient fabricator.
Popular PCB Design Tools
Professional/Commercial:
- Altium Designer: Industry-standard professional tool with comprehensive Gerber export
- Cadence OrCAD/Allegro: Enterprise-level PCB design suite
- Mentor PADS/Xpedition: Professional PCB design with advanced features
- Zuken CR-8000: High-end design for complex boards
Accessible/Hobbyist-Friendly:
- KiCad: Free, open-source, extremely popular in keyboard community
- EasyEDA: Free web-based tool with integrated ordering
- Legacy Autodesk EAGLE projects: Autodesk ended sales and support after June 7, 2026. Retain the source, libraries and verified manufacturing outputs when planning migration (KiCad vs Eagle).
- Autodesk Fusion 360 Electronics: Integrated mechanical/electronics design
- CircuitMaker: Free community-based tool from Altium
Specialized:
- Diptrace: Affordable professional-grade tool
- Target 3001!: German software with strong European following
- DesignSpark PCB: Free tool from RS Components
Common Export Features
For these tools and legacy projects, verify the installed version’s CAM export options. Layer names, attribute support, drill/slot handling and assembly-coordinate conventions differ. Inspect the actual outputs rather than assuming every exporter produces identical files. The KiCad example below illustrates the release checks.
KiCad Export Process (Example)
This example follows the KiCad 9 PCB Editor fabrication-output documentation. Menu labels and options can change with version. Before export, finish the design checks, refill zones and resolve or explicitly approve DRC exceptions; also verify third-party switch/socket footprints against their drawings.
Gerber Export (File → Plot)
Output directory: Create dedicated folder (e.g.,
./gerber/)Format: Select "Gerber"
Layers to plot:
- F.Cu, B.Cu (copper)
- F.SilkS, B.SilkS (silkscreen)
- F.Mask, B.Mask (solder mask)
- Edge.Cuts (board outline)
- F.Paste, B.Paste (if ordering assembly)
Options:
- Plot only the approved legend content; a reference designator need not appear on every visible board surface.
- Check/refill zone fills before plotting and inspect the resulting copper.
- Use Protel filename extensions if the recipient prefers them; named
.gbrfiles can also identify layers. - Select the agreed coordinate precision and origin; keep copper, outline and drill data aligned. Include X2/job information where the recipient supports it.
Drill File Export
- Click "Generate Drill Files" from Plot dialog
- Format: Excellon
- Units: Millimeters
- Zeros format: Decimal
- PTH/NPTH: Merge or separate per manufacturer preference
- Click "Generate Drill File"
Final Steps
Click "Plot" to generate all Gerber files. Verify output directory contains all expected files before proceeding to verification.
Gerber Verification Before Submission
Open the files from the exact ZIP intended for release. A visual/CAM review can catch export and mapping errors; it does not establish that the circuit, firmware or switch mechanics are correct.
Free Gerber Viewers
- Gerbv: Open-source, Linux/Windows
- KiCad Gerber Viewer: Can overlay Gerber and drill outputs for release inspection
- ZofzPCB: 3D visualization reveals issues not obvious in 2D
- Tracespace.io: Web-based, no installation required
- Reference Gerber Viewer: Many manufacturers provide online viewers
Verification Checklist
File completeness:
- All expected layers present and non-empty
- Drill file(s) included
Board outline:
- Closed external boundary and intended internal cutouts, without duplicate/conflicting edges
- Correct overall dimensions, slots and mechanical-fit datums
Copper layers:
- All traces complete without gaps
- Copper pours filled correctly
- No unintended features
Solder mask:
- Openings align with copper pads
- Appropriate clearance around pads
Silkscreen:
- Text readable
- Doesn't overlap pad openings
Drill alignment:
- Overlay copper + drill to verify holes center on pads
- All expected holes and slots present, with correct PTH/NPTH classification
- Switch/socket/stabilizer features agree with the released mechanical drawings; inspect the bottom side without exporting an unintended mirror
Assembly Files: BOM and Position Data
When ordering assembled boards, additional files guide component procurement and placement.
Bill of Materials (BOM)
Essential fields:
- Reference designator matching the design and assembly drawing, including references omitted from cosmetic silkscreen
- Value
- Footprint/package
- Manufacturer part number (critical for correct procurement)
- Quantity, DNP/DNI status, approved alternates and substitution authority
Export from your EDA tool and agree the CSV template/encoding with the assembler. Include complete socket suffixes, LED orientation/bin requirements and who supplies each line. A BOM value or footprint alone is not a purchasable part identity.
Position/Centroid Files
Provide X/Y coordinates and rotation for automated pick-and-place:
- Reference designator
- X position, Y position
- Rotation angle
- Board side (top/bottom)
Critical: Declare units, origin, side and rotation convention, with a drawing that shows pin 1/polarity. A common origin is convenient; if origins differ, document and validate the transform with the assembler. Confirm bottom-side rotation/mirroring on a first article rather than treating every exporter’s angle convention as identical.
Example Keyboard Construction Brief
File Organization and Manufacturer Specifications
Recommended Folder Structure
keyboard-v1.0/
├── gerber/
│ ├── keyboard-F_Cu.GTL
│ ├── keyboard-B_Cu.GBL
│ ├── keyboard-F_Mask.GTS
│ ├── ... (all Gerber files)
│ └── keyboard.DRL
├── assembly/
│ ├── BOM.csv
│ └── positions.csv
└── README.txt
README Contents
Document essential specifications:
- Project name, version, date
- Layer count, dimensions, thickness
- Copper weight, surface finish
- Solder mask color, silkscreen color
- Any special requirements
Package as: keyboard-v1.0-gerbers.zip
Standard Keyboard Specifications
The following is a common starting example for a simple rigid matrix, not a mandatory specification. Confirm thickness against the switch/socket, plate and enclosure stack and choose copper/finish for the actual electrical and assembly requirements:
- Layers: 2
- Thickness: 1.6mm
- Copper: 1 oz as an example; evaluate LED current, voltage drop, traces/connectors and thermal mass before selecting 2 oz
- Finish: HASL or ENIG where compatible with package coplanarity, soldering and cost; PCB finish does not set the socket’s internal contact plating
- Mask: Various colors available
HILPCB Capabilities
HILPCB offers eligible 24–48-hour quick-turn fabrication and 24-hour standard DFM feedback, plus standard 3/3 mil pricing routes when the supplied geometry, copper and selected fabrication route qualify. The quote confirms schedule, price and design-rule eligibility; listed 1/2-layer and 4–64-layer routes and 75/75 or 50/50 options remain route-specific.
HILPCB’s fabrication and assembly routes accept released manufacturing data for review. Agree the format, layer mapping and revision with the quoted route:
- RS-274X: Extended Gerber image data
- Gerber X2: Enhanced with embedded metadata
- Excellon: Drill files
- ODB++: Integrated manufacturing-data option; confirm the exported content and recipient support
Manufacturing capabilities:
- Single/double-layer fabrication for simple boards; multilayer fabrication lists 4–12 standard and up to 64 advanced layers, subject to the actual construction review.
- The single/double-layer matrix lists 150/150 µm standard and 75/75 µm advanced line/space. For dense package escape, the HDI route lists 75/75 µm standard and 50/50 µm advanced options. These are different construction routes; confirm the actual copper, holes, stackup and tolerances rather than combining every limit.
- Agree the lead time after reviewing materials, drilling, surface finish, panel layout and production capacity.
HILPCB Manufacturing Services
HILPCB simplifies the manufacturing process:
Design Review: Submit the complete fabrication package for a documented CAM/DFM review and confirm the feedback schedule in the quotation.
Fabrication: Choose the single/double-layer or multilayer route for the actual board, finish and mask. Add impedance, mechanical-fit tolerances and required coupon/test records where relevant.
Assembly: Small-batch assembly supports prototypes/NPI; turnkey assembly adds sourcing and mixed assembly for the agreed quantity. Include firmware, key-matrix/USB/LED checks, switch samples and fixture ownership when these are part of acceptance.
Send one revision-controlled ZIP with fabrication notes, BOM/CPL and assembly drawings where needed. Identify board versus panel data, panelization ownership, quantity and schedule target, plus socket/plate/case fit requirements. Ask the quote to identify tooling, sourcing exceptions and functional-test preparation; approve any CAM or BOM change before production release.

