📦 條碼產生器
Barcode Generator

支援 7 種格式,單筆即時預覽或批量產生,內建熱感應標籤與 A4 貼紙列印版面
Supports 7 formats — single live preview or batch generation with built-in thermal label and A4 sticker print layouts. Runs entirely in your browser.

 什麼是條碼產生器?
What Is the Barcode Generator?

條碼產生器是一款免費的線上工具,可將文字、數字或英數字元轉換為機器可讀的條碼圖像。本工具支援 7 種常見條碼格式,提供即時預覽、批量產生、CSV 匯入,以及適合熱感應印表機與 A4 貼紙紙的列印版面,完全在瀏覽器中運作,無需安裝任何軟體,您的資料也不會上傳至任何伺服器。

The Barcode Generator is a free online tool that converts text, numbers, or alphanumeric strings into machine-readable barcode images. It supports 7 common formats with live preview, batch generation, CSV import, and print layouts for thermal printers and A4 sticker sheets — all running locally in your browser with no software installation or data upload required.

 如何使用?
How to Use?

  1. 單筆模式:在左側輸入條碼值,選擇格式,右側即時顯示預覽。可下載 SVG(向量,適合大圖印刷)或 PNG,或直接列印單張
    Single mode: enter a value, choose format, see live preview. Download SVG or PNG, or print directly.
  2. 批量模式:一行輸入一筆條碼;若需要標籤品名與價格,以 Tab 分隔欄位(條碼值 → 品名 → 價格)。也可直接匯入 CSV 檔案(前三欄自動對應)
    Batch mode: one barcode per line; use Tab to separate value, name, and price. Or import a CSV file.
  3. 調整份數:批量清單中每筆條碼可單獨設定列印份數(如補印貼紙時)
    Set per-item print copies — useful for reprinting individual stickers.
  4. 選擇列印版面:熱感應標籤(選擇標籤尺寸,精準 mm 對應)、A4 貼紙紙(龍德 LD-870、Avery 5160 等模板)或自由排列
    Choose print layout: thermal label size, A4 sticker template, or free-flow layout.
  5. 補印空格:A4 版面的「起始格」可設定從第幾格開始印,避免浪費用過剩餘的貼紙
    Set "Start cell" for A4 layout to skip already-used stickers on a partially used sheet.

 條碼格式說明
Format Reference

格式 / Format允許字元 / Characters長度 / Length適用場景 / Use Case
CODE128所有 ASCII(0–127)任意 / Any電商 SKU、倉儲、物流、內部編號
EAN-13數字 0–913 位(含校驗碼)零售商品(超市、便利商店)
EAN-8數字 0–98 位(含校驗碼)小包裝商品(空間有限時)
UPC-A數字 0–912 位(含校驗碼)北美零售市場
ITF-14數字 0–914 位偶數外箱、棧板、物流運輸包裝
CODE39A–Z、0–9、- . $ / + % 空格任意 / Any工業、汽車業、政府、醫療
Codabar0–9、- $ : / . +,首尾 A/B/C/D任意 / AnyFedEx、血庫、圖書館、票據

 列印注意事項
Print Tips

  • 熱感應印表機設定:在印表機驅動程式或設定中,將紙張尺寸設定為與本工具選擇的標籤尺寸一致(如 40×30 mm),並將邊距設為 0,以確保條碼位置精準
    Thermal printer: set paper size to match the chosen label size (e.g. 40×30mm) and margins to 0 in your printer driver for accurate positioning.
  • A4 貼紙紙對齊:第一次使用新模板時,建議先在普通紙上試印並對齊貼紙紙,確認無偏移後再正式列印。各品牌的貼紙紙尺寸可能有細微差異
    A4 sticker sheet: do a test print on plain paper first to check alignment before printing on sticker sheets. Slight variations between brands are normal.
  • SVG 適合大型印刷:SVG 是向量格式,可無限縮放不失真,適合製作海報、大型標示或高解析度印刷。PNG 適合一般網頁或 Email 使用
    SVG is vector-based and scales without quality loss — ideal for large-format printing. PNG is best for web and email use.
  • 條碼可掃描性:建議條碼高度至少 8mm、條寬不低於 0.3mm 以確保可掃描。若尺寸過小或對比度不足,掃描器可能無法識別
    For reliable scanning, keep bar height ≥ 8mm and bar width ≥ 0.3mm. Poor contrast or too-small size may cause scan failures.

 適用情境
When to Use?

  • 電商賣家(蝦皮、露天、自有官網)為商品製作 SKU 標籤,批量產生並列印於熱感應標籤紙
    E-commerce sellers creating SKU product labels for Shopee, Ruten, or own-brand stores — batch generate and print on thermal label paper.
  • 小型倉儲、寄賣店家為商品貼條碼,搭配掃碼槍進行入庫、出庫管理
    Small warehouses or consignment stores adding barcodes for inventory management with a barcode scanner.
  • 公司行政為財產設備、檔案夾、圖書貼上資產編號標籤
    Corporate asset tagging for equipment, filing folders, or library books with unique item numbers.
  • 開發或測試條碼掃描系統時,快速產生測試用條碼
    Developers or testers who need sample barcodes to test a barcode scanning system.
  • 教育用途:示範不同條碼格式的差異,了解零售條碼規範
    Educational use: demonstrating barcode format differences and learning about retail barcode standards.

 常見問題
Frequently Asked Questions

我應該選哪種條碼格式?

大多數情況建議使用 CODE128:它支援所有 ASCII 字元、長度不限,是電商、倉儲、物流的首選。若商品需要在超市或便利商店上架,則需要 EAN-13(需向 GS1 申請官方商品條碼)。

CODE128 is the best default: supports all ASCII characters at any length, widely used in e-commerce, warehousing, and logistics. EAN-13 is required for retail shelf products (needs an official GS1-registered prefix).

我的資料會上傳到伺服器嗎?

不會。本工具完全在您的瀏覽器中執行,條碼內容、品名與價格均不會傳送至任何伺服器,可放心輸入敏感的內部編號。

No. Everything runs locally in your browser. Your barcode values, product names, and prices are never sent to any server.

EAN-13 顯示格式錯誤怎麼辦?

EAN-13 必須是 13 位純數字,且最後一位是校驗碼。若您只有 12 位數,JsBarcode 會自動補算校驗碼;若超過 13 位或含非數字字元,則會顯示格式錯誤。建議切換到 CODE128 以支援任意內容。

EAN-13 requires exactly 13 digits. If you have 12 digits, JsBarcode calculates the check digit automatically. If the value contains non-digits or exceeds 13 characters, it will fail — switch to CODE128 for arbitrary content.

CSV 格式要怎麼準備?

CSV 檔案的前三欄依序為:條碼值、品名(可選)、價格(可選)。第一列若是標題列會被自動忽略(因為條碼值欄通常是英數字,標題文字的格式錯誤不影響後續列)。建議在 Excel 存為「CSV UTF-8」格式以支援中文。

CSV columns in order: barcode value, product name (optional), price (optional). Save as "CSV UTF-8" in Excel to support Chinese characters.

熱感應印表機的列印設定?

開啟列印後,請在瀏覽器列印對話框中:(1) 選擇正確的熱感應印表機;(2) 紙張大小選擇「自訂」並設定與標籤一致的尺寸(如 40×30 mm);(3) 邊距設為「無」或「0」;(4) 取消「頁首頁尾」選項,再執行列印。

In the browser print dialog: (1) select your thermal printer; (2) set paper size to Custom matching the label (e.g. 40×30mm); (3) set margins to None/0; (4) uncheck headers/footers, then print.

 為什麼選擇這個工具?
Why Choose This Tool?

市面上多數免費條碼工具只支援單筆產生,介面老舊且充滿廣告,更無法直接套用熱感應標籤或 A4 貼紙紙的列印版面。本工具提供從輸入到列印的完整流程:批量產生、CSV 匯入、逐筆設定份數、多種模板直接套用,且完全在瀏覽器端執行,無需安裝、無需帳號、無廣告浮水印。

Most free barcode tools are single-barcode only, cluttered with ads, and offer no print-ready layouts. This tool covers the full workflow — batch generation, CSV import, per-item copies, and ready-made thermal and A4 sticker templates — running entirely in the browser with no installation, no account, and no watermarks.