Gerber files describe the image geometry of PCB layers. RS-274X is the historic name for Extended Gerber, which embeds aperture definitions in the file. This guide explains how to read a small example, inspect exported layers and assemble a fabrication package. A successful viewer check does not replace electrical design checks or a manufacturer’s DFM review.
1. What is RS-274X?
RS-274X, also known as Extended Gerber or X-Gerber, is a file format used in PCB manufacturing to describe the board layers and other essential information needed for production.
History and Evolution
The RS-274X format evolved from its predecessor, RS-274D. While RS-274D served the industry for years, it had limitations that became apparent as PCB designs grew more complex. RS-274X was introduced to address these shortcomings and provide a more robust solution for modern PCB design needs.
Why RS-274X Became the Industry Standard
RS-274X quickly became the go-to format for several reasons:
- Embedded apertures: Unlike RS-274D, which required separate aperture files, RS-274X includes aperture definitions within the file itself.
- Streamlined layer information: RS-274X provides a more efficient way to describe layer polarity and function.
- Improved precision: The format supports higher resolution and more accurate representations of complex designs.
- Wider compatibility: Most PCB design software and manufacturing equipment support RS-274X, making it a universal choice.
Key Features of RS-274X
- Embedded apertures for simplified file management
- Enhanced layer information handling
- Support for complex pad shapes and custom apertures
- Improved precision and resolution
- Better handling of curves and arcs
2. Understanding the RS-274X File Structure
To work effectively with RS-274X files, it’s crucial to understand their structure. Let’s break down the anatomy of a typical RS-274X file:
Basic Anatomy of an RS-274X File
- Header Information
- Aperture Definitions
- Drawing Commands
- Extended Attributes
Header Information
The header contains essential details about the file, including:
- Format specification
- Unit of measurement (inches or millimeters)
- Coordinate format (integer and decimal places)
- Polarity information
Aperture Definitions (AD Commands)
Apertures define the shapes used for drawing. In RS-274X, these are specified using AD (Aperture Definition) commands. Common aperture types include:
- Circle
- Rectangle
- Obround (oval)
- Polygon
Drawing Commands (D-codes)
D-codes are used to draw the PCB features. Some common D-codes include:
- D01: Draw line (with exposure on)
- D02: Move (with exposure off)
- D03: Flash (expose a single aperture)
Extended Attributes
Gerber X2 adds attributes to the Gerber image data. Do not assume a legacy RS-274X export contains them. Depending on the exporter, these attributes can identify:
- Layer function (e.g., copper, solder mask, silkscreen)
- File function (e.g., top layer, bottom layer, drill)
- Part information
Common Terms Explained
- Layers: Individual components of the PCB design (e.g., copper layers, solder mask)
- Polygons: Filled areas on the PCB, often used for ground planes or power distribution
- Macros: Reusable definitions for complex shapes or patterns
Example of a Simple RS-274X Snippet
Here’s a brief example of what you might see in an RS-274X file:
%FSLAX46Y46*%
%MOMM*%
%ADD10C,0.1*%
%ADD11R,1X1*%
D10*
X1000000Y1000000D03*
D11*
X2000000Y2000000D03*
M02*
Let’s break this down:
%FSLAX46Y46*%: Specifies absolute coordinates with four integer and six decimal digits (4.6), with leading zeros omitted%MOMM*%: Sets the unit to millimeters%ADD10C,0.1*%: Defines aperture D10 as a circle with a 0.1mm diameter%ADD11R,1X1*%: Defines aperture D11 as a 1mm x 1mm rectangleD10*: Selects aperture D10X1000000Y1000000D03*: Flashes aperture D10 at coordinates (1mm, 1mm)D11*: Selects aperture D11X2000000Y2000000D03*: Flashes aperture D11 at coordinates (2mm, 2mm)M02*: Marks the end of the program
Read more about:
3. RS-274X vs. Other Gerber Formats

While RS-274X is the most widely used Gerber format, it’s essential to understand how it compares to other formats:
RS-274D vs RS-274X
RS-274D, the predecessor to RS-274X, had several limitations:
- Required separate aperture files
- Limited support for complex shapes
- Less efficient file structure
RS-274X addressed these issues, making it a superior choice for modern PCB design.
Comparison with Gerber X2
Gerber X2 is a more recent format that builds upon RS-274X. Key differences include:
- Enhanced metadata support
- Improved handling of drill and rout information
- Attributes identifying file and feature functions; stackup and material requirements still need fabrication documentation or an agreed Gerber Job file
Check the receiving CAM system and agree the export settings. The presence of X2 attributes does not eliminate the need to supply drill data, the board outline and manufacturing requirements.
Why RS-274X is Still Widely Used
RS-274X continues to dominate the PCB industry for several reasons:
- Universal support: Nearly all PCB design software and manufacturing equipment support RS-274X.
- Familiarity: Many engineers and manufacturers are well-versed in working with RS-274X.
- Sufficient functionality: For most PCB designs, RS-274X provides all necessary features.
- Backwards compatibility: RS-274X files can be read by systems that support newer formats.
4. How RS-274X Files are Created and Used
Understanding the lifecycle of RS-274X files is crucial for anyone involved in PCB design and manufacturing.
From PCB Design to Manufacturing: RS-274X’s Role
- PCB Design: Engineers create the board layout using EDA (Electronic Design Automation) software.
- Gerber Generation: The EDA tool exports the design as RS-274X files.
- Design Review: The Gerber files are inspected using viewers to ensure accuracy.
- Manufacturing: Send the reviewed layers, drill files and fabrication specification to a PCB fabrication house for a manufacturability review before release.
File Generation Process in EDA Tools
Most EDA tools have a built-in Gerber export function. This process typically involves:
- Selecting the RS-274X format
- Choosing which layers to export
- Setting output options (e.g., units, precision)
- Generating the files
Typical Layers in an RS-274X File Package
A fabrication package normally includes the applicable Gerber layers below, plus separate drill data and a fabrication drawing. The drill file is not simply another copper image layer:
- Top Copper
- Bottom Copper
- Inner Copper Layers (for multi-layer boards)
- Top Soldermask
- Bottom Soldermask
- Top Silkscreen
- Bottom Silkscreen
- Drill File
- Board Outline
5. Popular RS-274X Viewers

A Gerber viewer helps inspect the exported geometry before fabrication. Visual inspection alone does not prove net connectivity, design-rule compliance or manufacturability.
Why You Need a Gerber Viewer
Gerber viewers allow you to:
- Visually inspect your PCB design
- Verify layer alignment
- Check for manufacturing issues
- Measure board dimensions and features
Best Free and Paid RS-274X Viewers
Gerbv (Free)
- Open-source viewer for Unix-like systems
- Simple interface with layer management
- Supports measurement and export features
KiCAD GerbView (Free)
- Part of the KiCAD suite
- Integrated with KiCAD workflow
- Supports various Gerber formats
ViewMate
- Viewer by PentaLogix; check the current edition and licensing before selecting features
- Advanced analysis and measurement tools
- Supports a wide range of PCB formats
Online Gerber Viewers
- Ucamco Reference Gerber Viewer: an online viewer that displays layers and X2 attributes and measures distances
- For confidential designs, check your organization’s upload policy before using any online viewer; local GerbView is another option
Key Features to Look for in an RS-274X Viewer
- Layer management
- Measurement tools
- DRC (Design Rule Check) capabilities
- Export options (e.g., PDF, images)
- Cross-section view
- Compatibility with other PCB formats
6. Working with RS-274X in KiCAD

KiCAD, a popular open-source EDA suite, offers robust support for RS-274X files.
Introduction to KiCAD’s Support for RS-274X
KiCad PCB Editor exports Gerber files, and GerbView displays Gerber and drill data. GerbView can also export a limited geometric representation to PCB Editor; this does not reconstruct the original schematic, component definitions or complete editable design.
How to Export RS-274X Files from KiCAD
- Open your PCB design in KiCAD’s PCB Editor
- Open the Gerber plotting or fabrication-output command in PCB Editor; menu wording depends on the KiCad version
- In the Plot dialog:
- Select the layers you want to export
- Choose Gerber as the output format
- Set the output directory
- Generate the Gerber files, then generate drill files separately using the same origin and units. Inspect the complete output set together
Using GerbView to Inspect RS-274X Files
- Open GerbView from KiCAD’s main window
- File > Open Gerber File(s)
- Select the RS-274X files you want to inspect
- Use the layer list to toggle visibility
- Utilize measurement tools to verify dimensions
Common Issues and Solutions
- Missing layers: Ensure all necessary layers are selected during export
- Incorrect scale: Verify unit settings in both KiCAD and the viewer
- Aperture problems: Check for any custom apertures that might not have exported correctly
7. Common Problems and Troubleshooting RS-274X Files
Even with careful preparation, issues can arise when working with RS-274X files. Here are some common problems and solutions:
Aperture Issues and Missing Layer Data
- Problem: Incorrect or missing aperture definitions
- Solution: Verify aperture definitions in your EDA tool and ensure they’re included in the export
Problems with CAM Jobs
- Problem: Incorrect layer order or missing layers in CAM software
- Solution: Double-check your CAM job settings and compare them with your original design
Techniques for Validating RS-274X Files
- Use multiple viewers to cross-check your files
- Perform a DRC (Design Rule Check) in your EDA tool before export
- Use a Gerber comparison tool to verify changes between revisions
- Check for common issues like misaligned drill holes or incorrect board outlines
8. Future of RS-274X and PCB Data Formats

As PCB technology evolves, so do the data formats used to describe them. Let’s look at the future of RS-274X and emerging standards.
Ongoing Relevance of RS-274X
Despite newer formats, RS-274X remains relevant due to its:
- Wide industry adoption
- Sufficient capabilities for most designs
- Continued support from software and hardware vendors
Emerging Standards
- Gerber X2: Enhances RS-274X with improved metadata and drill information
- IPC-2581: An open, neutral standard aiming to streamline the PCB manufacturing process
How RS-274X Fits into Modern PCB Workflows
RS-274X continues to play a crucial role in PCB design and manufacturing workflows:
- Design: EDA tools support RS-274X export
- Verification: Gerber viewers and DRC tools work with RS-274X
- Manufacturing: Confirm the receiving fabricator’s accepted data formats and documentation requirements
- Quality Control: Inspection equipment can read and verify RS-274X data
Conclusion
Understanding RS-274X is crucial for anyone involved in PCB design and manufacturing. This format, with its rich history and wide adoption, continues to be the backbone of PCB data exchange. By mastering RS-274X, you can ensure smoother workflows, fewer manufacturing errors, and ultimately, better PCB products.
Key Takeaways
- Always validate your RS-274X output before sending it to manufacturers
- Familiarize yourself with Gerber viewers to catch issues early
- Stay informed about emerging standards while mastering RS-274X
- Use tools like KiCAD to streamline your RS-274X workflow
By following these guidelines and continuously expanding your knowledge of RS-274X, you’ll be well-equipped to handle the challenges of modern PCB design and manufacturing.
FAQs
- What is the difference between RS-274X and Gerber X2? RS-274X is the standard Gerber format, while Gerber X2 is an enhanced version that includes additional metadata and improved drill information.
- How do I open an RS-274X file? You can open RS-274X files using Gerber viewers like Gerbv, KiCAD’s GerbView, or Ucamco’s online Reference Gerber Viewer. Check file-sharing permissions before uploading confidential designs.
- Can I still use RS-274X? Confirm the export format with your fabricator. Include drill files, the outline and fabrication requirements; a set of layer images alone does not specify the complete build.
- Can I convert RS-274D files to RS-274X? Many modern EDA tools can import RS-274D files and export them as RS-274X. However, manual adjustments may be necessary to fully utilize RS-274X features.
- What software best supports RS-274X? Popular EDA tools like Altium Designer, KiCAD, Eagle, and OrCAD all provide robust support for RS-274X file generation and manipulation.
Technical references: Ucamco Gerber specifications, Ucamco Reference Gerber Viewer and KiCad 9 GerbView documentation.