🧰Locly

Generate EAN-13 & Code 128 Barcodes

Create EAN-13 and Code 128 barcodes and download PNG

🧾
Enter a value and click Generate

EAN-13

Enter 12 digits to add the check digit, or 13 digits to validate it.

Code 128

Code 128 barcode supports standard ASCII text.

About This Tool

Barcode Generator creates EAN-13 and Code 128 barcodes in your browser. EAN-13 is the common retail product code: enter 12 digits and the check digit is added, or enter 13 digits to verify it. Code 128 encodes general ASCII text such as SKUs and tracking numbers. Download either barcode as a PNG. Generation is processed locally in your browser β€” nothing is uploaded.

How to Use

  1. Type a numeric EAN or any Code 128 text
  2. Click Generate
  3. Check the EAN-13 result and any validation message
  4. Review the Code 128 barcode
  5. Download the PNG you need

Common Use Cases

  • Retail: Print EAN-13 labels for products
  • Warehousing: Encode SKUs as Code 128
  • Ecommerce: Preview a barcode before ordering labels
  • Inventory: Verify an EAN-13 check digit
  • Packaging: Export a clean PNG for design tools

FAQ

Q1: How does the EAN-13 check digit work?

From the first 12 digits, odd positions (from the left) are summed as-is and even positions are multiplied by 3. The check digit makes the total a multiple of 10.

Q2: What if I enter 12 digits?

The tool calculates the 13th check digit and draws the full EAN-13.

Q3: What is Code 128?

A compact barcode that can store letters, numbers, and common symbols β€” useful when the value is not a 13-digit EAN.

Q4: Is the barcode uploaded?

No. Rendering is processed locally in your browser with JsBarcode.

Q5: Why was my EAN rejected?

The value must be digits only, 12 or 13 long, and a 13-digit code must include the correct check digit.

Related Tools