Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
 

What is VisualGerber

VisualGerber (the project itself calls the tool "Gerber 3D Viewer") is a free, open-source PCB viewer that runs entirely in a web browser. It is a single index.html file: no installation, no build step, no server. You open the page, drop in your fabrication files, and look at the board as flat layers or as a 3D model. The author is WeSpeakEnglish, the code is on GitHub under the MIT license, and there is a live version you can try right away.

Your files are processed locally in the browser and are not uploaded anywhere. The page does load three.js and JSZip from public CDNs, so it needs an internet connection when it first opens.

How to start

  1. Open the live page or the local index.html in a recent Chrome, Edge or Firefox with WebGL support.
  2. Click Open files or drag files onto the page. You can drop single Gerber, drill and pick-and-place files, a whole folder, or one or more ZIP archives.
  3. The board opens in 2D. Switch to 3D with the toolbar switch or by pressing 2 and 3.

Main features

  • 2D and 3D views: a flat top or bottom view you can pan and zoom, or a rotatable 3D model. Top, Bottom, Iso and Flip buttons change the angle.
  • Two styles: "Layers" shows each layer in its own color like a classic Gerber viewer; "Realistic" imitates a manufactured board with solder mask, finish and silkscreen.
  • X-ray, exploded view and cross-section: see through the board, pull the layers apart into a stack, or cut the board along X or Y.
  • Real board shape: the outline layer defines the contour, including cutouts, slots and notches. Holes are cut through the board and plated holes get metal barrels.
  • Layer cards: every file gets a card with a visibility checkbox, opacity slider, color dot and a layer-type dropdown, listed in physical stack order.
  • Components: parts from a pick-and-place file appear as simple boxes in 3D (sized from the package name) and as outlines in 2D. Hovering shows designator, value, package and side.
  • Nets and pins: if the Gerbers contain X2 netlist attributes (KiCad and recent Altium exports can), hovering a pad shows its net, part and pin, and clicking highlights the whole net on all copper layers.
  • Measuring: press M, click two points, and get distance, ΔX / ΔY and angle in mm, mil or inch. Points snap to pad, hole and component centers.
  • Export: a PNG of the current view, a GLB 3D model with colors, or an STL mesh in millimeters.

Fab check

The tool can compare the measured board against the published standard limits of JLCPCB or PCBWay. It checks board size, narrowest track, hole sizes, annular rings, hole spacing, distance from holes and copper to the edge, and silkscreen line width. Each line shows the measured value, the limit and a pass, warning or fail mark.

Important: spacing between copper features is not checked, and manufacturer limits change, so confirm them on the fab's capabilities page before ordering.

Appearance settings

  • Solder mask color: green, red, blue, black, white, purple or yellow.
  • Surface finish: ENIG, HASL or bare copper.
  • Silkscreen color and board thickness, from presets of 0.4 to 3.2 mm or a custom value from 0.1 to 10 mm.
  • Viewport background and a light, dark or automatic theme.

Settings are remembered in the browser. The last loaded board reopens after a page reload, stored locally in IndexedDB; a Clear button removes it. Very large file sets (above roughly 150 MB) are not kept.

Supported file formats

Type What is supported
Gerber (RS-274X / X2) Standard apertures and aperture macros, linear and circular interpolation, regions, dark and clear polarity, step-and-repeat, block apertures, mirroring, rotation and scaling, X2 file and object attributes
Excellon drill Metric and inch, leading and trailing zero formats, slots and routed paths, plated and non-plated detection, drill data in Gerber format
Pick and place KiCad .pos, Altium Pick Place, JLCPCB CPL .csv, EAGLE .mnt and .mnb and similar files, in mm, mil or inch

Automatic layer detection

Each file's layer is recognized first from its content (Excellon headers, the Gerber X2 FileFunction attribute, pick-and-place column headers) and then from its file name, using common KiCad, Altium/Protel and EAGLE naming conventions. If a layer is guessed wrong, change it in the dropdown, or set the file to Ignore.

When several outline files are present, the viewer picks the smallest closed shape that encloses the pads and holes, so drawing frames and title blocks do not become the board contour.

Controls and shortcuts

Key Action
2 / 3 Switch to 2D / 3D
T / B Look at the top / bottom
I Angled 3D view
F Flip the board in 3D
X X-ray on or off
M Measure on or off
Esc Clear measurement and net highlight
? Show the shortcut list

With a mouse, rotate in 3D by dragging with the left button, pan with the right button (or left in 2D), and zoom with the wheel toward the cursor. On touch screens, use one-finger drag, two-finger drag and pinch.

Limitations

  • No outline layer: the board is framed around the pads and holes with a 1 mm margin.
  • Some holes cannot be cut: overlapping holes, holes crossing the board edge and anything beyond 4000 holes are drawn flat on the surface.
  • Binary drill files: Altium's binary EIA .DRL is not readable; use the ASCII NC drill (.TXT) from the same export.
  • Texture detail: limited by the GPU, usually 4096 px along the longest side, so very large boards look less sharp.
  • Components are approximate: simple boxes, not real 3D models.
  • Nested ZIPs: a ZIP inside a ZIP is not opened; extract it first.

Useful links