Barcode Generator
A premium barcode generator that creates professional, print-ready barcodes entirely in your browser. Supports all major barcode standards including CODE128, CODE39, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, MSI, Pharmacode, and Codabar. Each format includes detailed validation with helpful error messages. Customize every aspect — width, height, margin, font size, font family, text position, and colors. Preview changes in real time, then download as PNG, SVG, or JPEG with optional high-resolution output. All processing happens locally using JsBarcode — nothing is uploaded to any server.
CODE128 Content
High-density alphanumeric — the most versatile & widely used barcode standard
Example: ABC12345
Live Preview
Enter barcode content
Type or paste your barcode value
Examples
Click an example to load its barcode type and content.
CODE128 — Product Code
CODE128||ABC12345EAN-13 — Retail Product
EAN13||5901234123457EAN-8 — Small Retail
EAN8||96385074UPC-A — US Retail
UPCA||123456789012UPC-E — Small Package
UPCE||123456ITF-14 — Shipping Carton
ITF14||12345678901231CODE39 — Inventory Item
CODE39||ABC-123MSI — Inventory Control
MSI||1234567Pharmacode — Pharma
pharmacode||12345Codabar — Library Book
codabar||A123456BHow Barcodes Work
Barcodes are machine-readable representations of data that use parallel lines (bars) and spaces of varying widths to encode information. A barcode scanner shines a laser or LED light across the barcode and measures the reflected light — dark bars absorb light while white spaces reflect it. The pattern of reflections is decoded into the corresponding data based on the specific barcode symbology.
Optical Scanning
Barcode scanners use laser or camera-based readers to capture the pattern of bars and spaces. The width ratios between bars and spaces encode the data.
Check Digit Validation
Most retail barcodes (EAN-13, UPC-A, ITF-14) include a check digit — the last digit is calculated from the preceding digits using a mathematical formula. This ensures the barcode was scanned correctly.
Symbology Standards
Each barcode type follows a specific symbology — the encoding rules that define how data is represented. For example, CODE128 encodes each character with 11 modules of bars and spaces.
Privacy First
All barcode generation happens entirely in your browser using JsBarcode. Your data never leaves your device — no servers, no tracking, no uploads.
Instant Generation
Barcodes are generated in real time with zero server round trips. As you type and adjust settings, the barcode updates immediately with smooth transitions.
Print-Ready Output
Download high-resolution PNG, vector SVG, or JPEG output. SVG is perfect for professional printing and design work — scales to any size without quality loss.
Barcode Types Explained
Understanding the different barcode standards and when to use each one.
Retail Barcodes (EAN/UPC)
EAN-13, EAN-8, UPC-A, and UPC-E are the standard barcodes found on retail products worldwide. They encode a product's GTIN (Global Trade Item Number) and are scanned at checkout.
Logistics Barcodes (CODE128, ITF-14)
CODE128 and ITF-14 are used in shipping and warehousing. CODE128 is versatile and high-density, while ITF-14 is specifically for outer carton packaging with built-in bearer bars.
Specialty Barcodes (Pharmacode, Codabar)
Pharmacode is used for pharmaceutical tracking, Codabar for libraries and blood banks, and MSI for warehouse inventory. Each was designed for specific industry needs.
All 10 Standards
ForgePlug supports all major barcode standards: CODE128, CODE39, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, MSI, Pharmacode, and Codabar — covering everything from retail products to pharmaceutical tracking.
Barcode Best Practices
Follow these guidelines to ensure your barcodes scan reliably and work in production.
Select the barcode standard that matches your industry and use case. Use EAN/UPC for retail products sold in stores, CODE128 for shipping and logistics, ITF-14 for outer cartons, Pharmacode for pharmaceutical packaging, and Codabar for library or blood bank applications.
Always maintain high contrast between bars and background. Black bars on a white background are the most reliable combination. Avoid low-contrast color combinations that may cause scanning failures. Test your barcodes with multiple scanners before printing in production.
Always include sufficient quiet zone (blank margin) around your barcode — typically at least 10× the bar width on each side. This helps scanners distinguish the barcode from surrounding content. Our generator includes configurable margin settings to ensure compliance.
For retail barcodes (EAN-13, EAN-8, UPC-A, UPC-B, ITF-14), ensure the check digit is correct. The check digit is calculated from the preceding digits and is used by scanners to verify accurate reading. Invalid check digits will cause scanning failures at the point of sale.
Common Barcode Mistakes
Avoid these common pitfalls when generating and using barcodes.
- Using the wrong barcode type for your industry (e.g., using CODE39 when EAN-13 is required for retail)
- Making barcodes too small — minimum recommended width is 1.5 inches for most applications
- Insufficient quiet zone (margin) around the barcode — this causes scanning failures
- Low contrast between bars and background — black on white is the most reliable combination
- Not testing barcodes with multiple scanners before mass printing
- Encoding invalid characters for the chosen symbology (e.g., letters in a numeric-only format)
- Distorting barcode proportions by resizing without maintaining aspect ratio
Frequently Asked Questions
Everything you need to know about generating barcodes with ForgePlug
Are my barcodes generated on a server?
What barcode formats are supported?
What is the difference between EAN-13 and UPC-A?
When should I use CODE128 vs CODE39?
How do I customize the look of my barcode?
What download formats are available?
Can I download my barcode as a PDF?
Can I use these barcodes commercially?
What is ITF-14 used for?
What is Pharmacode used for?
What is Codabar used for?
Can I print barcodes directly from ForgePlug?
What are best practices for barcode printing?
Frequently Asked Questions
Everything you need to know about generating barcodes
Are my barcodes generated on a server?
What barcode formats are supported?
What is the difference between EAN-13 and UPC-A?
When should I use CODE128 vs CODE39?
How do I customize the look of my barcode?
What download formats are available?
Can I download my barcode as a PDF?
Can I use these barcodes commercially?
What is ITF-14 used for?
What is Pharmacode used for?
What is Codabar used for?
Can I print barcodes directly from ForgePlug?
What are best practices for barcode printing?
Share this tool
