Free Online Gerber Viewer &
2D DXF CAD Editor
Two browser-native CAD & CAM workspaces by OnStarry. Inspect multi-layer PCB Gerber archives or draft and edit 2D mechanical DXF drawings at 120 FPS—100% locally in your browser.
GerberPatch
RS-274X Gerber & Excellon drill layer stackup, Pre-Flight DFM check, array panelization, and emergency trace patching.

Drop Gerber, Drill, or ZIP archive
Also imports .DXF outlines directly into Gerber layers
DXF CAD Editor
Hardware-accelerated 2D DXF drafting & editing (Trim, Fillet, Offset, Hatch), O(1) OSNAP, dimensions, PDF plot, and Live Disk Sync.

Drop AutoCAD .DXF drawing here
Instant GPU matrix pan/zoom, layer control & DXF/PDF export
See Both Workspaces in Action
Actual production screenshots from GerberPatch and DXF CAD Editor—switch views or click any canvas to inspect full-screen.
Click to ExpandInspect, Verify & Patch PCB Layers
Toggle .GTL, .GBL, .GTS, .GTO, .DRL, and .GKO layers with EDA theme presets and solo layer isolation.
Verify exact board dimensions, annular ring tolerances, and copper-to-edge clearances before ordering PCBs.
Cut or add copper traces, import DXF board outlines, build step-and-repeat V-cut panels, and export validated ZIPs.
Draft, Modify & Plot 2D DXF at 120 FPS
Use familiar commands (L, PL, TR, F, O, AR, H) and interactive grip handles directly in your browser.
Snap cleanly to endpoints, centers, and intersections while inspecting or editing exact coordinates in the Properties panel.
Auto-reload local .dxf saves via File System Access API and export clean .dxf, .svg, .png, or printable PDFs.
Click to Expand100% Private, Client-Side CAD & CAM Engine
Why hardware engineering teams, PCB designers, and mechanical drafters choose OnStarry over conventional cloud viewers for sensitive PCB Gerber files and proprietary 2D DXF drawings.
Local WebGL2 & Vector Engine
Traditional online Gerber and DXF viewers rely on server-side rendering, forcing you to upload confidential RS-274X PCB layouts or mechanical DXF blueprints to external clouds. That introduces intellectual property risk and violates corporate non-disclosure agreements (NDAs).
OnStarry executes everything directly inside your browser. Our Gerber parser computes 1nm integer coordinates and aperture flashes locally, while the DXF CAD Editor tessellates entities into GPU vertex buffers via hardware-accelerated WebGL2—so not a single byte of Gerber or DXF geometry ever leaves your machine.
- • Zero cloud file transmission or remote database storage
- • Works offline once loaded for both Gerber & DXF workspaces
- • Enterprise NDA compliant for commercial, automotive & defense CAD
Offline Auto-Recovery & Local Disk Live Sync
Work confidently without risking lost progress. In GerberPatch, an offline IndexedDB auto-save engine continuously preserves your active layers, theme presets, and emergency patch histories inside your browser's sandboxed storage for instant one-click recovery.
In the DXF CAD Editor, you can link directly to a local .dxf file via the browser File System Access API for real-time Live Watch auto-reloading and direct Save-to-Disk writes—bridging your desktop CAD workflow with zero cloud intermediaries.
All locally stored Gerber sessions can be permanently cleared with one click using "New Project (Clear Session)", and DXF disk handles are explicitly user-granted and discarded on tab close.
Dual-Workspace Capabilities: PCB Gerber & 2D DXF CAD
Everything you need to inspect PCB fabrication archives, verify clearances, draft mechanical 2D DXF parts, and export ready-to-manufacture files directly in your browser.
1nm Precision Math Engine
Floating-point arithmetic in JavaScript can accumulate rounding drift during coordinate transforms. GerberPatch scales all coordinates into 1nm fixed-point integers before computing geometry.
Visual Diff & Pre-Flight DFM
Toggle Visual Differential mode to highlight modified copper and mask clearances in cyan, and run Pre-Flight DFM checks for annular rings, trace clearances, and drill registration.
Array Panelization & V-Cuts
Generate fabrication-ready step-and-repeat PCB panels with configurable column/row matrices, breakaway edge rails, fiducial markers, tooling holes, and V-cut scoring lines.
Magnetic CAD Snapping & HUD
Snap precisely to SMD pad centers, trace vertices, and Excellon drill holes with a live Heads-Up Display showing absolute coordinates, relative delta offsets (ΔX, ΔY), and EDA theme presets.
Semantic Subsequence Verification
Every exported RS-274X file passes through our automated semantic subsequence validator, ensuring 100% of untouched apertures and original vector commands remain uncorrupted.
Emergency Patching & Export
Fix routing mistakes without re-running your full EDA pipeline. Cut shorted traces, inject copper tracks or silkscreen labels, import DXF board outlines, and export ready-to-order ZIPs.
120 FPS WebGL2 Matrix Viewport
Tessellates LINE, LWPOLYLINE, CIRCLE, ARC, ELLIPSE, SPLINE, INSERT blocks, and HATCH entities into GPU Float32Array buffers once, delivering zero-lag GPU matrix pan and cursor-centered zoom.
Full 2D Draw & Modify Toolset
Draft from scratch or revise existing drawings using Line, Polyline, Rectangle, Polygon, Circle, Arc, Spline, Hatch, plus Trim, Extend, Fillet, Chamfer, Offset, Mirror, Scale, Rotate, and Array.
O(1) Spatial OSNAP & Command Line
Query a 2D spatial hash grid in constant time for Endpoint, Midpoint, Center, Intersection, and Perpendicular snaps—paired with AutoCAD-style command aliases, Ortho (F8), and Polar tracking (F10).
Local Disk Live Sync & Save
Open .dxf files via the browser File System Access API to auto-reload external desktop CAD edits in real time (Live Watch) and write modified drawings directly back to disk.
Dimensions, Find & 1:1 Vector Plot
Place Linear, Aligned, Angular, Radius, and Diameter dimensions, batch search/replace CAD text, filter entities with Quick Select, and export crisp SVG, high-res PNG, or printable PDF layouts.
AI Bridge & CP949/EUC-KR Support
Automatic UTF-8 and Korean CP949/EUC-KR decoding preserves legacy CAD layer names and text, while the built-in AI & MCP Control Bridge enables scripted inspection and automated drafting.
Gerber & DXF Technical Reference
Comprehensive file extension layer mappings for RS-274X Gerber & Excellon drill packages alongside supported DXF entities and CAD command shortcuts.
| Extension | Layer Function | Description & Purpose | Default Color | Critical Inspection Checklist |
|---|---|---|---|---|
| .GTL | Top Copper Layer | Primary component pads (SMD), high-speed trace routing, power rails, microvias. | Red / Copper | Check trace necking, minimum clearance (≥5mil), and solder mask expansion. |
| .GBL | Bottom Copper Layer | Bottom ground planes, power return paths, through-hole solder pads, connector fanouts. | Blue / Cyan | Verify ground plane continuity, copper pour clearances from board edge, high-current width. |
| .GTS | Top Solder Mask | Top solder resist negative mask. Exposes copper pads to prevent solder bridging during reflow. | Purple / Green | Ensure solder mask dam width (≥0.1mm) between adjacent IC pins to prevent shorts. |
| .GBS | Bottom Solder Mask | Bottom solder resist openings for THT leads, wave soldering pads, and bottom SMD components. | Green / Teal | Check through-hole solder clearance and verify test points are properly uncovered. |
| .GTO | Top Silkscreen / Overlay | Component reference designators (R1, C1, U1), polarity marks (diode bars, pin 1 dots), logos. | Yellow / White | Verify no silkscreen ink overlaps bare copper SMD pads (causes soldering defects). |
| .GBO | Bottom Silkscreen / Overlay | Bottom component markings, certification labels (CE, FCC), revision numbers, barcodes. | White | Ensure text height (≥1.0mm) and stroke width (≥0.15mm) meet manufacturer legibility limits. |
| .DRL / .TXT | Excellon NC Drill File | Plated Through Holes (PTH), Non-Plated Holes (NPTH), via holes, mounting slots. | Orange / White | Verify annular ring breakout tolerance (pad diameter ≥ drill size + 0.3mm). |
| .GKO / .GML | Keep-Out / Board Outline | Physical PCB board contour, internal slot cutouts, V-scoring grooves, milling coordinates. | Pink / Magenta | Ensure copper pour keep-out distance (≥0.3mm from edge) to avoid shorting during routing. |
| Category / Entity | Command / Shortcut | Capabilities & Geometry Support | Workflow Notes |
|---|---|---|---|
| LINE / LWPOLYLINE / POLYLINE | L, PL, REC, POL | Multi-vertex polylines with bulge arc curvature, closed contours, rectangles, and regular polygons (3–64 sides). | Supports continuous line types (CONTINUOUS, DASHED, HIDDEN, CENTER) and grip vertex stretching. |
| CIRCLE / ARC / ELLIPSE / SPLINE | C, A, SPL | Center/Radius/Diameter circles, 3-point arcs, rotated partial ellipses, and De Boor B-spline curves with fit-point interpolation. | Tessellated once into GPU Float32Array buffers for smooth 120 FPS zoom without curve faceting. |
| INSERT / BLOCK / HATCH / SOLID | H, BH, X (Explode) | Recursive block flattening with translation, rotation, scaling, array instances, boundary pattern hatching, and solid fills. | Inherits Layer 0 and ByBlock ACI/TrueColor attributes accurately; explode blocks/polylines on demand. |
| TEXT / MTEXT / DIMENSION | DI, DLI, DAL, DRA, DDI, DAN | Single-line & multi-line CAD text, Find & Replace, plus Linear, Aligned, Radius, Diameter, and Angular associative dimensions. | Automatic UTF-8 & Korean CP949/EUC-KR decoding preserves localized callouts and layer names. |
| TRIM / EXTEND / FILLET / CHAMFER / OFFSET | TR, EX, F, CHA, O, BR, J, AR | Precision geometric modification plus Move (M), Copy (CO), Rotate (RO), Mirror (MI), Scale (SC), Stretch (S), and Array (AR). | Full command undo/redo stack with numeric distance/radius overrides directly in the ribbon or CLI. |
| OSNAP / ORTHO / POLAR / PLOT | F3, F7, F8, F10, F12, Ctrl+1, Ctrl+P | Toggle Object Snap (F3), Grid (F7), Ortho (F8), Polar (F10), Dynamic Input (F12), Properties Palette (Ctrl+1), and Plot Export (Ctrl+P). | Export drawings to standard .dxf (Ctrl+S), vector SVG, high-resolution PNG, or printable 1:1 PDF sheets. |
Pre-Flight PCB DFM & DXF CAD Readiness Checklists
Verify fabrication tolerances before submitting Gerber archives to PCB fabs (JLCPCB, PCBWay, OSH Park, Eurocircuits) and validate 2D DXF geometry prior to CNC, laser cutting, or 1:1 plotting.
Trace Clearance & Width Check
Verify that your minimum copper trace width and spacing adhere to your fabricator's process capabilities (standard is typically 5mil/5mil or 0.127mm).
- Inspect high-current traces for adequate width to prevent overheating.
- Ensure copper pour keepout is at least 0.3mm away from board outlines.
- Check for acute trace angles (<90°) that trap acid etchant.
Drill Registration & Annular Ring
Overlay your Excellon NC Drill file (.DRL) on top of copper layers (.GTL/.GBL) to confirm precise alignment and hole sizing.
- Verify annular ring margin (pad radius minus drill radius ≥ 0.15mm).
- Prevent drill breakout during CNC drilling misalignments.
- Confirm Plated (PTH) and Non-Plated (NPTH) hole separation.
Solder Mask Dam & Bridge Prevention
Examine solder resist openings (.GTS/.GBS) around fine-pitch ICs (QFN, QFP, BGA) to prevent solder bridging during reflow assembly.
- Ensure green solder mask dam width between SMD pads is ≥ 0.1mm.
- Verify that all test points and fiducial marks have mask openings.
- Confirm no silkscreen legend ink is printed directly on exposed solder pads.
Layer & Block Hygiene
Organize cut paths, bend lines, and reference dimensions onto clean layers and purge redundant entities before CAM export.
- Isolate cut profiles, holes, and annotations into separate named layers.
- Use Explode (X) on nested INSERT blocks when flat entity output is required.
- Run Purge Unused & Quick Select to remove stray zero-length segments.
Closed Contours & Hatch Geometry
Ensure toolpath boundaries, PCB enclosure outlines, and hatch regions form watertight loops with zero gaps or overlaps.
- Snap corners precisely using OSNAP (F3) Endpoint & Intersection modes.
- Use Trim (TR), Extend (EX), Fillet (F), and Join (J) to close open loops.
- Verify closed boundary loops before applying Hatch fills or Gerber outline import.
Units, Encoding & 1:1 Plot Check
Confirm drawing units ($INSUNITS), origin alignment, and 1:1 physical dimensions before cutting parts or printing templates.
- Verify overall part bounds and critical hole spacing with Measure (DI) & Dimensions.
- Align part origin (0,0) with UCS when preparing fixtures or PCB mounting plates.
- Confirm UTF-8 / CP949 text legibility and export 1:1 PDF/SVG sheets via Plot (Ctrl+P).
Got Questions? We Have Answers.
Everything you need to know about inspecting PCB Gerber archives and drafting 2D DXF CAD drawings online.
Is it safe to open confidential PCB Gerber and DXF CAD files on OnStarry?
Are GerberPatch and the DXF CAD Editor free, and do they require an account?
Which Gerber formats, drill files, and PCB EDA tools does GerberPatch support?
Can I measure clearances, patch traces, or panelize PCBs in GerberPatch?
What does the DXF CAD Editor support for viewing and 2D drafting?
Does the DXF CAD Editor support Korean (CP949 / EUC-KR) DXF files?
How does Local Disk Live Sync work in the DXF CAD Editor?
Can I export drawings to PDF, SVG, PNG, or import a DXF into GerberPatch?
Ready to Launch Your Browser CAD & CAM Workspace?
No account creation, no software installation, and 100% private in-browser computation. Choose GerberPatch for PCB CAM or DXF CAD Editor for 2D drafting.