← 블로그

Gerber 파일이란? — RS-274X, Excellon, X2 완전 정리

What is a Gerber file — MakerSuite 3D

모든 PCB 제조사가 쓰는 표준 전달 포맷

PCB를 주문해본 사람이라면 .gtl, .gbl, .gto, .drl 같은 수수께끼 확장자가 든 폴더를 압축해 제조사에 이메일로 보낸 경험이 있을 겁니다. 그게 바로 Gerber 파일입니다. EDA 툴(KiCad, Altium, Eagle, EasyEDA)과 제조 장비(포토플로터, 드릴, 픽앤플레이스) 사이의 공용 언어죠. Gerber 없으면 보드도 없습니다. 40년 넘게 살아남은 이 포맷에 실제로 무엇이 들었는지 짚어봅니다.

Gerber 파일 안에 있는 것

각 Gerber 파일은 PCB 한 레이어(탑 구리·바텀 구리·탑 실크·솔더 마스크 등)를 기술하는 2D 드로잉 명령의 평문 스트림(RS-274X)입니다. 제조용 벡터 PDF라고 생각하면 됩니다: 애퍼처 정의(D-코드)는 어떤 모양을 찍을지(원형·사각·직사각?), 좌표 명령(G/M 코드)은 어디에 찍을지 말합니다. 메모장으로 열면 G01X1000Y2000D01 같은 줄이 보입니다 — (1,2)mm까지 선을 그으라는 뜻. 전체 파일이 그냥 스탬프와 경로의 나열일 뿐입니다.

포맷이 보장하는 것

Gerber 작업하는 법

  1. Open pcbviewer.app — Gerber 압축 파일(풀지 말고 그대로)을 뷰어에 드롭.
  2. 레이어 스택 확인 — 탑 구리·실크·솔더 마스크가 선명하게 렌더되는지. 뒤집혔거나 미러됐다면 내보내기 설정이 잘못된 것.
  3. 드릴 홀이 패드 위에 떨어지는지 검증 — 어긋난 드릴은 트레이스를 관통한 구멍으로 돌아옴. 3D 뷰에서 놓치기 불가능.
  4. 보드 외곽 확인 — 열린(닫히지 않은) 외곽 폴리곤이면 제조사가 보드 엣지를 추정해야 하고, 보통 사각형으로 폴백됨.
  5. zip으로 묶어 전송 — 대부분 제조사가 모든 레이어 파일 + Excellon 드릴이 든 압축 폴더를 받음. 복잡한 보드면 스택업·넷 개수를 적은 README 동봉.

Drop a Gerber zip — see your PCB in 3D before you ship it to the fab.

MakerSuite 3D 무료로 써보기

40년 뒤에도 Gerber가 이기는 이유

Gerber는 평문이고, 벤더 중립이며, 사람이 읽을 수 있고, 지구상 모든 PCB 제조사가 지원합니다. 이를 대체하려 한 IPC-2581, ODB++은 메타데이터가 풍부하지만 라이선스 툴이나 벤더 동참이 필요해 틈새에 머물렀습니다. 반면 RS-274X 내보내기는 모든 EDA 툴의 체크박스 하나고, 오늘 내보낸 파일을 20년 뒤 CAM 스테이션에서도 엽니다. 지루할 정도의 신뢰성이 Gerber가 이긴 정확한 이유입니다.

Gerber를 만나는 상황

Gerber를 브라우저 뷰어로 보는 이유

Gerber 압축 파일에는 보드의 모든 IP가 담깁니다 — 모든 트레이스·부품 위치·넷 이름. 출시 전이거나 NDA인 경우 클라우드 뷰어 업로드는 위험 신호. MakerSuite 3D는 순수 JS로 브라우저에서 RS-274X와 Excellon을 직접 파싱 — 서버·업로드·큐 없음. 드롭한 파일은 탭을 떠나지 않습니다. 제조사가 내부적으로 쓰는 것과 같은 파싱 로직을 클라이언트 사이드로 옮긴 것.

자주 묻는 질문

What exactly is inside a Gerber file?

Each Gerber file is a plain-text stream of 2D drawing commands (RS-274X format) describing a single PCB layer — the top copper, bottom copper, top silkscreen, solder mask, etc. Think of it as the manufacturing equivalent of a vector PDF: aperture definitions (D-codes) say what shapes to stamp, and coordinate commands say where to stamp them. A complete board is a folder of these files, usually zipped together with an Excellon drill file.

How many Gerber files does one PCB need?

A typical 2-layer board ships with 8–10 files: top and bottom copper, top and bottom solder mask, top and bottom silkscreen, board outline, and one or two Excellon drill files (plated and non-plated holes). A 4-layer board adds the inner copper layers. A complex 12-layer HDI board can push past 20 files.

What's the difference between Gerber X2 and RS-274X?

RS-274X (from 1998) is the baseline format that every manufacturer reads. Gerber X2 (2014) is a superset that embeds metadata — layer function, net names, component attributes — so CAM tools can do automatic panelization and DFM. Our viewer reads both, and modern KiCad/Altium default to X2. If your fabricator complains, export as plain RS-274X.

Can I view Gerber files without installing KiCad or Altium?

Yes — drop your Gerber zip onto MakerSuite 3D. The parser runs in your browser, renders all layers with aperture shapes, composites the board in 3D, and shows drill hits and board outline together. No CAM software, no login, no upload. The same RS-274X parser is what fabricators use internally, just ported to JavaScript.

Are Gerber files editable?

Technically yes (they're plain text), but practically no — hand-editing aperture tables and coordinate streams is how you ship a $10k fab mistake. If you need to change the board, edit the source (KiCad, Altium, EasyEDA) and re-export. Gerber is an output-only handoff format, not a working file.

관련 글

How to Open Gerber FilesGerber Viewer OnlineFree Online PCB 3D Viewer

Gerber zip 드롭 — 모든 레이어를 3D로 확인

Gerber 뷰어 열기