Generate barcodes in Code 128, EAN-13, and UPC-A formats. Download as PNG with custom width and height.
Generate Code 128, EAN-13, and UPC-A barcodes
100% Client-Side — No Server Contact
Barcodes are rendered on an HTML5 Canvas and downloaded as PNG. No data is sent to any server.
Create a barcode in three simple steps:
Characters: Full ASCII (32-126)
Use case: Shipping, inventory, general data
Input: Any text
Characters: 13 numeric digits
Use case: Global retail products
Input: 12-13 digits
Characters: 12 numeric digits
Use case: North American retail products
Input: 11-12 digits
Sum the digits at odd positions (1st, 3rd, etc.) and triple the sum of digits at even positions (2nd, 4th, etc.). Add both sums together. The check digit is (10 - (total mod 10)) mod 10.
Triple the sum of digits at odd positions (1st, 3rd, etc.) and sum the digits at even positions (2nd, 4th, etc.). Add both sums together. The check digit is (10 - (total mod 10)) mod 10.
Generate EAN-13 or UPC-A barcodes for retail products, inventory items, or packaging labels that need to be scanned at point-of-sale.
Create Code 128 barcodes for shipping labels, tracking numbers, and logistics documents. Code 128 can encode both letters and numbers.
Label company assets (laptops, equipment, furniture) with Code 128 barcodes for easy inventory management and tracking.
Generate barcodes for event tickets, boarding passes, or admission wristbands. Code 128 handles alphanumeric ticket codes well.
Barcodes are rendered on an HTML5 Canvas element using pure JavaScript. Each format implements the official encoding specification: Code 128 uses the standard pattern table with proper start code (B), checksum calculation, and stop pattern. EAN-13 and UPC-A use the standard L/G/R encoding patterns with guard bars. The output PNG includes quiet zones (margin areas) on both sides for reliable scanning.
Generate QR codes for URLs, text, and data instantly.
Scan and decode QR codes from images and screenshots.
Check the strength and security of your passwords.
Remove hidden metadata from PDF files to protect privacy.
Generate and verify file checksums for integrity verification.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support