Link Code Generator Logo
Link Code Generator

Free Online Barcode Generator: CODE128, EAN-13, UPC & More

Generate, preview, and download 1D barcodes in your browser. Supports Code128, EAN-13, EAN-8, UPC-A, UPC-E, and more. No signup needed.

Visual Settings

2px
100px

Barcode Preview

Privacy-First Barcode Generation

Most online barcode generators send your product data, inventory SKUs, or business-sensitive information to a remote server to process the image. This tool generates barcodes entirely inside your browser using the open-source JsBarcode library - no data is ever transmitted to our servers. Your product catalog and inventory numbers stay private.

Which Barcode Format Should You Use?

  • CODE128: The most versatile 1D barcode. Encodes letters, numbers, and special characters with high density. Use this as your default if you are not bound by a specific retail or logistics standard.
  • UPC-A (Universal Product Code): The North American retail standard. Requires exactly 12 numeric digits (the generator can auto-calculate the check digit from 11 digits). Required by most major US retailers for shelf products.
  • EAN-13: The global equivalent of UPC, widely used in Europe, Asia, and Latin America. Requires 13 numeric digits. Used for products sold internationally.
  • EAN-8: A smaller version of EAN-13 for products where space is limited on the packaging. Requires 8 numeric digits.
  • CODE39: An older but widely supported format used in automotive, government, and military applications. Letters, numbers, and a limited set of characters.
  • ITF-14: Used on outer packaging and cartons to encode the quantity of units inside (case packs). Encodes a 14-digit GTIN and features the distinctive bearer bars.

SVG vs. PNG: Which Format to Download?

Download as SVG for print-quality barcodes that can be scaled to any size without pixelation - ideal for packaging artwork files, label templates, and design documents.

Download as PNG for web use, inventory systems, email, or anywhere that requires a standard raster image format. PNG barcodes are easy to embed and compatible with all label printing software.

Frequently Asked Questions

Why does the UPC barcode show "invalid data" error?

UPC-A requires exactly 11 or 12 numeric digits - no letters or special characters. Enter your 11-digit product number (without the check digit) and the encoder will calculate and append the check digit automatically. EAN-13 similarly requires exactly 13 numeric digits.

Can I use these barcodes commercially?

The barcodes themselves are free to generate and use commercially. However, if you plan to sell products in retail stores, you will need a GS1-registered barcode number to ensure global uniqueness. GS1 is the international standards body that assigns company prefixes. Visit gs1.org to register your company prefix before creating UPC or EAN numbers for retail use.

What resolution should I use for printing barcodes?

For print, always use the SVG file - it is vector-based and prints at any resolution without quality loss. If you must use PNG, export at the largest size possible. For barcode scanners to read printed barcodes reliably, the barcode should be at least 1 inch wide in print, with uniform quiet zones (blank space) on each side.

Developer tools delivered free

Deep link guides, Open Graph tips, and new dev tools - straight to your inbox.