Gerber RS-274X · Excellon · top and bottom views

Gerber File Viewer

Drop a fabrication ZIP to see the board as the fab house will, with layer colours, a size and layer report, and the drill table.

Files

A ZIP up to 60.00 MB, or loose files

Drop a Gerber ZIP or files here

Up to 60 files, 30.00 MB each.

Board

Open a Gerber ZIP to see the board.

Gerber File Viewer

Operator: Abdulla Al Fahad. How tools are built and checked

A fabrication ZIP is a stack of text files, one per layer, and the usual way to spot a mistake in it (a missing outline, a mirrored bottom layer, a drill file in the wrong units) is to open it in a viewer before paying for boards.

This reader parses the files itself: RS-274X Gerber for copper, mask, silkscreen, paste and outline, and Excellon for drills.

It draws the top and bottom of the board with each layer in its usual colour and reports the size, the copper layer count and every drill size.

Key features

  • Round, rectangular, obround and polygon apertures (with holes), and aperture macros with variables, arithmetic and the circle, line, outline and polygon primitives
  • Straight and circular draws (single and multi quadrant), filled regions, dark and clear polarity, and step and repeat
  • Excellon holes, G85 slots and routed slots, in metric or inch and with leading or trailing zero suppression
  • Layer roles from the file's own FileFunction attribute, or from the file name patterns of KiCad, Eagle and the Protel extensions
  • A top view and a mirrored bottom view, with solder mask openings shown as bright pads and copper under the mask dim

What the reader draws and what it does not

A Gerber file is a sequence of commands. Coordinates have no decimal point: the format statement, such as %FSLAX46Y46*%, says each number has 4 integer and 6 decimal digits with leading zeros omitted, so X10000000 is 10.000000 in the file's unit. The unit comes from %MOMM*% or %MOIN*%. The reader converts everything to millimetres and flips y so the picture is upright.

A circular draw gives only its end point and the offset I,J from the start to the centre. In multi-quadrant mode (G75) the offsets are signed; in the old single-quadrant mode (G74) they are unsigned and the reader tries the four sign combinations and keeps the one with equal radii and a sweep of at most 90 degrees. The incremental coordinate mode (%FSLI), long deprecated, is refused with a message.

Clear polarity (%LPC*%) removes copper that was drawn before it. The reader implements this with an SVG mask over the earlier objects of the same layer, so a clear flash inside a dark region leaves a true hole, not a patch in the background colour.

The board edge is taken from the outline layer's centre line, because the outline pen is only a drawing tool and the fabricator cuts along its middle. Closed loops of outline segments are chained into the board shape, so an outline with rounded corners or cut-outs fills correctly; without an outline layer the size falls back to the copper extents, including the bulge of any arcs, and the report says so.

How it works

Files are read in a worker. ZIP contents are unpacked with a running count of the real bytes (150 MB for the archive, 30 MB per file, 60 files), and each file is classified from its content, not just its extension: an M48 header marks Excellon, a format statement marks Gerber.

Each Gerber layer becomes an SVG fragment in millimetres, with apertures defined once and reused for every flash, which keeps a board with 20,000 pads in a few megabytes. A layer is cut off at 400,000 objects with a warning, and a layer whose drawing would exceed 24 million characters is reported as too detailed. The composite view stacks the board, copper, mask, silkscreen, drills and outline in that order, and each layer can be switched off. The picture is shown as an image and never opened as a document.

When this helps

  • A hobbyist about to order 5 boards opens the ZIP the layout tool exported and finds the top silkscreen file is empty: its layer shows 0 draws and 0 flashes, so the silk text never made it into the export.
  • A drill file's header says INCH although the numbers came from a metric export. The drill table lists 20.32 mm holes, the 0.8 read as inches, where the vias should be 0.8 mm, so the unit mistake shows before any board is drilled.
  • A two-layer ZIP from an unfamiliar tool names its files board-1.gbr and board-2.gbr. Each carries a FileFunction attribute, so the page still labels them Top copper and Bottom copper.
  • A panelised file uses step and repeat to place the same board several times; the report's size is the whole panel, not a single board.

Opening a file

  1. Drop the fabrication ZIP, or select the Gerber and drill files together.
  2. Read the layer list: every file is named, typed, counted and given its own warnings.
  3. Switch between Top and Bottom and toggle mask, silkscreen, paste and drills; check the report, then download a PNG or SVG.

Example

A ZIP with top.gtl, top.gts, top.gto, edge.gko and x-PTH.drl, all metric

Copper: 2 draws and 3 flashes (a 1.6 mm square pad, two 1.8 mm round pads); mask: two 2.2 mm openings over the round pads; outline: 50 × 40 mm with a 10 mm radius corner; drill: two 1.0 mm plated holes

Report

Board size 50.00 × 40.00 mm (1.969 × 1.575 in), from the outline layer
Copper layers 1; Gerber files 4
Drill: 2 holes and 0 slots in 1 size (1.000 mm, plated)
The two round pads show as bright rings around the holes; the square pad and the traces, with no mask opening, appear dim

Limits

The view is a faithful drawing of the files, not a design-rule check: it does not measure clearances, trace widths or drill-to-copper distances.

Thermal macros are drawn as a ring without their gaps, and macro primitives with clear exposure are drawn as dark. Both are flagged on the layer.

  • Switch to Bottom to check that text on the back reads mirrored: if the bottom silkscreen text reads normally in the mirrored view, the layer was exported with the wrong side.
  • Turn solder mask off to see all copper in gold, and on to see which pads are actually exposed.

Common errors and how to fix them

"This Gerber file uses incremental coordinates"
Re-export the layer with absolute coordinates; every current CAD tool does so by default.
"None of the files was a Gerber or Excellon drill file"
Check you dropped the fabrication ZIP, not the project folder. Gerber files start with a %FS format statement and drills with M48.
"Nothing could be opened" or "The ZIP is empty"
Every file in the archive was skipped, for size or because it was a folder or hidden file. The message lists the first reasons; re-zip only the Gerber and drill files.

Best practices

  • The apertures count in the report is a quick sanity check; a layer with hundreds of distinct apertures usually comes from a plot that converted text or logos to flashes.

Frequently asked questions

Does the viewer fix files that look wrong?

No. It draws what the files say. If a layer looks mirrored, the file is mirrored, and the Top and Bottom views help you tell which layer it belongs to.

Which drill unit and zero mode does it assume?

The METRIC or INCH line and LZ or TZ flag in the drill header win. When a header gives no digit format the reader uses 3.3 for metric and 2.4 for inch, and coordinates with an explicit decimal point are used as they are.