Gerber format

From Wikipedia, the free encyclopedia
Jump to: navigation, search
For other uses, see Gerber.
Gerber format
GbrX2 128x128 white bg.png
Filename extension .gbr
Developed by Gerber Systems Corp.,
now Ucamco
Initial release August 27, 1980; 35 years ago (1980-08-27)
Latest release
Revision 2015.06
(June 30, 2015; 2 months ago (2015-06-30))
Type of format Image file format
Standard The Gerber Format Specification

The Gerber format is an open 2D binary vector image file format.[1] 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.[2][3][4]

The standard file extension is .GBR or .gbr[1] 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.[5][6][7]


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.

PCB fabrication data[edit]

A third usage of Gerber is in PCB fabrication data.[8] PCBs are designed on a specialized electronic design automation (EDA) or a computer-aided design (CAD) system.[9] 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.[8]) 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. [10][11] [12]

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.[1] 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 impractical as the format of the file can no longer be deduced from the extension.[6][13][14]

PCB Fabrication Data must comply with a number of rules: all layers must be aligned, a profile layer must be included, etc.

A Gerber file cannot represent the netlist; the netlist is usually specified in the IPC-D-356 format.[15]

The material stack up, components and finishes are typically provided in informal text files or drawings.[16] Ucamco recommends using a subset of IPC-2581 for this non-image information.[6][17]

Extended Gerber[edit]

The Gerber format, also known as RS-274X, extended Gerber or X-Gerber, is a 2D binary vector image description format.[1]

It is a human readable ASCII format.[18] 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 were created for Standard Gerber and have not yet been upgraded to use the more powerful capabilities of Extended Gerber.)[19]

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.

For more information see the version 2 FAQ or intro video in the external links. [1] [20] [21] [22] [23]

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*

The format specification is published.[1]

Standard Gerber[edit]

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 revoked and declared obsolete. It no longer conforms to the Gerber format specification.[6][7] Standard Gerber is superseded by extended Gerber. Standard was designed for a manual workflow. It is not suitable for automated data transfer between PCB designers and manufacturers.

Standard Gerber was a subset of the Electronic Industries Association RS-274-D specification,[24] 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.[25] An example:


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.[1][25]

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.[8][19][26][27]


Standard Gerber[edit]

The Gerber file format derives its name from the former Gerber Systems Corp., a division of Gerber Scientific, founded by Joseph Gerber.[28] A leading supplier of vector photoplotters from the 1960s onwards, Gerber based its plotter input on a subset of the EIA RS-274-D NC format. In 1980, it published a well-written specification titled “Gerber Format: a subset of EIA RS-274-D; plot data format reference book”.[29] The format was so well suited for its task that it was widely adopted and became the de-facto standard format for vector plotters, becoming known as Standard Gerber. Vector photoplotters are NC machines, so it follows that Standard Gerber, which is dedicated to vector photoplotters, is an NC format. [1]

Extended Gerber[edit]

As of the 1980s, vector photoplotters started losing ground to raster scan plotters. Based on bitmap technology, these newer devices demanded rather more than a simple NC format, so Gerber extended the original NC format with so called “Mass Parameters”, converting it to a fully-fledged image file formats. This resulted in a family of effective image description formats designed specifically to drive Gerber's range of PCB devices and raster plotters. In 1998 Gerber Systems Corp. was taken over by Barco and incorporated into the PCB division – Barco ETS – which is now Ucamco.[10][30] At this point, Barco drew all the variants in Gerber's family of formats into a single standard image format.

On September 21, 1998 Barco-Gerber published the Gerber RS-274X Format User's Guide. The format became known as Extended Gerber or GerberX. This is a full image description format, which means that an Extended Gerber file contains the complete description of a PCB layer, providing everything needed for an operator to generate a PCB image, and enabling any aperture shape to be defined. Unlike Standard Gerber, it does not need the support of additional external files, and it specifies planes and pads clearly and simply without the need for painting or vector-fill. The Extended Gerber format quickly superseded Standard Gerber as the de facto standard for PCB image data, and is sometimes called "the backbone of the electronics industry". A sequence of revisions clarifying the specification was published over the years, culminating in revision H of January 2012.[1][31] [32]

The Great Reform[edit]

During the course of 2012, Ucamco reviewed the entire format in depth. A large number of historic format elements that were rarely, if ever, used were deprecated. Light was shone into the most remote corners of the format. Where there were conflicting interpretations of any part of the format in the market, that part was either deprecated or its interpretation was clarified. As part of this important work, over 10.000 files from all over the world were gathered into a representative library to help establish current practice. The result was a powerfully clear and simple format without needless embellishments, that was focused on the current needs of the PCB industry.

The specification document itself was re-organized, the quality of the text and the drawings improved and many new drawings were added. Deprecated elements were relegated to a separate chapter. This resulted in The Gerber Format Specification, revision I1 published in December 2012. Revisions I2, I3 and finally I4 from November 2013 further improved the document. The electronics industry standard format was now supported by a first-rate up-to-date specification document and was ready for the next step. This version of the Gerber Format was developed by Karel Tavernier and Rik Breemeersch. They were assisted by an advisory group including Ludek Brukner, Artem Kostyukovich, Jiri Martinek, Adam Newington, Denis Morin, Karel Langhout and Dirk Leroy.[1][5] [21] [33] [34]

The second extension[edit]

Until this point, Gerber was purely an image description format. Recognizing that a PCB image must be supported with meta-information that describes, say, the function of an image file in the layer structure, Ucamco realized that it could convey that information clearly and unequivocally using attributes. Accordingly, and in June 2013, the company published a proposal to extend the Gerber format using attributes, and invited feedback on its proposal from the Gerber user community.

The outcome of this was revision J1, completed in February 2014, during which Gerber got its attributes. It was a major step forward for the format, at least on a par with the changes made when Standard Gerber became Extended Gerber. Sometimes called the second extension, the latest version of the Gerber format is known as Gerber version 2, or X2 (as opposed to X1, which is Gerber without attributes). Gerber version 2 is fully backward compatible as attributes do not affect the image at all. Subsequent revisions, J2 to J4, clarified the specification and added new standard attributes.
Gerber version 2 was developed by Karel Tavernier, Ludek Brukner and Thomas Weyn. They were assisted by an advisory group including Roland Polliger, Luc Samyn, Wim De Greve, Dirk Leroy and Rik Breemeersch.[1][21][22]

Standard Gerber revoked[edit]

In September 2014 Ucamco published an open letter declaring Standard Gerber obsolete and revoking its specification.[1][35]

Further clarification[edit]

Early in 2015, the entire specification was reviewed once again by Karel Tavernier, Thomas Weyn and Artem Kostyukovich whose focus centered on making the specification easier to read and understand, while taking great care to ensure consistent and precise terminology. Some further elements were identified as superfluous, so they were deprecated, further simplifying the format, and a number of overview tables and charts were added. Not least, special attention was given to the 'Overview' chapter, with the aim of turning it into a tutorial that can be understood by non-experts. The result of this work is revision 2015.06, published in June 2015.[1][36]

Related formats[edit]

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.[10] None of these attempts have been widely accepted within the electronics manufacturing industry, probably because the formats are complex.[6] Gerber remains the most widely used data transfer format.[2][3][4]

  • 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.[37]
  • 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.[38]
  • STEP AP210: ISO 10303-210, Electronic assembly interconnect and packaging design, first edition 2001, second edition 2008 (to be published)
  • Fujiko: JPCA-EB02,[39] based on work by Prof. Tomokage of Fukuoka University. A new standard in Japan. Rarely, if ever used.[citation needed]


  1. ^ a b c d e f g h i j k l m "Gerber File Format Specification". Ucamco. 30 June 2015. Retrieved 17 July 2015. 
  2. ^ a b Williams, Al (2004). Build your own printed circuit board. McGraw-Hill Professional. p. 121. ISBN 978-0-07-142783-8. Retrieved April 2, 2011. 
  3. ^ a b Schroeder, Chris (1998). Printed circuit board design using AutoCAD. Newnes. p. 283. ISBN 978-0-7506-9834-4. Retrieved April 2, 2011. 
  4. ^ a b Blackwell, Glenn R. (2000). The electronic packaging handbook. 5.18: CRC Press. ISBN 978-0-8493-8591-9. Retrieved April 2, 2011. 
  5. ^ a b "Ucamco Offers Latest Gerber Format Specification". February 19, 2013. Retrieved February 15, 2013. 
  6. ^ a b c d e Tavernier, Karel (2011). "Improving CAD to CAM Data Transfer: A Practical Approach" (PDF). Journal of the HKPCA (40, 2Q). Retrieved 2 October 2011. Use of RS-274-D: Do not use it. [dead link]
  7. ^ a b Tavernier, Karel. "Open Letter on Standard Gerber". Ucamco. Ucamco. Retrieved 7 July 2014. 
  8. ^ a b c Tavernier, Karel. "PCB Fabrication Data - A Guide". Ucamco. Retrieved 8 January 2015. 
  9. ^ "EDA: Where Electronics Begins". Electronic Design Automation Consortium. Retrieved December 18, 2011. 
  10. ^ a b c Buetow, Mike (28 June 2011). "A Short History of Electronic Data Formats". Printed Circuit Design and Fab magazine. Retrieved December 18, 2011. 
  11. ^ "PCBexpress Printed Circuit Board Tutorial". Retrieved December 18, 2011. 
  12. ^ "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011. 
  13. ^
  14. ^
  15. ^ "Using IPC-D-356 for Importing Net and Node". Retrieved 16 October 2011. 
  16. ^ IPC-2524 PWB Fabrication Data Quality Rating System, February 1999.
  17. ^ Tavernier, Karel (January 2013). "IPC-2581 meets Gerber". PCB Design Magazine (January 2013). Retrieved 19 February 2013. 
  18. ^ Sinclair, Ian Robertson; Dunton, John (January 11, 2007). Practical electronics handbook. Elsevier. p. 543. ISBN 978-0-7506-8071-4. Retrieved April 2, 2011. 
  19. ^ a b "RS-274X Painting Considered Harmful.pdf". Ucamco. June 2011. Retrieved 5 March 2012. 
  20. ^ "Gerber version 2 intro movie". Ucamco. Retrieved 20 November 2014. 
  21. ^ a b c Tavernier, Karel. "A proposal to extend the Gerber format with attributes". Ucamco. Ucamco. Retrieved 12 July 2013. 
  22. ^ a b "Gerber X2: New Paradigm in CAD-to-CAM Communication". Ucamco. PCB007. Retrieved 13 June 2014. 
  23. ^ "Gerber version 2 FAQ" (PDF). ucamco. Ucamco. Retrieved 21 December 2014. 
  24. ^ 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. 
  25. ^ a b DiBartolomeo, Steve (1991). "D-codes, Apertures and Gerber Files". Artwork Conversion Software, Inc. Retrieved 16 October 2011. 
  26. ^ Tavernier, Karel (November 2013). "Painting Pads". PCB Design Magazine (November 2013). Retrieved 23 November 2013. 
  27. ^ "PCB Layout Data". Eurocircuits. Retrieved 26 November 2011. 
  28. ^ "Gerber Scientific Instrument Company Records, 1911-1998". 
  29. ^ Google book entry on Gerber format: a subset of EIA RS-274-D ; plot data format reference book. 
  30. ^ Tanghe, Jean-Pierre. "Barco acquires Gerber Systems Corp". Barco NV. Retrieved 26 November 2011. 
  31. ^ "Ucamco announce a revision of the industry standard RS-274X Format Specification". December 9, 2010. Retrieved February 15, 2013. 
  32. ^ "New Gerber Format Specification free at". January 27, 2012. Retrieved February 15, 2013. 
  33. ^ "Ucamco's Revised Gerber Format Specification Now Online". February 19, 2013. Retrieved February 15, 2013. 
  34. ^ "Ucamco Enhances Gerber File Format Specification". November 22, 2013. Retrieved November 22, 2013. 
  35. ^ "Sstandard Gerber declared obsolete". Ucamco. May 2014. Retrieved 19 July 2015. 
  36. ^ "Ucamco's Gerber Now Even Clearer". PCB007. 17 July 2015. Retrieved 19 July 2015. 
  37. ^ Santarini, Mike (2002-01-22). "ODB++ spec tapped for CAD-to-CAM data exchange". EE Times. Retrieved 29 September 2011. 
  38. ^ IPC-2581 Panel: A Spirited Discussion on PCB Data Transfer Formats, Richard Goering, Cadence Design Systems blog, October 2, 2011
  39. ^ "JPCA Standards". 

External links[edit]