Gerber and Excellon file inspector
Format, units, extents and primitives of a Gerber RS-274X or Excellon file, read in the browser with no upload.
Result
Awaiting the quantities required for the calculation.
Calculation, assumptions and sources
OverviewFormat, declared units, extents of the material and count of primitives of a Gerber RS-274X layer or an Excellon drill file, read in the browser with no upload and no storage.
Format, declared units, extents of the material and count of primitives of a Gerber RS-274X layer or an Excellon drill file, read in the browser with no upload and no storage. An unrecognised command, truncated data or an ambiguous coordinate is refused with its line and byte offset, with no partial result.
Method & formulascoordinate = digits × 10⁻ᵈ, where d is the decimal count declared by %FS (Gerber)
Only the extents of the material are derived from the file. Every point is widened by the radius of the Gerber aperture or Excellon tool that draws it: a 0.5 mm trace centred on the board edge overhangs it by 0.25 mm. An arc is bounded by its endpoints and by the cardinal points it sweeps.
- Gerber RS-274X
- text format describing one layer of a printed circuit board through apertures (shapes) and operations (draw, move, flash).
- Excellon
- text format describing a drilling programme: a header defines the tools and their diameters, the body lists the drilled positions. The version, when declared, is on the fmat line.
- %FS (format specification)
- Gerber command that declares where the decimal point sits in implicit-decimal coordinates, for instance 3.6 for three integer digits and six decimals.
- Aperture
- shape used to draw or flash: circle C, rectangle R, obround O, regular polygon P.
- Zero suppression (LZ / TZ)
- Excellon keyword stating which zeros are omitted in coordinates without a decimal point; CAM toolchains use it in both opposite senses. It is displayed, and no value is derived from it.
Validity domainRefused, each with its line and byte offset: aperture macros %AM, whose geometry cannot be bounded without interpretation, step and repeat %SR, single-quadrant G74, deprecated Gerber commands (%MI, %OF, %SF, %IN, %LN, %IP, G54, G70/G71, G90/G91, M00/M01), Excellon routing (G00 to G03, M15 to M17), incremental mode, and Excellon coordinates without a decimal point, whose reading depends on the LZ/TZ keyword.
Refused, each with its line and byte offset: aperture macros %AM, whose geometry cannot be bounded without interpretation, step and repeat %SR, single-quadrant G74, deprecated Gerber commands (%MI, %OF, %SF, %IN, %LN, %IP, G54, G70/G71, G90/G91, M00/M01), Excellon routing (G00 to G03, M15 to M17), incremental mode, and Excellon coordinates without a decimal point, whose reading depends on the LZ/TZ keyword. For the latter, re-export the file with explicit decimals.
Privacy and protection limitsThe file is read in the browser; it is neither sent nor kept once the tab is closed.
The file is read in the browser; it is neither sent nor kept once the tab is closed. Limits: 2 MiB per file, 200,000 lines, 200,000 commands, 1,000 apertures or tools.