Guide
Choosing the right barcode type and printing it so it scans
A barcode is only useful if the scanner at the other end reads it, and different industries expect different types. A product in a supermarket needs an EAN or UPC, a shipping carton often an ITF-14, a stock-room shelf label usually Code 128. This generator makes all of them. The two decisions that matter are the right format and printing it so it scans.
Which format for which job
| Use | Format | Notes |
|---|---|---|
| Retail products (worldwide) | EAN-13 | Numbers licensed from GS1 |
| Retail products (US/Canada) | UPC-A | Numbers licensed from GS1 |
| Very small retail packaging | EAN-8 | Short form of EAN |
| Inventory, assets, internal labels | Code 128 | Letters, numbers, symbols; compact |
| Older industrial systems | Code 39 | Uppercase letters and digits only |
| Shipping cartons and cases | ITF-14 | Prints well on corrugated cardboard |
| Libraries, some labs | Codabar | Start/stop letters A–D |
| Retail shelf labels (some systems) | MSI Plessey | Digits only |
When the format is chosen, the field below shows exactly what it accepts. If a value can’t be encoded, such as a lowercase letter in Code 39 or the wrong number of digits for EAN-13, you’ll see why instead of a broken barcode.
Check digits, done for you
EAN-13, EAN-8, UPC-A and ITF-14 end with a check digit calculated from the other digits, which lets scanners catch misreads. Enter 12 digits for EAN-13 (11 for UPC-A, 7 for EAN-8, 13 for ITF-14) and the correct check digit is added automatically.
Retail numbers come from GS1
Anyone can draw an EAN or UPC barcode, but the number must be unique worldwide to be accepted by retailers and online marketplaces. Those numbers are licensed through GS1, the global standards organization. If you’re selling through shops or large marketplaces, get your numbers there first. For your own warehouse, shelves, equipment or event tickets, use Code 128 with your own codes; no license is needed.
Size, contrast and the quiet zone
- Contrast: dark bars on a light background. Black on white is safest. Red bars are invisible to many laser scanners.
- Quiet zone: keep clear space on both sides of the barcode. The generator adds a margin, so don’t crop it away or print right up to another element.
- Size: increase bar width for scanners that read from a distance or for low-resolution printers; reduce height only if space is tight.
- Text: keep the human-readable number shown, so staff can type it in if a label is damaged.
Downloading and printing
SVG is best for label software and print: it scales without blurring. PNG is exported at twice the screen resolution for documents and spreadsheets. Never stretch a barcode image in one direction only, because that distorts the bar proportions. Before printing a batch, test one label with the actual scanner or a phone barcode app.
All settings are remembered in this browser, and barcodes are generated on your device. For square codes that hold links, Wi-Fi or contact details, use the QR Code Generator.
Who creates barcodes
- Small shops and makers label products for their own till system and stock counts.
- Warehouses and workshops label shelves, bins and equipment with Code 128 or Code 39.
- Libraries and schools label books and assets.
- Event organizers print ticket or badge codes for check-in.
- Developers generate test barcodes for scanning software.
A complete example: shelf labels for a stockroom
- Choose Code 128, which accepts letters, numbers and symbols, such as SHELF-A12.
- Keep black bars on white, height around 80–100 px, and show the human-readable text.
- Download as SVG or PNG and place the labels in a document, several per page.
- Print one test label and scan it with your scanner or a phone app before printing the rest.
A complete example: a product barcode for retail
Supermarkets and online marketplaces require registered GS1 numbers for EAN-13 or UPC-A codes. Once you have your number from GS1, enter the first 12 digits for EAN-13 (or 11 for UPC-A); the check digit is added automatically. Print at the recommended size; shrinking retail barcodes too much makes them fail at the till.
Which format?
| Use | Format |
|---|---|
| Internal labels with letters | Code 128 |
| Retail products in Europe and most of the world | EAN-13 |
| Retail products in the US and Canada | UPC-A |
| Shipping cartons | ITF-14 |
| Older industrial systems | Code 39 |
Tips
- Leave a quiet zone (blank space) on both sides of the bars.
- Dark bars on a light background only; reversed colors often don’t scan.
Checked against the current version of the Barcode Generator on .

