Online Barcode Generator — Everything You Need to Know
What Is a Barcode?
A barcode is a machine-readable representation of data using patterns of parallel lines (1D barcodes) or geometric patterns (2D barcodes). Barcodes are used globally in retail, logistics, healthcare, manufacturing, publishing, postal services, and inventory management to encode product IDs, serial numbers, URLs, and other data types. Our free barcode generator supports 60+ formats across every major barcode standard.
Types of Barcodes Explained
Barcodes are divided into several main categories:
- Linear (1D) Barcodes — Code 128, Code 39, Code 93, Codabar, ITF, ITF-14, MSI, Code 11, Plessey, Telepen: encode data in parallel vertical bars and spaces. Best for product labeling, inventory, and asset tracking.
- EAN / UPC Barcodes — EAN-13, EAN-8, UPC-A, UPC-E: global retail point-of-sale standards with fixed-length numeric encoding.
- GS1 DataBar — GS1-128, DataBar Omni, Stacked, Limited, Expanded, Truncated: supply chain and logistics standards that encode Application Identifiers for batch, date, weight, and serial data.
- 2D Barcodes — QR Code, DataMatrix, PDF417, Aztec, MaxiCode, Micro QR, Micro PDF417, Codablock F, DotCode, Han Xin, Code One: encode data in both dimensions, supporting URLs, text, and binary data with much higher capacity.
- GS1 2D Barcodes — GS1 QR Code, GS1 DataMatrix: 2D codes with GS1 Application Identifier encoding for regulated supply chains.
- Postal Barcodes — USPS IMB, POSTNET, PLANET, Royal Mail, Australia Post, Japan Post, KIX, Korea Post, Identcode, Leitcode: specialized formats used by national postal services for mail sorting and tracking.
- Healthcare Barcodes — Pharmacode, Pharmacode 2-Track, PZN, Code 32, HIBC LIC 128, HIBC LIC 39: pharmaceutical and medical device identification standards.
- Publishing Barcodes — ISBN, ISMN, ISSN: international standards for identifying books, printed music, and serial publications.
- QR Templates — Wi-Fi QR, vCard QR, Event QR, Email QR, SMS QR, Phone QR, Location QR, Payment QR: pre-formatted QR codes for common use cases like sharing Wi-Fi credentials, contact cards, calendar events, and payment links.
When to Use Code 128 vs EAN vs UPC vs GS1
Code 128 is the most versatile linear barcode supporting the full ASCII character set — ideal for inventory, warehouse, and internal tracking. EAN-13 is the international retail standard (13 digits), used on products sold worldwide. UPC-A is the North American retail standard (12 digits). GS1-128 is the logistics standard for shipping labels that need to encode batch, date, and weight data. GS1 DataBar variants are used for fresh produce, coupons, and items that need variable-measure data at point of sale.
Postal Barcodes Guide
Every major national postal service uses a specialized barcode format for automated mail sorting. USPS Intelligent Mail Barcode (IMB) replaced POSTNET and PLANET for US mail. Royal Mail 4-State is used in the UK. KIX is the Dutch postal code. Australia Post, Japan Post, and Korea Post each have their own format. Deutsche Post uses Identcode and Leitcode for package identification and routing. Our generator supports all of these with correct encoding and validation.
Healthcare & Pharmaceutical Barcodes
The pharmaceutical industry uses specialized barcodes for drug identification, packaging verification, and regulatory compliance. Pharmacode (Laetus Code) is a simple binary barcode used on production lines to verify correct packaging. PZN (Pharmazentralnummer) is the German pharmaceutical article number. Code 32 is the Italian pharmacode based on Code 39. HIBC (Health Industry Bar Code) standards are used for medical device identification. For EU FMD drug serialization, DataMatrix or GS1 DataMatrix is mandated.
QR Code Templates for Business
Beyond standard data encoding, QR codes support structured data formats for Wi-Fi network sharing (auto-connect), vCard contacts (instant contact save), calendar events (one-tap RSVP), email composition, SMS messages, phone calls, GPS locations, and payment links (UPI, PayPal). Our QR Templates tab generates these with the correct data formatting automatically.
Printing Guidelines for Barcodes
- Use at least 300 DPI for retail labels and packaging.
- Ensure high contrast — black bars on white background is the safest option.
- Maintain adequate quiet zones (white space) on both sides of the barcode.
- For laser printers, minimum bar width should be at least 0.264mm (10 mils).
- Always test scan your barcode before mass printing.
- For packaging, download as SVG for unlimited resolution scaling.
Best Barcode Format by Use Case
- Retail products → EAN-13 (international) or UPC-A (North America)
- Shipping labels → GS1-128 with Application Identifiers
- Fresh produce & coupons → GS1 DataBar Expanded
- Warehouse / inventory → Code 128
- Books → ISBN · Music → ISMN · Periodicals → ISSN
- Pharmaceutical → Pharmacode (packaging) or DataMatrix (serialization)
- Mail sorting → USPS IMB, Royal Mail, KIX, or your national postal barcode
- Event tickets → QR Code or Aztec
- ID cards & licenses → PDF417
- UPS shipping → MaxiCode
- Wi-Fi sharing → Wi-Fi QR template
- Business cards → vCard QR template
- Payments → Payment QR (UPI, PayPal, WeChat Pay)
Barcode Best Practices
- Always validate your barcode data before generating — check digit errors cause scan failures.
- Use the Smart Advisor feature if you're unsure which format to choose from 60+ options.
- Test every barcode with a physical scanner or the built-in Scan Simulation before printing.
- Keep barcode size within recommended ranges — too small barcodes may not scan reliably.
- For dynamic data (URLs, tickets), consider QR Code or DataMatrix for higher data density.
- Use GS1 DataBar Expanded for barcodes that need to encode weight, price, or expiry alongside the GTIN.
- For cross-border compliance, verify your barcode meets the destination country's standards (GS1, ISBT 128, EU FMD, etc.).