|Developed by||Gerber Systems Corp.,
|Initial release||August 27, 1980|
RS-274X Rev J4
(13 November 2014)
|Type of format||Image file format|
The Gerber format is an open 2D bi-level vector image file format. It is the de facto standard used by printed circuit board (PCB) industry software to describe the printed circuit board images: copper layers, solder mask, legend, etc.
The standard file extension is .GBR or .gbr though other extensions are also used.
There are two major generations of Gerber format:
- Extended Gerber, or RS-274X. This is the current Gerber format.
- Standard Gerber, or RS-274-D. This obsolete format is deprecated. It is superseded by Extended Gerber.
Gerber is the standard input format for photoplotters in PCB fabrication and all other fabrication equipment that needs digital images, such as legend printers, direct imagers or automated optical inspection (AOI) machines or for viewing reference data in different departments.
Gerber files also contains a 'stencil' layer for solder paste and the central locations of components to allow the PCB assembler to create the stencil and place and bond the components.
A third usage of Gerber is in PCB fabrication data. PCBs are designed on a specialized electronic design automation (EDA) or a computer-aided design (CAD) system. The CAD systems output a Gerber file for each image layer (copper layers, solder mask, legend or silk...). Drilled hole information is also transferred in Gerber but for historic reasons the Excellon Format is often used. (Using Excellon rather than Gerber usually leads to copper-drill registration problems.) Typically, all these files are "zipped" into a single archive that is sent to the PCB bare board fabrication shop. The fabricator loads them into a computer-aided manufacturing (CAM) system to prepare data for each step of the PCB production process.  
Each layer in the PCB must be linked with a Gerber file in the fabrication data. In Gerber version 2 the .FileFunction attribute provides a standardized method to do this. In legacy files only informal methods are available. A straightforward informal method is to express the file function clearly in the file name. Sometimes, however, cryptic file names are used and then documented in a free-format text file. Sometimes even the file extension is abused to indicate the file function - e.g. .BOT for the bottom layer rather than the standard extension .GBR ; very unpractical as the format of the file can no longer be deducted from the extension. 
PCB Fabrication Data must comply with a number of rules: all layers must be aligned, a profile layer must be included, etc.
The material stack up, components and finishes are typically provided in informal text files or drawings. Ucamco recommends using a subset of IPC-2581 for this non-image information.[dead link]
The Gerber format, also known as RS-274X, extended Gerber or X-Gerber, is a 2D bi-level vector image description format.
It is a human readable ASCII format. It consists of a stream of commands generating an ordered stream of graphics objects. The graphics objects can be positive or negative. Superimposed in the correct order they create the final image.
A Gerber file contains the complete description of a PCB layer image without requiring any external files. It has all the imaging operators needed for a PCB image. Any aperture shape can be defined. Planes and pads can be specified without the need to paint or vector-fill as in Standard Gerber. (However painting is sometimes still used because implementations created for Standard Gerber and have not yet been upgraded to use the more powerful capabilities of Extended Gerber.)
In February 2014 Ucamco extended the Gerber format with attributes (Gerber version 2). Attributes add meta-information to a Gerber file. These are akin to labels providing information associated with image files, or features within them. Examples of meta-information conveyed by attributes are:
- The function of the file. Is the file the top solder mask, or the bottom copper layer, etc?
- The part represented by the file. Does it represent a single PCB, an array, a coupon?
- The function of a pad. Is the flash is an SMD pad, or a via pad, or a fiducial, etc.
Gerber is a complete, powerful and unambiguous standard to describe a PCB layer. It can be input and processed fully automatically. This makes it well suited for fast and secure data transfer and for reliable and automated workflows.
An example of a Gerber file:
G04 Short version a file taken from the Example Job 1, created by Filip Vermeire, Ucamco* %TF.FileFunction,Copper,Bot,L4*% %TF.Part,Single*% %FSLAX35Y35*% %MOMM*% %TA.AperFunction,Conductor,NotC*% %ADD10C,0.15000*% %TA.AperFunction,ViaPad*% %ADD11C,0.75000*% %TA.AperFunction,ComponentPad*% %ADD12C,1.60000*% %ADD13C,1.70000*% %SRX1Y1I0.00000J0.00000*% G01* G75* %LPD*% D10* X7664999Y3689998D02* X8394995D01* X8439999Y3734999D01* X9369999D01* D11* X7664999Y3689998D03* X8359999Y1874998D03* X9882998Y3650498D03* D12* X4602988Y7841488D03* D13* X10729976Y2062988D03* X10983976D03* X11237976D03* M02*
The format specification is published.
Standard Gerber was an NC format designed by Gerber Systems Corp to drive their vector photo plotters for the PCB industry in the 1960s and 1970s. As Gerber was the market leader its format became a de-facto standard.
Standard Gerber has been deprecated and declared obsolete. It no longer conforms to the Gerber format specification. Standard was designed for a manual workflow. It is not suitable for automated data transfer between PCB designers and manufacturers. Vector photo plotters are replaced by raster photoplotters. Standard Gerber is superseded by extended Gerber.
Standard Gerber was a subset of the Electronic Industries Association RS-274-D specification, a format to drive mechanical NC machines in a wide range of industries. The term RS-274-D, without the qualifying "Gerber" postfix, is sometimes used informally for the standard Gerber subset rather than full RS-274-D.
RS-274-D standard Gerber was a simple ASCII format consisting of commands and XY coordinates. An example:
D11* X1785250Y2173980D02* X1796650Y2177730D01* X1785250Y2181480D01* X1796650Y2184580D01* D12* X3421095Y1407208D03* X1785250Y2173980D03* M02*
A Standard Gerber file on its own is not an image description because it does not contain all information: the coordinate unit and the definitions of the apertures are not defined in the RS-274-D file. (Apertures are the basic shapes, similar to fonts in a PDF file.) The coordinate units set manually by the operator of the plotter. They were described in a free-format text file, called an aperture file or a wheel file, intended for human reading. It was called a wheel file because the apertures were mounted on a rotating wheel and the operator defined the apertures by selecting a wheel and mounting it on the plotter. There are no standards for wheel files. The designer and the plotter operator had to agree on these case-by-case. Therefore standard Gerber is an NC standard but not an image definition standard.
Standard Gerber supports only imaging operators to draw tracks and flash aperture as vector plotters were only capable of these operations. The only way to create large copper pours is to paint (aka stroke or vector-fill) them with a vast number or tracks. This creates very large files that take long time to process. Because of the difficulty and cost of creating apertures with all but the simplest and most standard shapes painting was also used to create all but the simplest pads. Painting creates the desired image but the original shape of the copper pour or pad and must be laboriously recovered in CAM.
The Gerber file format was originally developed by the Gerber Systems Corp., a division of Gerber Scientific, founded by Joseph Gerber. The Gerber file format is now owned by Ucamco through its acquisition of Barco ETS, a company that previously acquired Gerber Systems Corp. The specification can be freely downloaded.
- In 1980, the first edition of the Gerber Format: a subset of EIA RS-274-D; plot data format reference book was published by Gerber Systems Corporation. Gerber Scientific Corporation used a subset of EIA RS-274-D to drive their line of photoplotters. At this time the photoplotter had a limited set of fixed apertures of different shapes (typically round, rectangular and a few others) and in different sizes. An aperture could be exposed at a specific coordinate using a “flash” aperture, or the head could be moved from one coordinate to another with the shutter open to generate line or circular arc segments using a “draw” aperture. There was no uniform position for the apertures. Each was a small cut-out in a glass or film substrate. Before a design could be plotted the plotter operator needed a set of instructions from the designer (the aperture list) to tell him where to install each aperture before running the plot. The machine had a certain number of available aperture position numbers that were not consecutive, and usually not all were used for any given board plot. The person generating the plot file was responsible for ensuring that the aperture list used positions that were actually available and matched the plot file.
- In 1986, the Gerber format was extended to support apertures with variable sizes to produce rectangles of arbitrary sizes within a given range and tapered lines. This functionality is not in practical use any more.
- In the 1980s, the Gerber format was adopted by several other photoplotter vendors and also CAM systems for PCB manufacturing. It had by now become the de facto standard.
- In 1991 with the availability of raster scan capability the Gerber format was extended for polygon areas and Extended Mass Parameters. It becomes a superset of RS-274-D standard Gerber. These allow the user to dynamically define apertures of different shapes and sizes as well as defining polygon area fills without the need for "painting". The impetus to develop the Extended Mass Parameters was provided by AT&T.
- In 1994, the last edition of the Gerber Format Guide was published by Gerber Systems Corporation.
- In April 1998, Gerber Systems Corporation was taken over by and integrated in Barco, Belgium. Barco's PCB division is now called Ucamco (former Barco ETS).
- In September 1998, the RS-274X Format User's Guide was published by Barco - Gerber Systems Corporation.
- In February 2010, the Gerber Format Specification was updated to revision F.
- In December 2010, the Gerber Format Specification was updated to revision G.
- In January 2012, the Gerber Format Specification was updated to revision H.
- In February 2013, the Gerber Format Specification was updated to revision I1.
- In April 2013, the Gerber Format Specification was updated to revision I2.
- In June 2013, the Gerber Format Specification was updated to revision I3.
- In June 2013, a proposal to extend the Gerber format with attributes is published.
- In November 2013, the Gerber Format Specification was updated to revision I4.
- In February 2014, the specification was updated to revision J1. It added attributes to convey PCB meta-information such as the layer the file represents.
- In June 2014, the specification was updated to revision J2.
Over the years there have been several attempts to replace Gerber by formats containing more information than just the layer image, e.g. netlist or component information. None of these attempts have been widely accepted within the electronics manufacturing industry, probably because the formats are complex. Gerber remains the most widely used data transfer format.
- IPC-D-350 C Printed Board Description in Digital Format, 1989. This specification was standardized as IEC 61182-1 in 1992 and withdrawn in 2001. Rarely, if ever, used.
- DXF Sometimes used. These are typically constructed as drawings, PCB objects (tracks and pads) are lost, which makes them very difficult to use in CAM.
- PDF Rarely used. Very impractical to work with because PCB objects (tracks and pads) are lost.
- DPF Format, now at v7, a CAM format from Ucamco. Sometimes used.
- The Electronic Design Interchange Format, EDIF. Rarely, if ever, used.
- ODB++, a CAM format from Mentor Graphics. Sometimes used, the prevalent non-Gerber format.
- GenCAM: IPC-2511A Generic Requirements for Implementation of Product Manufacturing Description Data and Transfer Methodology, 2000. Rarely, if ever, used.
- GenCAM: IPC-2511B Generic Requirements for Implementation of Product Manufacturing Description Data and Transfer XML Schema Methodology, 2002. Rarely, if ever, used.
- Offspring: IPC-2581 Generic Requirements for Printed Board Assembly Products Manufacturing Description Data and Transfer Methodology, 2004. Rarely, if ever, used, but receiving more attention recently.
- STEP AP210: ISO 10303-210, Electronic assembly interconnect and packaging design, first edition 2001, second edition 2008 (to be published)
- Fujiko: JPCA-EB02, based on work by Prof. Tomokage of Fukuoka University. A new standard in Japan. Rarely, if ever used.
- "Gerber File Format Specification Rev. J2". Ucamco. June 2014. Retrieved 6 July 2014.
- Williams, Al (2004). Build your own printed circuit board. McGraw-Hill Professional. p. 121. ISBN 978-0-07-142783-8. Retrieved April 2, 2011.
- Schroeder, Chris (1998). Printed circuit board design using AutoCAD. Newnes. p. 283. ISBN 978-0-7506-9834-4. Retrieved April 2, 2011.
- Blackwell, Glenn R. (2000). The electronic packaging handbook. 5.18: CRC Press. ISBN 978-0-8493-8591-9. Retrieved April 2, 2011.
- "Ucamco Offers Latest Gerber Format Specification". ucamco.com. February 19, 2013. Retrieved February 15, 2013.
- Tavernier, Karel (2011). "Improving CAD to CAM Data Transfer: A Practical Approach". Journal of the HKPCA (40, 2Q). Retrieved 2 October 2011.
Use of RS-274-D: Do not use it.
- Tavernier, Karel. "Open Letter on Standard Gerber". Ucamco. Ucamco. Retrieved 7 July 2014.
- Tavernier, Karel. "PCB Fabrication Data - A Guide". Ucamco. Retrieved 8 January 2015.
- "EDA: Where Electronics Begins". edac.org. Electronic Design Automation Consortium. Retrieved December 18, 2011.
- Buetow, Mike (28 June 2011). "A Short History of Electronic Data Formats". Printed Circuit Design and Fab magazine. Retrieved December 18, 2011.
- "PCBexpress Printed Circuit Board Tutorial". PCBexpress.com. Retrieved December 18, 2011.
- "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011.
- "Using IPC-D-356 for Importing Net and Node". Retrieved 16 October 2011.
- IPC-2524 PWB Fabrication Data Quality Rating System, February 1999.
- Tavernier, Karel (January 2013). "IPC-2581 meets Gerber". PCB Design Magazine (January 2013). Retrieved 19 February 2013.
- Sinclair, Ian Robertson; Dunton, John (January 11, 2007). Practical electronics handbook. Elsevier. p. 543. ISBN 978-0-7506-8071-4. Retrieved April 2, 2011.
- "RS-274X Painting Considered Harmful.pdf". Ucamco. June 2011. Retrieved 5 March 2012.
- "Gerber version 2 intro movie". Ucamco. Retrieved 20 November 2014.
- Tavernier, Karel. "A proposal to extend the Gerber format with attributes". Ucamco. Ucamco. Retrieved 12 July 2013.
- "Gerber X2: New Paradigm in CAD-to-CAM Communication". Ucamco. PCB007. Retrieved 13 June 2014.
- "Gerber version 2 FAQ". ucamco. Ucamco. Retrieved 21 December 2014.
- EIA Standard RS-274-D Interchangeable Variable Block Data Format for Positioning, Contouring, and Contouroring/Positioning Numerically Controlled Machines. Electronic Industries Association, Engineering Department, 2001 Eye Street, NW, Washington, D.C. 200006. February 1979.
- DiBartolomeo, Steve (1991). "D-codes, Apertures and Gerber Files". Artwork Conversion Software, Inc. Retrieved 16 October 2011.
- Tavernier, Karel (November 2013). "Painting Pads". PCB Design Magazine (November 2013). Retrieved 23 November 2013.
- "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011.
- "Gerber Scientific Instrument Company Records, 1911-1998".
- Tanghe, Jean-Pierre. "Barco acquires Gerber Systems Corp". Barco.com. Barco NV. Retrieved 26 November 2011.
- Google book entry on Gerber format: a subset of EIA RS-274-D ; plot data format reference book.
- Coombs, Clyde F. (September 2, 2007). Printed circuits handbook. McGraw-Hill Professional. p. 18.11. ISBN 978-0-07-146734-6. Retrieved April 3, 2011.
- "Ucamco announce a revision of the industry standard RS-274X Format Specification". ucamco.com. December 9, 2010. Retrieved February 15, 2013.
- "New Gerber Format Specification free at www.ucamco.com". ucamco.com. January 27, 2012. Retrieved February 15, 2013.
- "Ucamco's Revised Gerber Format Specification Now Online". ucamco.com. February 19, 2013. Retrieved February 15, 2013.
- "Ucamco Enhances Gerber File Format Specification". ucamco.com. November 22, 2013. Retrieved November 22, 2013.
- Santarini, Mike (2002-01-22). "ODB++ spec tapped for CAD-to-CAM data exchange". EE Times. Retrieved 29 September 2011.
- IPC-2581 Panel: A Spirited Discussion on PCB Data Transfer Formats, Richard Goering, Cadence Design Systems blog, October 2, 2011
- "JPCA Standards".
- Gerber File Format Specification, sample files, technical notes
- Gerber version 2 intro movie
- Gerber version 2 FAQ
- PCB Fabrication Data - A Guide