Part of the PCB DFM Guide — design rules and manufacturability checks, from PCBELEC’s fabrication knowledge base.
Table of Contents
For most prototypes, submit RS-274X Gerbers (with embedded apertures) plus a drill file and a fabrication drawing — that combination is universally supported by CAM software.
Reach for ODB++ or IPC-2581 when your design is HDI-heavy or you want stackup, impedance and net intelligence carried in one package.
Whichever format you choose, the prototype schedule is protected by validation, not by format: run a layer-by-layer visual check and a DFM review before the files leave your desk.
What a Gerber File Actually Is
A Gerber file is a 2D vector description of one image layer of a PCB. Copper traces, solder mask openings, silkscreen marks and paste apertures are all described as lines, arcs and flashes on a flat plane. What is not in a Gerber file is just as important: it carries no 3D stackup, no component data and no netlist. That information travels separately, in the fabrication drawing and the drill file — or, for the newer intelligent formats below, inside the package itself.
Three generations of the standard matter for prototyping:
- RS-274D — the legacy format. Aperture definitions live in a separate file, and modern CAD tools have largely stopped exporting it. If you are still receiving RS-274D files, update the export.
- RS-274X (X1) — the current baseline. Aperture definitions are embedded in each file, so a single file is self-contained. It also supports regions and step-and-repeat. Most fabricators quote and build from RS-274X daily.
- Gerber X2 — RS-274X plus attributes. X2 adds file function, pad roles, net names, polarity and other metadata as attributes on top of RS-274X. It is backward compatible: a reader that does not understand attributes ignores them and still reads the geometry. X2 does not by itself carry a full netlist — a full netlist still travels separately, for example as an IPC-D-356 file or inside a Gerber Job File (.gbrjob).
ODB++ and IPC-2581 are not Gerber formats. They are intelligent transfer formats that carry layers, netlists, stackup, placements and constraints in a single package. They solve the “context travels separately” problem of Gerber, at the cost of narrower fabricator support.


Choosing the Format
Table label: generic format comparison — definitions per the Ucamco Gerber Layer Format Specification, ODB++ v8.1 and IPC-2581 Rev C. This is a format comparison, not a PCBELEC capability table. It does not state PCBELEC’s acceptance for ODB++ or IPC-2581 — confirm with PCBELEC before sending either as your only package.
| Format | What it carries | Intelligence | Best for | Watch out |
|---|---|---|---|---|
| RS-274D | 2D vector geometry; apertures in a separate file | None | Legacy equipment only — not for design handoff | Obsolete; switch your CAD export to X2 |
| RS-274X (X1) | One file per image layer; embedded apertures, regions, step-and-repeat | None in the image files — layer function is by file name | Default for most prototypes — universal CAM support, fast quoting | Stackup, impedance and finish must travel in a separate drawing/README, or in a Gerber Job File |
| Gerber X2 | RS-274X plus attributes: file function, pad roles, net names, polarity | Layer-level attributes; net names as attributes | Prototypes where CAM must identify each file without guessing | Attributes do not replace a fabrication drawing; a full netlist still travels separately (IPC-D-356 or Job File) |
| ODB++ | Single intelligent package: layers, nets, stackup, constraints, component placements | Full design context from the EDA tool | HDI, blind/buried vias, many impedance classes — complex multilayer builds | Proprietary format; confirm fab support before sending as the only package |
| IPC-2581 | Single XML package, vendor-neutral open standard (Rev C) | Full design context, standardized schema | Designers standardizing on an open transfer format; growing fab adoption | Support varies by fabricator — ask before sending it alone |
For Gerber submissions, the fabrication drawing and impedance table travel separately. ODB++ and IPC-2581 can carry stackup and impedance inside the package, but still include a human-readable fabrication drawing so the quote can be confirmed without opening the CAD database.
The decision logic is three lines:
- Most prototypes → RS-274X. Universal support, fast quoting, no compatibility questions.
- Complex multilayer, many impedance classes, blind/buried vias → ODB++ or IPC-2581. You trade universal support for context in one package, so confirm fab support first.
- Future standardizing → IPC-2581. Open, vendor-neutral, growing adoption — but ask your fabricator before sending it as the only format.
One practical note: the fabrication drawing travels with the files in every case. Gerber needs it because the image files do not carry stackup or finish. The intelligent formats still benefit from it because a human-readable drawing is what a quote is confirmed against — no transfer format replaces that confirmation step.
A note on what this guide covers: this guide covers bare-board fabrication data. Solder paste and assembly data are a separate package. If you need assembly, talk to JHYPCB Prototype PCB Assembly.
Which Layers to Export
Missing layers are the most common reason a Gerber package comes back with a question. Export every layer the board needs, even when the layer looks empty:
- Copper — Top, Inner 1–n, Bottom. One file per copper layer, with the layer number in the name.
- Solder Mask — Top and Bottom. Openings must match the pads, not the copper pour.
- Silkscreen / Legend — Top and Bottom. Keep reference designators clear of pads and vias.
- Solder Paste — Top and Bottom. Only when a stencil or assembly is in scope. Paste is not a bare-board fabrication file: include paste files in the assembly package, not in the bare-board Gerber set.
- Drill — PTH and NPTH, in separate files. Plated and non-plated holes are different processes.
- Board Outline. A single closed outline in its own file, on a 1:1 scale, with no dimension lines inside it.
Two more files belong in the package even though they are not Gerber layers:
- Fabrication Drawing (PDF). Stackup, material, copper weights, finish, thickness, impedance targets, and any special instructions. This is the document CAM reads first.
- Gerber Job File (.gbrjob, optional with X2). Carries stackup, finish and other job data in machine-readable form. It does not replace the fabrication drawing.
A good rule: if you are unsure whether a layer is needed, export it and label it clearly. An extra empty file costs a question; a missing layer costs a day.

File Naming That Survives CAM
A fabricator’s CAM station opens dozens of Gerber sets a day. A clear name is the difference between a file that is used and a file that is guessed at.
Use this pattern:
[Project]_[Layer]_[Polarity]_[Rev][Date].gbr
Example: PCBPrototype_TopCopper_Positive_Rev2_20231124.gbr
Three rules:
- Layer in the name, not in a separate list.
TopCopper,Inner1,BottomMask— the name must say what the file is. - Polarity explicit. Positive or Negative, in the name. A mask file with the wrong polarity is a scrapped board.
- Revision and date together.
Rev2_20231124— when two revisions arrive in the same week, the date decides which one is built.
What not to do: Layer1.gbr, final_v2_REAL.gbr, Gerber.zip with no README. If the file name does not say what the layer is, CAM has to open it to find out — and that is where mistakes start.

Validating Before You Send
Validation has two passes, and both are cheap compared to a re-fabrication.
Pass 1 — Visual, in a viewer.
Open the files in a free Gerber viewer (KiCad’s GerbView, Gerbv, or the viewer built into your EDA tool). Check, layer by layer:
- Does every copper layer appear, in the right order?
- Does the outline close, with no gaps or extra lines?
- Do mask openings line up with pads?
- Are drill holes where the pads are, with the right diameters?
A short visual pass here catches errors that would otherwise surface as an engineering query — or worse, as a fabricated board.
Pass 2 — Programmatic, in a DFM tool.
A DFM check runs the same files against manufacturing capability: minimum trace and space, annular ring, drill-to-copper clearance, mask slivers, and acid traps. A DFM check finds the errors a visual pass cannot measure.
Every PCBELEC quotation includes a free CAM review of your files — see what it covers in our PCB DFM Guide. For 4-layer designs, the 30+ rule pre-submission checklist walks the same checks in order, with the stackup and copper-balance rules that matter most on 4-layer boards.
The Gerber Mistakes That Stall Prototypes
- Missing layers. A board with an inner layer that was never exported, or a bottom mask that was left out because “it is mostly empty”. CAM cannot build what it cannot see.
- Wrong polarity. A mask file exported as Negative when the fabricator expects Positive, or a plane layer inverted. The board is built backwards, and the error is found at inspection.
- Outline problems. An outline with a gap, an outline drawn in two files, or an outline at the wrong scale. The board is cut to the wrong shape, or not cut at all.
- Drill and copper mismatch. Drill holes that do not line up with pads, or drill diameters that do not match the drawing. The board drills, but the vias do not connect.
- Editing the Gerber instead of the CAD. A trace moved in the Gerber file, but not in the CAD source. The next revision overwrites the fix, and the same error returns.
- Mixing revisions. Two versions of the same layer in one ZIP, or a drill file from Rev 1 with copper from Rev 2. The board is built from a mixture that was never designed.
Submitting the File Set
A complete submission is a ZIP with one revision only:
- Gerber files, one per layer, named as above
- Drill files (PTH and NPTH separate)
- Fabrication drawing (PDF)
- Gerber Job File (.gbrjob), if you use X2
- README, if anything is non-standard — for example, a non-standard finish, a special material, or a controlled-impedance table that is not in the drawing
Every PCBELEC quotation includes a free CAM review of your files. Submit early even if the design is not final — an early review of a draft file set catches structural issues while they are still cheap to fix. If you are unsure about a layer, a drill, or a stackup, ask before you submit. A question before fabrication costs minutes; a question after fabrication costs a board.
For controlled-impedance designs, state the targets in the fabrication drawing, not only in the Gerber files. See How to Specify Controlled Impedance Requirements to Your PCB Manufacturer for the full checklist.
FAQ
RS-274X (X1) is the widely supported baseline with embedded apertures. X2 is the attribute-rich revision of the same specification, adding file function, pad roles and net names. Most fabs accept both; X2 attributes help CAM identify each file, but they are not required for a standard prototype build.
Yes, if your fabricator supports them. For most prototypes, RS-274X Gerbers plus a drill file and a fabrication drawing are the most direct path. ODB++ and IPC-2581 are better for complex builds where stackup, netlist and impedance need to travel in one package. Whichever you send, include the fabrication drawing; for Gerber, include the impedance table separately.
Top and Bottom Copper, Top and Bottom Solder Mask, Top and Bottom Silkscreen, Drill (PTH and NPTH separate), and the Board Outline. Add the Fabrication Drawing and, if assembly is in scope, the Solder Paste layers in the assembly package. Do not skip a layer because it looks empty — an empty mask is still a mask.
Yes. PCBELEC's free CAM review, included with every quotation, covers the programmatic DFM check described above — minimum trace and space, annular ring, drill clearance, and mask errors. See the PCB DFM Guide for what the review covers.
Fix the CAD source, re-export, and re-submit. Do not edit the Gerber files directly — a fix that lives only in the Gerber is lost on the next export. If the error is a design-rule question rather than a file error, the DFM review will flag it with the specific rule and the measured value, so you can correct it in one pass.
Related Reading
- PCB DFM Guide: Design Rules & Gerber Checks | PCBELEC
- 4 Layer PCB DFM Checklist: 30+ Rules Before Gerber Submission | PCBELEC
- How to Specify Controlled Impedance Requirements to Your PCB Manufacturer | PCBELEC
- What is a PCB Test Coupon? Essential Guide for Reliable PCB Manufacturing | PCBELEC
- PCB Stackup Design Guidelines: Layer Arrangement Rules for 2, 4 and 6 Layers | PCBELEC



