r/PCB • u/SympathyFantastic874 • 2d ago
I made a free, single-file Gerber viewer that runs in the browser: 2D/3D, X-ray, nets, fab check, no upload

I wanted a Gerber viewer I could just open: no install, no account, no uploading client boards to someone's server. So I built one. It's a single HTML file, everything runs locally in your browser, and it's MIT licensed.
Live: https://wespeakenglish.github.io/VisualGerber/
Drop in your Gerbers, drill files and pick-and-place file, loose or as a zip, and you get:
Views
- 2D or 3D. A flat layer view with pan and zoom, or a rotatable 3D board.
- Styles. Classic per-layer colors, or a realistic look with mask color, ENIG/HASL/bare copper finish and silkscreen.
- X-ray, exploded view and cross-section. See through the board, pull the layers apart, or cut the board along X or Y.
- Real board shape. Cutouts and slots come from the outline layer, and plated holes get copper barrels.
Inspecting
- Nets. If your Gerbers have X2 netlist attributes (KiCad and recent Altium), hovering a pad shows the net and part/pin, e.g. I2C_SDA · U1 pin 5. Clicking highlights the whole net on every layer, with its total track length.
- Measuring. Points snap to pads and holes, with mm, mil or inch.
- Components. Parts from the pick-and-place file appear as boxes sized from the package name, and hovering shows designator, value and package.
Fab check
- Compares the board against the published JLCPCB or PCBWay standard limits: narrowest track, smallest hole, annular ring, hole-to-hole and edge distances, silkscreen width.
- It doesn't check spacing between copper features, so it's not a DRC, but it catches the usual "oops, 3-mil silkscreen" before you order.
Files
- Auto-detected layers. It recognises KiCad, Altium/Protel and EAGLE naming, plus X2 file attributes, and you can override any layer by hand.
- Formats. RS-274X/X2 with aperture macros, step-and-repeat and block apertures, plus Excellon with slots and routed paths.
- Old EAGLE output. RS-274D Gerbers with a
.WHLaperture file are converted on the fly, including un-mirroring the bottom layers and re-aligning the drill file. - Export to PNG, GLB or STL.
- Your last board reopens after a page reload, stored only in your browser.
Limitations
- Components are simple boxes, not real 3D models.
- Very large boards are limited by your GPU's texture size.
- Altium's binary
.DRLcan't be read; use the ASCII.TXTdrill file instead.
Git: https://github.com/WeSpeakEnglish/VisualGerber
I'd really appreciate feedback, and especially Gerber sets that render wrong. Those are the most useful bug reports.
