What Is a Barcode Generator?
A barcode generator creates machine-readable barcodes from numbers or text: patterns of dark bars and light spaces that laser and camera scanners read instantly. Barcodes power retail checkouts, warehouse inventory, shipping and logistics, library books, event tickets, hospital wristbands and asset tracking. Each industry uses particular symbologies, or barcode types, with their own rules for which characters are allowed and how check digits are calculated.
This free online barcode generator supports the most widely used linear barcode formats. It validates your input for the chosen type, calculates check digits automatically for EAN and UPC, and exports crisp PNG images or scalable SVG vectors ready for labels, packaging and documents. Everything runs in your browser.
How to Create a Barcode
- Choose the barcode type that your scanner, retailer or system requires, such as EAN-13 for retail products or Code 128 for general use.
- Enter the value. For EAN-13, you can type 12 digits and the 13th check digit is added for you.
- Adjust the appearance: bar width, height, text, font size, margins and colours.
- Download the barcode as PNG or SVG. For several barcodes, switch to Batch mode and enter one value per line.
Which Barcode Type Should You Use?
| Type | Characters | Typical use |
|---|---|---|
| Code 128 | All 128 ASCII characters | Shipping labels, inventory, internal IDs, the most versatile choice |
| EAN-13 | 12 digits + check digit | Retail products worldwide (GTIN-13), books (ISBN) |
| UPC-A | 11 digits + check digit | Retail products in the USA and Canada |
| EAN-8 / UPC-E | 7 / 6 digits + check | Small packages with limited space |
| Code 39 | A–Z, 0–9, - . $ / + % space | Automotive, defence, badges, older systems |
| ITF-14 | 13 digits + check digit | Outer cartons and cases in logistics |
| Codabar | 0–9, - $ : / . + with A–D start/stop | Libraries, blood banks, FedEx airbills |
Features
- 14 barcode formatsAll the common 1D symbologies for retail, logistics and industry.
- Input validationClear messages when a value isn't allowed for the chosen type.
- Automatic check digitsEAN-13, EAN-8, UPC-A and ITF-14 check digits are calculated for you.
- Batch generationCreate dozens of barcodes at once and download them as a ZIP.
- Vector SVG exportPerfect sharpness for professional label printing.
- Private and freeGenerated locally, with no watermarks or limits.
Important: Barcodes for Retail Products
To sell products through retailers and marketplaces, EAN and UPC numbers must be officially licensed from GS1, the global standards organisation, or your country's GS1 member. This tool generates the barcode image for any number you enter, but it doesn't issue unique product numbers. For internal use, such as inventory, asset tags and library systems, Code 128 or Code 39 with your own numbering is ideal.
Printing Tips for Reliable Scanning
- Keep the quiet zone: leave blank space on both sides of the barcode, about ten times the narrowest bar.
- Use high contrast: black bars on a white background scan best. Red bars are invisible to most laser scanners.
- Don't squash it: scale proportionally, and export SVG or a large PNG for printing.
- Print at 300 DPI or more on label printers, and test with your actual scanner before printing in bulk.
Frequently Asked Questions
What size should I print a barcode?
For EAN-13 and UPC-A, the standard size is about 37 × 26 mm at 100% magnification, and it can be scaled between 80% and 200%. Code 128 labels depend on the data length. Keep the bars at least 0.25 mm wide for reliable scanning.
Are these barcodes free to use?
Yes. The barcode images are free to use for any purpose. Retail EAN/UPC numbers themselves must be licensed from GS1 if you sell through stores.
How is the EAN-13 check digit calculated?
Digits in odd positions are added, digits in even positions are multiplied by 3 and added, and the check digit is the number that rounds the total up to the next multiple of 10. Enter 12 digits and it's calculated automatically.
What's the difference between a barcode and a QR code?
Linear barcodes store a short number or text in one dimension and are read by standard scanners. QR codes are 2D, store much more data such as URLs and contact details, and are designed for phone cameras. Use our QR Code Generator for QR codes.
Why does it say my value is invalid?
Each barcode type accepts specific characters and lengths. For example, EAN-13 needs 12 or 13 digits and Code 39 doesn't allow lowercase letters. Choose Code 128 for any text.
Can I generate many barcodes at once?
Yes. Choose Batch mode, enter one value per line, and download all the barcodes as a ZIP of PNG images.