Kyros Engineering Engineering Tools
Home › Tools › Gerber Viewer
// PCB tools Proto v0.1Gerber X2ExcellonDFM checkRev compare

Gerber Viewer

Drop a fab package to see every layer, measure in mm or mil, and inspect pads and nets. Then check trace width, drills, annular ring and edge clearance against a fab preset, or compare two revisions.

Runs entirely in your browser. Your Gerber files are never uploaded.

1 · Load a fab package

Drop a .zip or Gerber + drill files
or click to choose. BOM, pick-and-place, PDF and README files are ignored.

2 · Layers

View
Show
Board substrateFR-4, filled from the outline

Detection order: Gerber X2 file function, then file-name conventions (KiCad, Altium, Eagle, EasyEDA/JLC, OrCAD, gEDA), then content. Use ✎ to correct a layer.

Board view

Loading the rendering engine…
—

Board report / DFM quick-check

Measured from the files with our own parser. Engineering estimate: it checks what can be measured without polygon booleans, and says so where it can't.

Load a board to see its size, layer count, minimum trace, drills and clearances.
Board size
—
Layer count
—
Min trace
—
Min drill
—
Holes
—
Min annular ring
—
Copper to edge
—
Hole to edge
—

Fab capability check

mil
mm
mm
mm
mm
—
CheckMeasuredLimitStatusNote

Drills

ToolØ mmØ milPlatingHitsSlotsFile

Copper trace widths

LayerMin traceWidths used (count)Basis
Apertures (0)
LayerD-codeShapeW × H mmFlashesDrawsFunction (X2)

Compare revisions

Load two revisions of the same board. Pick a layer to see what was removed (only in A), added (only in B) and kept, plus a list of changed areas.

Set A (older)

Drop a zip or files
—

Set B (newer)

Drop a zip or files
—
—
// How it works

What the viewer reads, and what the report measures

A fab package is a set of RS-274X Gerber files, one per layer, plus one or more Excellon drill files. The viewer reads them with the File API in this tab. A Rust/WebAssembly engine parses each layer once and draws it with WebGL2, so pan and zoom only redraw. Dark and clear polarity are honoured, so pour clearances stay visible.

Layer identification

Each file is classified by side (top, bottom, inner, all) and type (copper, mask, silk, paste, outline, drill, mechanical). The strongest evidence wins:

  1. Content. An M48 header or a tool table means Excellon. A %FS/%MO header means Gerber. Anything else (BOM, CPL, PDF, README, .gbrjob) is ignored.
  2. Gerber X2 attributes. %TF.FileFunction,Copper,L2,Inr*% says exactly what the file is. KiCad writes the same attribute into drill files as a comment.
  3. File names. KiCad layer names (-F_Cu, -In1_Cu, -Edge_Cuts), Protel/Altium extensions (.GTL .GBL .G1…G30 .GTO .GTS .GKO .GM1), Eagle (.cmp .sol .plc .stc .crc .dim), EasyEDA/JLC (Gerber_TopLayer.GTL, Drill_PTH_Through.DRL), OrCAD and gEDA.

Solder mask Gerbers describe the openings. In the realistic style the viewer draws the negative of the mask clipped to the board outline, so you see green coating with gold pads showing through, as on the finished board.

Board report formulas

board size = extents of the outline centreline (aperture width excluded) min trace = narrowest round/obround D01 draw, dark polarity, on copper; only X2 "Conductor" apertures when the file tags apertures annular ring = min over plated holes of (pad half-extent − hole radius), pad = flash on an outer copper layer at the hole centre copper to edge = min distance(copper, outline centreline) − half trace width hole to edge = min distance(hole centre, outline) − hole radius status = Below if value < limit − 1 µm, At the limit if < 1.1 × limit

A design at 6/6 mil on a 6/6 mil process passes, but has no margin, so it shows as "At the limit". That is deliberate: at the limit, yield depends on the fab's process window.

Compare revisions

For Gerber layers the engine computes boolean composites: A minus B (removed, red), B minus A (added, cyan) and A ∩ B (kept, grey). A raster pass at about 2,400 pixels across groups the red and cyan pixels into change areas you can click to zoom to. Drill files are compared hole by hole: same position within 10 µm, same diameter within 1 µm.

Limits

Privacy

Files are read locally and never sent anywhere. The page's Content-Security-Policy only allows network requests to this site and to Google Analytics page-view counting. You can confirm this in your browser's network tab, or disconnect after the page loads and keep working.

References

  1. Ucamco, The Gerber Layer Format Specification, revision 2024.05: FS, MO, AD, AM, LP, LS, SR, G36/G37, G74/G75, and the X2 attributes .FileFunction, .AperFunction, .N/.C/.P.
  2. IPC-NC-349 and the Excellon format: M48 header, METRIC/INCH, LZ/TZ, tool table, G85 slots, M15/M16 routing.
  3. IPC-2221B, Generic Standard on Printed Board Design: annular ring and conductor-to-edge definitions.
  4. dsafdsaf132, wasm-gerber-viewer / npm wasm-gerber-renderer 0.8.2 (MIT): the Rust/WASM/WebGL2 parser and renderer, vendored unmodified.
  5. tracespace, whats-that-gerber (MIT): reference for CAD file-naming conventions. Our identification tables are our own.
  6. PKWARE, APPNOTE.TXT: .ZIP File Format Specification: central directory, ZIP64 and deflate entries, read here with the browser's DecompressionStream.

Sending a board to fab and want a second set of eyes?

Kyros reviews layouts and fab packages for manufacturability, and designs boards that pass DFM the first time: stack-up, impedance, drill and clearance rules matched to your board house.

Talk about your project →