Pick a barcode type (CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI, Pharmacode, or Codabar), type the value, and the barcode redraws as you type.
- Pick a barcode type from the dropdown - CODE128 works for any text, while EAN-13, EAN-8, UPC-A, and ITF-14 expect a specific digit count and check digit.
- Type or edit the value; the barcode redraws live with no extra button to click.
- Download the result as a PNG for documents and labels, or as an SVG for crisp printing at any size.
Barcode Generator (EAN/UPC/Code128)
Turn a number or text value into a barcode image you can print or paste onto a label - the barcode generator renders it in your browser and lets you download it right away.
Key features
- Pick from 9 symbologies - CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI, Pharmacode, and Codabar - and a per-format sample value fills in when you change the format.
- The barcode re-renders live on every keystroke, so there is no submit or button step.
- Each value is drawn into a real SVG image in the browser.
- Download the result as a PNG for documents and labels, or as an SVG for crisp printing at any size.
- Format-specific barcodes (EAN-13, EAN-8, UPC-A, ITF-14) expect an exact digit count and a valid check digit; an invalid value shows an inline message with a working example instead of a broken barcode.
- Each download filename embeds the selected format - for example barcode-code128.svg or barcode-ean13.png - so saving several formats for the same value never overwrites the previous file.
Your data stays on your device
Everything runs in the browser - no upload, no account, and the value you type is never sent anywhere. The barcode-drawing library itself is self-hosted on this site rather than pulled from a third-party CDN, and it loads once automatically the first time you open the page; every edit after that re-renders instantly from the already-loaded library with no repeat download.
Linear barcodes vs QR codes
This generates a linear (1D) barcode, not a 2D QR code. For QR codes, use the QR code generator instead.
Digit-count and checksum rules by format
Barcode Generator enforces a fixed length on four retail symbologies: EAN-13 needs exactly 13 digits (example 5901234123457), EAN-8 needs exactly 8 digits (example 96385074), UPC-A needs exactly 12 digits (example 036000291452), and ITF-14 needs exactly 14 digits (example 00012345600012). Each of those four also carries a checksum digit, so an otherwise correctly-sized value can still fail if the final digit does not match the computed check. The other five formats have no fixed length at all: CODE128 and CODE39 encode arbitrary text of any length, while MSI, Pharmacode, and Codabar accept variable-length numeric strings. That split is why CODE128 is the default format in Barcode Generator - it is the only symbology guaranteed to accept whatever value you paste in without a length or checksum failure. A retail product bound for a store shelf typically needs UPC-A in the US or EAN-13 internationally, while an internal shipping label or asset tag with no retail requirement can use CODE128 for the same barcode style with none of the length restrictions.
Frequently Asked Questions
What does Barcode Generator (EAN/UPC/Code128) do?
Turn a number or text value into a barcode image you can print or paste into a label.
When should I reach for barcode generator (ean/upc/code128)?
Download the result as a PNG for documents and labels, or as an SVG for crisp printing at any size.
What complementary tools work well alongside barcode generator (ean/upc/code128)?
Format-specific barcodes (EAN-13, EAN-8, UPC-A, ITF-14) expect an exact digit count and a valid check digit; an invalid value shows an inline message with a working example instead of a broken barcode.
Does the barcode image show the typed value as text too?
Yes - Barcode Generator prints the value as readable text directly under the bars by default, so a person can read the code even without a scanner.
What happens if PNG download is not available in my browser?
The SVG download always works because it serializes the on-screen barcode directly. PNG export renders to a separate canvas and is best-effort, so on a browser without canvas support only the SVG link will appear.
Can I use this tool to scan or decode an existing barcode?
No - Barcode Generator only draws a new barcode from text you type. To read a barcode from a photo or camera, use a dedicated barcode scanner tool instead.