How to open Gerber files (and what to do when they look wrong)

Exploded view of a two-layer PCB: silkscreen, mask, copper, FR-4 core, copper and mask, labelled .GTO to .GBS, with drill holes lined up.
Each Gerber file is one layer of the board, and the drill file's holes have to line up through all of them. Diagram: Gerber3D

You open Gerber files with a Gerber viewer. The quickest way is to drop the whole ZIP onto a browser-based viewer. The best free desktop option is GerbView, which comes with KiCad. Double-clicking a .GTL file won't do anything useful, because Windows and macOS don't know what it is.

Short answer: open the ZIP in a free browser-based viewer, or install KiCad and use GerbView. Load the drill files too. If you don't, the board will have no holes.

What's in the ZIP you were sent

A board's manufacturing data is a set of text files. There is one file per layer, plus one or two drill files. A two-layer board usually has nine to twelve files:

  • top and bottom copper (.GTL, .GBL, or KiCad's -F_Cu.gbr and -B_Cu.gbr)
  • solder mask and silkscreen for each side (.GTS, .GBS, .GTO, .GBO)
  • paste layers (the stencil for solder paste), if the board has SMD (surface-mount) parts (.GTP, .GBP)
  • the board outline (.GKO, .GM1 or Edge_Cuts)
  • Excellon drill files (.DRL, .TXT, .XLN). These are often split into plated holes (with copper inside) and non-plated holes.

Sometimes there's also a Gerber job file (.gbrjob), a pick-and-place file (where each part goes) and a BOM (bill of materials). The Gerber file extensions guide explains every naming scheme you're likely to meet.

Every one of these is plain text. Open one in a text editor and you'll see lines like %FSLAX46Y46*% and X1250000Y-3400000D01*. That's handy for checking units. But it won't show you the board.

Your options

ViewerWhere it runsCostGood for
Gerber3DBrowser, files stay on your computerFreeQuick look, 3D board view, DFM checks, parts from a placement file
Ucamco Reference Gerber ViewerBrowserFreeSeeing what the spec says a file means; its syntax checker flags files that break the standard
Your fabricator's upload previewBrowser, after uploadFreeSeeing how that fab read your files before you pay
KiCad GerbViewWindows, macOS, LinuxFree, open sourceOffline viewing, measuring, comparing layers, any number of boards
gerbvMainly LinuxFree, open sourceA long-standing reference viewer, scriptable from the command line
CAM tools (CAM350 and others)DesktopPaidEditing, panelizing and fab-side engineering

Ucamco maintains the Gerber specification. So its viewer is the one to use when you and a fab (the board maker) disagree about what a file says. It's a Gerber viewer first, so don't expect a 3D board.

GerbView ships with every KiCad install. The current release is KiCad 10. At the time of writing (October 2026), 10.0.8 is the latest point release. It loads Gerber and Excellon files and can open a ZIP archive directly. It also has a measure tool. You don't need to use KiCad for design to use it.

gerbv started in the gEDA project. It is still maintained on GitHub. Tracespace is a popular open-source browser viewer, but it is on indefinite hiatus. Its maintainer has stopped development and isn't looking for new maintainers. So treat it as unmaintained.

Step by step in a browser viewer

We use Gerber3D as the example here. Most viewers follow the same pattern.

  1. Open the viewer and drag the ZIP onto the page. You can also select the individual files. Nothing is uploaded. The files are read in your browser.
  2. Look at the file list. Each file should have a layer role next to it, such as top copper, bottom mask, outline or drill. Fix any wrong ones in the Layers panel.
  3. Switch between layers in the 2D view. Check that copper, mask openings and silkscreen line up. Also check that the outline closes.
  4. Open the 3D view and pull the stack apart. Holes should sit in the middle of their pads on every layer.
  5. Measure something you know, such as the board width or the spacing of mounting holes. Compare it with your drawing.
  6. If you're about to order, run the design checks against a profile for your fabricator.

If you don't have a ZIP, the sample board shows what a complete set looks like.

When it looks wrong

There's no board outline

The outline file is missing. Or the outline was drawn on a copper or silkscreen layer instead of its own layer. Some exports also leave it as an unrecognized .gbr file, or as a mechanical layer that the viewer doesn't treat as the outline.

Look for a file with a closed rectangle (or your board shape) in it, and set its role to outline. If there isn't one, go back to the CAD tool. In KiCad that's the Edge.Cuts layer, and it has to be ticked in the plot dialog.

The holes are scattered, tiny or off the board

This almost always means the drill file's units or zero suppression were misread. Zero suppression means leaving zeros out of the numbers. Excellon files store coordinates as digits with an implied decimal point. Older files also leave out leading or trailing zeros.

Read inch data as millimeters, or trailing-zero data as leading-zero, and every hole moves. It moves by a factor of 25.4 or by a power of ten. Open the drill file in a text editor and look at the header. Look for METRIC or INCH, and LZ or TZ.

The real fix is to export again with explicit millimeters and decimal format. Then nothing has to be guessed.

Three views of one board: holes centred on pads, holes bunched at the origin when inch is read as mm, and holes ten times too far out with wrong zeros.
The copper layers are read correctly; only the drill coordinates are scaled, by 1/25.4 for a unit mix-up or by a power of ten for zero suppression. Diagram: Gerber3D

A layer is in the wrong place

Viewers guess the layer from the X2 attributes inside the file (labels that say what the layer is). If those are missing, they use the file name. Files named layer1.gbr and layer2.gbr give them nothing to go on.

Set the role by hand. Next time, export with X2 attributes or Protel extensions, so the next person doesn't have to.

A layer is empty

Usually it really is empty. Examples are a bottom paste layer on a board with no bottom SMD parts, or an inner layer exported from a two-layer design. An empty file is harmless. But an empty copper layer where you expected a ground pour (a large area of copper fill) often means the zones weren't filled before plotting.

The bottom looks mirrored

It isn't. All Gerber layers are drawn as seen from the top. So bottom silkscreen reads backwards in a 2D view. That's correct. A 3D view flipped to the bottom shows it the right way round.

Once the files look right, work through how to check Gerber files before ordering. It takes a few minutes. It catches most of the mistakes that cost a board spin (one more round of making boards).

Questions

Can I open Gerber files without installing anything?

Yes. Browser-based viewers open a ZIP of Gerber and drill files directly, and several are free, including Ucamco's Reference Gerber Viewer. Some read the files locally instead of uploading them, which matters for unreleased designs.

What program opens .GTL and .GBL files?

Any Gerber viewer. .GTL is top copper and .GBL is bottom copper in the Protel naming scheme; they're plain Gerber files with a layer-specific extension.

Can I open Gerber files in a text editor?

You can, and it's useful for reading the header (units, format statement, X2 attributes), but you'll only see commands and coordinates, not the board.

Can I edit a Gerber file?

Viewers don't edit. Change the design in your CAD tool and export again. CAM software can edit Gerbers directly, but fixing the source design is the safer habit.

Sources

  1. GerbView reference manual, KiCad 9.0 (KiCad)
  2. KiCad 10.0.8 release (KiCad)
  3. Ucamco's new version of Reference Gerber Viewer freeware (I-Connect007)
  4. Best online ECAD file viewers (Altium)
  5. gerbv project page (gerbv)
  6. tracespace repository (GitHub)