Introduction
A Gerber job file describes a printed circuit board as a whole: its size, layer count, thickness, finish, materials and design rules, and which of the accompanying files holds which layer. It travels with the Gerber images and drill files so that quoting and fabrication software need not take this information from drawings or e-mails. Ucamco publishes the specification (first revision 2018.04); KiCad writes the file with its Gerber output.
The file holds no images. There is one per board, and it does not describe assembly panels or commercial terms.
Structure
The file is JSON in UTF-8, with the extension
.gbrjob. All lengths are in millimetres. The top-level object has up to five
members. Any section or value may be left out; a missing value is undefined, never a
default.
| Member | Type | Content |
|---|---|---|
Header | object | The job file itself. |
GeneralSpecs | object | Properties of the whole board. |
MaterialStackup | array | The material layers in order. |
DesignRules | array | Clearances and minimum widths by layer group. |
FilesAttributes | array | One entry per fabrication data file. |
{
"Header": {
"GenerationSoftware": { "Vendor": "Example", "Application": "BoardTool", "Version": "1.0" },
"CreationDate": "2026-05-04T10:00:00+01:00"
},
"GeneralSpecs": {
"Size": { "X": 40.0, "Y": 25.0 },
"LayerNumber": 2,
"BoardThickness": 1.6,
"Finish": "ENIG"
},
"DesignRules": [
{ "Layers": "Outer", "PadToPad": 0.2, "TrackToTrack": 0.2, "MinLineWidth": 0.25 }
],
"FilesAttributes": [
{ "Path": "board-top.gbr", "FileFunction": "Copper,L1,Top", "FilePolarity": "Positive" },
{ "Path": "board.xnc", "FileFunction": "XPlated,1,2,XTH", "FileFormat": "XNC" }
]
}
Header
| Key | Value |
|---|---|
GenerationSoftware | Object with strings Vendor, Application and Version: the program that made the file. |
CreationDate | ISO 8601 date and time with time zone; the schema also accepts a date alone. |
Comment | Free text. |
GeneralSpecs
| Key | Value |
|---|---|
ProjectId | Object with strings Name, GUID (an RFC 4122 UUID, version 1 or 4) and Revision; no commas. |
Owner | The design owner’s reference. |
Size | Object with numbers X and Y (required), the rectangle enclosing the outline, and optional tolerances Tol+, Tol-. |
LayerNumber | Integer: number of copper layers. |
BoardThickness | Base material plus conductive layers. |
IPC-2221-Type | 1 single-sided, 2 double-sided, 3 multilayer with through-hole components only, 4 multilayer with through, blind or buried vias, 5 multilayer metal core with through holes, 6 multilayer metal core. |
IPC-600-Class | 1, 2, 3 or "NA". |
Standard | String naming a standard, for example IPC6012B. |
ViaProtection | Array of IPC-4761 classes: Ia, Ib tented one or both sides; IIa, IIb tented and covered; IIIa, IIIb plugged; IVa, IVb plugged and covered; V filled; VI filled and covered; VII filled and capped; None. |
HolePlatingThickness | Number. |
HardGoldArea | Number, in square millimetres. |
Finish | String; the listed values are HASL SnPb, HASL lead-free, Immersion tin, Immersion nickel, Immersion silver, ENIG, ENEPIG, Hard gold, OSP, HT_OSP, None; others are allowed. |
Foil | Copper foil: Electro-Deposited, Rolled or another string. |
Substrates | Array of strings such as FR4, Polyimide, Polyolefin, Al, PTFE, Teflon, Ceramic, in no particular order. |
Material_Tg | Minimum glass transition temperature, °C. |
Notes | Free text. |
| Booleans | ImpedanceControlled, UL_Logo, Fabricator_Logo, Fabricator_Datecode, HalogenFree, Press-fit, HeatSinkPaste, EdgePlating, Castellated, EdgeConnector, EdgeConnectorBevelled, RoHS, ITAR, ElectricalTest. |
MaterialStackup
Each element is one material layer, listed in physical order (the specification’s examples run from top to bottom). If the array is present it must list every layer of the board, even those with nothing to say but their type. It records the designed stackup, not how a fabricator builds it from cores and prepregs.
| Key | Value |
|---|---|
Type | Required: Copper, Dielectric, Legend, SolderMask, CoverLay, PeelableMask, Carbon or another string. |
Thickness | Base thickness, without plating. |
Color | Red, Yellow, Green, Blue, White, Black, or RnGnBn with values 0–255, optionally followed by ,Gloss, ,Semi-matte or ,Matte. |
Material | Substrate name. |
DielectricConstant, LossTangent | Numbers. |
Conductivity | Number, siemens per metre. |
Tg | Minimum glass transition temperature, °C. |
Name, Note | Strings for communication about the layer. |
Substacks | Flex-rigid boards only: ascending positive integers naming the substacks that contain this material; substack 1 is the master stackup with everything. |
DesignRules
Each element gives the rules the layout was designed to, for a group of copper layers.
Layers is required and is Outer, Inner or
Ln, the more specific winning (Ln, then
Inner, then Outer); values are not inherited between elements. At
least one other member must be present: the numbers PadToPad,
PadToTrack, PadToRegion, TrackToTrack,
TrackToRegion, RegionToRegion (a region is a copper pour),
MinLineWidth, MinRing and MinClearanceToProfile, or the
string Notes.
FilesAttributes
This array repeats for each file the information that Gerber X2 can store inside the file, which older formats cannot. Order does not matter.
| Key | Value |
|---|---|
Path | Required: path of the file relative to the job file; it identifies the entry. |
FileFunction | As the Gerber .FileFunction attribute, for example Copper,L1,Top, SolderMask,Bot, Legend,Top, Profile. One extra value is allowed only here: XPlated,i,j,XTH for a drill file mixing plated and non-plated holes from layer i to j. |
FilePolarity | Positive or Negative; solder masks are normally negative. |
FileFormat | Gerber (X1 or X2), XNC, NC (IPC-NC-349 or Excellon), SM (Sieb & Meyer), IPC356 (IPC-D-356 netlist) or Other. |
FileFunction values
The values come from the .FileFunction attribute of the Gerber layer format (revision 2026.05), which explains each field. p, i and j are copper layer numbers, and square brackets mark optional fields.
Copper,Lp,(Top|Inr|Bot)[,(Plane|Signal|Mixed|Hatched)]Plated,i,j,(PTH|Blind|Buried)[,(Drill|Rout|Mixed)]NonPlated,i,j,(NPTH|Blind|Buried)[,(Drill|Rout|Mixed)]Profile,(P|NP)Soldermask,Legend,Carbonmask,Goldmask,Heatsinkmask,Peelablemask,Silvermask,Tinmask, each,(Top|Bot)[,index]Component,Lp,(Top|Bot)Paste,Glue,Depthrout,Pads, each,(Top|Bot)Vcut[,(Top|Bot)],Viafill,Other,description- Drawings:
Drillmap,FabricationDrawing,Vcutmap,AssemblyDrawing,(Top|Bot),ArrayDrawing,OtherDrawing,description
Schema
The specification includes a JSON Schema (draft 7), which takes precedence over the text. It
allows no members other than those above at the top level, in Header, in
GeneralSpecs and in design rule elements. Files cannot add private keys in those
places.
A reader can recognise the format by a JSON object whose Header has
GenerationSoftware or CreationDate, together with at least one of
the other four sections.
Divergence from spec and in software
- KiCad writes
DielectricConstantandLossTangentas strings, where the schema requires numbers. - KiCad puts its comment on a stackup layer in a member called
Notes; the specification calls itNote. - The “basic job file” example in the specification writes
ROHS, while its table and schema haveRoHS; the schema would reject the example’s spelling. - Solder mask appears here as
SolderMask,Bot, while the layer format specification spells the valueSoldermask. - The writer in KiCad 5.1 gives
IPC-2221-Typeas a string andViaProtectionas the single stringIb, not a number and an array.
Older files may use what later revisions dropped: revision 2019.02 deprecated the design rule
group All and the GeneralSpecs value Part, and revision
2020.01 removed Part and custom names and limited the encoding to UTF-8.
Not described
Described from revision 2020.08 of the specification and the job file writer of KiCad’s current source. The explorer shows a job file as JSON text.
Known, not yet covered
- Reference: the form and values of the
GeneralSpecsmemberPartin files written before revision 2020.01, defined in the earlier revisions of the specification. - Viewer: there is no plugin that presents the board data.
Links
Software
- KiCad – PCB design suite that writes job files (Windows, macOS, Linux)
Developers
- KiCad job file writer – the code that builds the file (C++)
- KiCad 5.1 job file writer – the older writer (C++)
Reference
- Ucamco downloads – Gerber job file specification (revision 2020.08), its schema and the Gerber layer format specification