PCB manufacturing PCB manufacturing
Home > Blog

RS-274X Gerber Format: How It Works and How to Export It

RS-274X Gerber Format is an Extended Gerber format used to transfer PCB layer artwork from CAD software to PCB manufacturing systems. It stores coordinates, aperture definitions, drawing instructions, and other graphical settings in a single file, allowing CAM software to reproduce the intended PCB image without a separate aperture table.

Most PCB designers encounter RS-274X when exporting manufacturing files from Altium Designer, KiCad, or other EDA tools. The format itself is straightforward, but incorrect export settings can leave a manufacturer with missing layers, misaligned drill holes, or incomplete board outlines. This guide explains how RS-274X works, how it differs from RS-274D and Gerber X2/X3, and how to check the files before fabrication.

RS-274X Gerber Format: CAD data, Gerber layer artwork and PCB manufacturing

Key Takeaways

  • RS-274X, also called Extended Gerber, describes individual PCB layers using coordinates, aperture definitions, and graphical commands.
  • RS-274X improves on the obsolete RS-274D format by embedding aperture definitions and coordinate settings within the file.
  • Gerber X2 adds standardized manufacturing attributes, while X3 extends Gerber data to support component and assembly information.
  • Common Gerber extensions include .GTL, .GBL, .GTS, .GBS, and .GBR, although filenames alone cannot reliably identify every layer.
  • Altium Designer supports RS-274X and Gerber X2 exports, while KiCad can generate Extended Gerber files with optional X2 attributes.
  • RS-274X files can be inspected using Ucamco Reference Gerber Viewer, KiCad GerbView, and compatible CAM software.
  • Missing board outlines, inconsistent coordinates, incorrect layer exports, and absent drill files are common manufacturing-data problems.
  • EBest Circuit provides Free DFM review to identify relevant Gerber, drilling, stackup, and manufacturing concerns before PCB fabrication.

What Is RS-274X Gerber Format?

RS-274X is a PCB manufacturing file format that describes the two-dimensional geometry of copper, solder mask, silkscreen, and other PCB layers. It is commonly called Extended Gerber or Gerber X1.

A Gerber file describes one manufacturing image. For example, the top copper file contains the conductive patterns for that layer, while the solder mask file defines where the mask should remain open.

An RS-274X file typically contains:

  • Coordinates: Locations of lines, pads, and graphical features.
  • Aperture Definitions: Shapes and dimensions used to construct those features.
  • Drawing Commands: Instructions for drawing, moving, and flashing.
  • Unit Settings: Millimeters or inches.
  • Coordinate Format: Numerical precision and interpretation rules.

RS-274X is useful because the file contains the information needed to interpret its graphical image. Earlier Gerber workflows often required a separate aperture table.

However, Gerber artwork does not describe every aspect of a finished PCB. Material selection, layer stackup, finished thickness, and special fabrication requirements may still need supporting manufacturing documentation.

How Does the RS-274X Gerber Format Work?

An RS-274X file creates PCB artwork by combining aperture shapes with coordinate-based drawing instructions. A Gerber parser reads the commands and reconstructs lines, pads, and filled areas at their specified positions.

Unlike a PNG or JPEG, Gerber is not a pixel-based image. Its commands describe geometric features.

Common RS-274X Commands

Command Function
%MOMM*% Sets units to millimeters
%MOIN*% Sets units to inches
%FSLAX26Y26*% Defines absolute coordinates with 2 integer and 6 decimal digits
%ADD10C,0.200*% Defines a circular aperture with a 0.200 mm diameter when units are millimeters
D10* Selects aperture D10
D01* Draws using the selected aperture
D02* Moves without drawing
D03* Flashes an aperture shape
G36* / G37* Begins and ends a filled region
M02* Ends the file

The FS command defines coordinate interpretation, MO establishes the units, and ADD creates aperture definitions. The drawing operations use those settings to produce the layer image.

RS-274X Gerber Code Example

The following simplified file draws a short copper trace and a circular pad.

G04 Simple RS-274X Example*
%FSLAX26Y26*%
%MOMM*%
%ADD10C,0.200*%
%ADD11C,1.200*%
D10*
X01000000Y01000000D02*
G01*
X02000000Y01000000D01*
D11*
X01500000Y01500000D03*
M02*

The code produces two features:

  • Copper Trace: A 0.200 mm-wide horizontal line from X = 1.0 mm to X = 2.0 mm.
  • Circular Pad: A 1.200 mm-diameter circle centered at X = 1.5 mm, Y = 1.5 mm.

The trace uses D01 to draw between coordinates. The pad uses D03 to place the selected aperture at one location.

This example illustrates the syntax of a Gerber layer. A complete manufacturing package also needs the other required layers and corresponding fabrication data. The official Gerber specification is maintained by Ucamco; Gerber Layer Format Specification Revision 2026.05 provides formal syntax definitions.

RS-274X vs RS-274D: What Is the Difference?

RS-274X stores aperture definitions and coordinate settings inside the Gerber file, while the older RS-274D format depends on external information to interpret the artwork correctly. That difference matters when transferring PCB data between design software and a manufacturer’s CAM system.

RS-274D external aperture tables versus self-contained RS-274X
Feature RS-274D RS-274X
Format Standard Gerber Extended Gerber
Aperture Definitions Separate aperture information Embedded in the file
Coordinate Settings Require supporting information Defined in the file
Image Description Depends on external data Self-contained graphical image
Manufacturing Support Legacy systems Widely supported
Current Status Obsolete Supported

Consider a PCB file that uses aperture D10 to draw copper traces. With RS-274D, the manufacturer needs the corresponding aperture definition to know the trace geometry. If the table is missing or incorrect, the CAM system may interpret the artwork incorrectly.

RS-274X eliminates that dependency by defining D10 within the file itself.

RS-274D is obsolete and should not be selected for new PCB manufacturing outputs. For legacy projects, reliable conversion requires the original aperture information and coordinate settings. When the source CAD project is available, exporting fresh Extended Gerber files is generally preferable.

RS-274X vs Gerber X2 vs X3: What Has Changed?

RS-274X describes PCB layer geometry, Gerber X2 adds manufacturing attributes, and Gerber X3 adds component information for assembly-related data exchange. X2 and X3 build on the existing Gerber image format rather than replacing it with unrelated file structures.

Gerber X1, X2 and X3 technical comparison
Feature RS-274X / X1 Gerber X2 Gerber X3
PCB Layer Artwork Yes Yes Yes
Embedded Apertures Yes Yes Yes
Layer Function Attributes No standardized X2 attributes Yes Yes
Object Attributes No standardized X2 attributes Yes Yes
Component Information Not standardized as X3 data Limited Extended component data
Main Purpose Layer geometry Fabrication data with attributes Fabrication and assembly data

What Does Gerber X2 Add?

X2 introduces attributes that describe the function of files and graphical objects.

Command Purpose
TF File attributes
TA Aperture attributes
TO Object attributes
TD Deletes specified attributes

For example, X2 attributes can identify a file as a top copper layer rather than relying only on a .GTL filename. They can also provide information about pads, vias, and other graphical objects where supported.

What Does Gerber X3 Add?

Gerber X3 extends the format with component-related information used in PCB assembly. Depending on the exported data, this may include:

  • Component reference designators.
  • Component locations and orientations.
  • Component outlines.
  • Pin-related information.
  • Other standardized assembly attributes.

X3 can reduce ambiguity when exchanging component information, but support depends on the CAD and CAM software used. An X3 file should not automatically be treated as a complete replacement for a BOM or pick-and-place file. The assembly manufacturer still needs to confirm that the supplied dataset contains everything required for its workflow.

Are These Formats Compatible?

Gerber X2 preserves the underlying Gerber graphical representation. Software that does not understand the additional attributes may still display the layer image correctly while ignoring those attributes.

That distinction is important: displaying the artwork and interpreting all its manufacturing metadata are different capabilities. For new projects, Gerber X2 is a practical choice when the CAD system and PCB manufacturer support it.

What Are Common RS-274X Gerber File Extensions?

Files in the RS-274X Gerber Format use extensions such as .GTL, .GBL, .GTS, .GBS, and .GBR to identify PCB layer artwork. The naming convention depends on the EDA software, so the actual layer content should be checked rather than relying entirely on the filename.

Gerber PCB layer extensions GTL GBL GTS GBS GTO and GBR
Extension Common Layer
.GTL Top Copper
.GBL Bottom Copper
.G1, .G2 Inner Copper Layers
.GTS Top Solder Mask
.GBS Bottom Solder Mask
.GTO Top Silkscreen
.GBO Bottom Silkscreen
.GTP Top Solder Paste
.GBP Bottom Solder Paste
.GKO Keep-Out or Board Outline, depending on software
.GML Mechanical Layer, depending on software
.GBR General Gerber Layer File
.GBRJOB Gerber Job File

A .GBR file may contain copper, mask, silkscreen, or another manufacturing layer. Some CAD systems identify the layer in the filename rather than its extension. Gerber X2 provides more reliable identification through embedded file-function attributes.

What About Drill Files?

NC Drill files are commonly generated separately from the Gerber artwork. They contain machine-readable drilling information, often using Excellon or another supported drill format.

The .GBRJOB file serves a different purpose. It can provide supplementary job-level data, such as layer structure and selected manufacturing specifications. It is not a substitute for the individual Gerber layers.

How to Export RS-274X Gerber Files in Altium Designer?

Altium Designer generates RS-274X files through its fabrication output tools, where users can select the required layers, units, coordinate settings, and output format. Altium also supports Gerber X2 for projects that use manufacturing attributes.

The following workflow applies to current Altium Designer manufacturing outputs. Some menu names vary by software version.

  1. Open the Completed PCB Design. Confirm the board outline, layer stackup, and component layout are finalized. Run the relevant Design Rule Check.
  2. Open an Output Job or Fabrication Output. Select Gerber RS-274X or Gerber X2, depending on the required manufacturing format.
  3. Choose the Required Layers. Include copper, solder mask, silkscreen, and the designated board outline layer.
  4. Set Units and Coordinate Precision. Confirm the numerical settings are appropriate for the design.
  5. Generate NC Drill Files. Include the necessary plated, non-plated, and special drilling outputs.
  6. Inspect the Generated Files. Open the Gerber and drill data in a CAM viewer before release.

The main export settings to check are:

Setting Recommended Check
Gerber Format RS-274X or Gerber X2
Units Millimeters or inches
Coordinate Precision Matches the required geometry
Layer Selection All required fabrication layers
Board Outline Correct profile or mechanical layer
NC Drill Correct hole types and drill-layer pairs
Output Origin Consistent across the data package

For HDI PCBs, confirm that blind vias, buried vias, and any special drilling data are included in the correct outputs.

An Output Job can help keep fabrication settings consistent between board revisions. The final CAM review still matters, particularly after changes to the stackup or mechanical outline.

How to Generate RS-274X Gerber Files in KiCad?

KiCad exports Extended Gerber files through the PCB Editor’s Plot dialog, with optional X2 attributes, Protel-style extensions, and Gerber Job data.

You can generate the required fabrication package using the following workflow.

  1. Open PCB Editor. Check the completed layout and confirm the board outline is defined on Edge.Cuts.
  2. Open the Plot Dialog. Select File → Plot or use the corresponding toolbar command.
  3. Select Gerber as the Format. Choose the output directory and required PCB layers.
  4. Configure Gerber Options. Review X2 attributes, coordinate format, filename extensions, and Gerber Job output.
  5. Click Plot. Generate the Gerber files.
  6. Generate Drill Files. Export the corresponding Excellon data.
  7. Open GerbView. Check the complete layer set and drill alignment.

Which KiCad Layers Should Be Exported?

KiCad Layer Manufacturing Purpose
F.Cu Front Copper
B.Cu Back Copper
In1.Cu, In2.Cu Inner Copper
F.Mask Front Solder Mask
B.Mask Back Solder Mask
F.Silkscreen Front Silkscreen
B.Silkscreen Back Silkscreen
Edge.Cuts Board Outline

Include F.Paste and B.Paste when stencil or assembly data is required.

Important KiCad Gerber Options

  • Use Extended X2 Format: Adds X2 attributes to the Gerber output.
  • Use Protel Filename Extensions: Produces extensions such as .GTL and .GBL rather than general .gbr filenames.
  • Generate Gerber Job File: Creates a supplementary .gbrjob file.
  • Coordinate Format: Controls numerical coordinate representation.
  • Include Netlist Attributes: Adds supported net-related information.

One detail frequently causes confusion: disabling the X2 option does not mean KiCad exports obsolete RS-274D. KiCad can still generate Extended Gerber without X2 attributes.

After plotting, open the generated files in GerbView. Check the copper layers, mask openings, board outline, and drill positions together rather than inspecting each file in isolation.

How to Open and View RS-274X Gerber Files?

Files in the RS-274X Gerber Format can be opened with a compatible Gerber viewer or CAM application, which reconstructs the artwork from the file’s coordinates and drawing commands.

PCB CAD export and fabrication layer review in Gerber viewer

Common options include:

Viewer Main Use
Ucamco Reference Gerber Viewer Reference interpretation and syntax-related checks
KiCad GerbView Viewing Gerber layers and drill files
Altium CAM Tools Reviewing manufacturing outputs
Other CAM Software Importing and preparing PCB manufacturing data

Ucamco provides a free online Reference Gerber Viewer at gerber-viewer.ucamco.com.

What Should You Check in a Gerber Viewer?

After importing the files, verify:

  • Layer Completeness: Every required copper, mask, and silkscreen layer is present.
  • Board Outline: The profile is complete and matches the intended dimensions.
  • Layer Alignment: Pads, copper, and mask openings appear in the correct positions.
  • Drill Alignment: Hole locations match their intended pads and mechanical features.
  • Orientation: The board has not been exported with unintended mirroring.
  • Unexpected Geometry: No stray lines, pads, or objects appear outside the board profile.

A useful check is to overlay the top copper, top solder mask, and drill data. If the openings and holes do not align with the pads, investigate the export settings before sending the files for production.

A Gerber viewer confirms how the artwork is interpreted. It does not establish whether every feature can be manufactured within a specific factory’s process limits.

What Are Common RS-274X Gerber File Errors and How Do You Fix Them?

The most common problems with the RS-274X Gerber Format involve incorrect exports, missing manufacturing data, incompatible import settings, or malformed commands. Many can be identified by comparing the source CAD design with the exported Gerber and drill files.

Problem Possible Cause Recommended Fix
Missing Pads Incorrect layer selection or export Regenerate and verify the affected layer
Wrong Board Size Coordinate or unit interpretation problem Check FS, MO, and file validity
Misaligned Layers Different export origins Use a consistent coordinate origin
Missing Outline Board profile not exported Include the correct outline layer
Missing Drill Holes NC Drill files absent Generate the required drill data
Mirrored Artwork Incorrect plotting or import settings Verify orientation against CAD
Missing Mask Openings Incorrect mask export Compare solder mask with copper
Viewer Import Error Unsupported syntax or malformed data Validate with a current Gerber parser

Why Does the Board Size Look Wrong?

A large scaling error can occur when software interprets coordinates using the wrong units or numerical format. RS-274X defines these settings within the file. Check the MO and FS commands and confirm that the viewer correctly interprets the actual file content.

If the file is valid but a particular viewer displays it incorrectly, compare the result in a current reference viewer before modifying the source data.

Why Are the Gerber Layers Misaligned?

Different coordinate origins are a common cause. For example, copper layers may be exported relative to the auxiliary origin while the drill files use another reference point.

Regenerate the affected files using consistent origin settings. Then overlay the copper, mask, outline, and drill data to confirm alignment.

What Does “Unknown RS-274X Extension Found” Mean?

This message may indicate that a Gerber parser encountered unsupported syntax, an unrecognized attribute, or malformed data. Its exact meaning depends on the application.

Useful checks include:

  • Identify the software and version that generated the file.
  • Check whether the output contains X2 attributes.
  • Open the file in a current Gerber viewer.
  • Compare the parser message with the actual command.
  • Regenerate the file from the original CAD project if necessary.

Avoid manually deleting commands simply to make a viewer accept the file. Doing so can change the intended image or remove useful manufacturing information.

How Do PCB Manufacturers Check RS-274X Files Before Fabrication?

PCB manufacturers check RS-274X data for layer completeness, geometric accuracy, drill alignment, and compliance with the required manufacturing capabilities. A Gerber file can be syntactically valid while still describing features that are difficult to fabricate.

CAM inspection of drill alignment, board outline and layer registration

CAM and DFM checks typically focus on the following areas.

Inspection Area What the CAM Engineer Checks Manufacturing Concern
Layer Count Correct layers and sequence Missing or incorrect data
Board Outline Dimensions and profile continuity Routing and profiling
Trace Width Minimum conductor width Etching capability
Copper Spacing Separation between features Etching and insulation
Annular Ring Copper around drilled holes Drilling registration
Drill Alignment Hole positions relative to pads Electrical connectivity
Solder Mask Openings and mask clearances Mask manufacturability
Copper-to-Edge Clearance Conductors near the board boundary Profiling clearance
Stackup Materials, dielectric and copper thickness Lamination requirements
Impedance Specified trace geometry and targets Controlled-impedance feasibility

Why Can a Valid Gerber File Fail DFM?

A Gerber file may correctly describe a 0.075 mm trace, but that does not guarantee the selected PCB process can fabricate it at the required tolerance. The same applies to small mechanical drills, narrow solder mask dams, dense vias, and insufficient copper-to-edge clearance.

A useful distinction is:

  • Gerber Validation: Can the file be interpreted correctly?
  • CAM Inspection: Are the required images and manufacturing data consistent?
  • DFM Review: Can the design be manufactured within the selected process capabilities?

This is especially important for HDI, high-speed multilayer, rigid-flex, and other specialized PCB constructions.

What Information Does RS-274X Not Fully Describe?

A traditional RS-274X image does not independently define every physical manufacturing requirement. The project may also need specifications covering:

  • Laminate material and finished board thickness.
  • Copper weight and layer stackup.
  • Controlled-impedance requirements.
  • Drill, slot, and special via treatments.
  • Surface finish and plating requirements.
  • Mechanical tolerances.
  • Assembly and testing requirements.

Gerber X2 attributes and Gerber Job data can supply more information, but manufacturers still need to review the complete dataset against the intended board.

How Does EBest Circuit Support RS-274X PCB Manufacturing?

EBest Circuit supports RS-274X-based PCB fabrication through Free DFM, multilayer and HDI manufacturing, stackup review, and PCB assembly services. With manufacturing experience dating back to 2006, our engineering team checks whether the supplied manufacturing data matches the intended PCB construction and production requirements.

A Gerber package may look complete while still containing issues that affect fabrication. EBest Circuit’s review focuses on identifying those concerns before production begins.

Our manufacturing support includes:

  • Free DFM: Review of relevant Gerber geometry, drill data, and manufacturing feasibility.
  • Multilayer PCB Fabrication: Manufacturing support for customized layer structures.
  • HDI PCB Manufacturing: Review of microvias, blind vias, buried vias, and related high-density structures.
  • Stackup and Impedance Review: Assessment of materials, dielectric thicknesses, and specified impedance requirements.
  • PCB Assembly: Component sourcing, SMT/THT assembly, and project-specific inspection.
  • No MOQ: Prototype and low-volume manufacturing support.

For example, a design may contain a complete set of copper Gerber files but lack the drilling information for blind vias. Another may specify controlled impedance without providing an approved stackup. These are the kinds of issues that should be resolved during engineering review rather than after production starts.

For RS-274X Gerber-based PCB projects, EBest Circuit offers Free DFM, multilayer fabrication, HDI manufacturing, and PCB assembly support. Share your design files and manufacturing requirements with sales@bestpcbs.com for a project-specific engineering review.

Frequently Asked Questions About RS-274X

1. Can I Open an RS-274X File in a Text Editor?

Yes. RS-274X is a text-based format, so you can inspect commands, coordinates, and aperture definitions in a standard text editor. Use a Gerber viewer to check the actual graphical image.

2. Are Gerber X2 Files Compatible with RS-274X Software?

Generally, yes for the underlying image, provided the software supports the relevant Gerber syntax. Older viewers may ignore X2 attributes, so graphical compatibility does not guarantee full support for the additional manufacturing information.

3. Can RS-274X Files Replace NC Drill Files?

No. Traditional RS-274X artwork does not replace complete machine-readable drilling instructions. Manufacturers normally require separate drill files, commonly in Excellon or another supported format.

4. Can RS-274D Files Be Converted to RS-274X?

Yes, if the correct aperture definitions and coordinate interpretation information are available. Without those details, reliable conversion may be impossible. Re-exporting from the original CAD project is usually preferable when the design files still exist.

5. Can RS-274X Files Be Used for Multilayer and HDI PCBs?

Yes. RS-274X can describe the layer artwork of multilayer and HDI designs. The manufacturer also needs the appropriate stackup, drilling data, via specifications, and other fabrication requirements.

6. Do I Need to Rename My .GBR Files to .GTL or .GBL?

No. Renaming files does not change their layer content. Clear filenames and a correct layer map are useful, while X2 attributes can provide standardized layer identification.

7. Can Gerber X3 Replace BOM and Pick-and-Place Files?

Sometimes it can carry much of the required component information, but replacement depends on the data exported and the assembly manufacturer’s supported workflow. Confirm whether separate BOM, placement, and assembly documentation are still required.

Conclusion

The RS-274X Gerber Format remains widely supported for transferring PCB layer artwork from CAD software to manufacturing systems. Its embedded aperture definitions and coordinate settings make the graphical data easier to exchange than the obsolete RS-274D format, while Gerber X2 and X3 add more manufacturing and assembly information.

For PCB designers, accurate export settings and a careful Gerber viewer check are the practical priorities. The next step is confirming that the geometry, drill data, and physical board requirements match the manufacturer’s process capabilities.

EBest Circuit supports RS-274X-based manufacturing with Free DFM, multilayer PCB fabrication, HDI capabilities, and PCB assembly services. Contact sales@bestpcbs.com for an engineering review and quotation.

You may also like

Tags: , , , ,