Free online tool
Barcode generator
Type your data, pick a barcode type and download a clean PNG or SVG. Check digits are calculated for you, and nothing is sent to a server.
- 17 barcode types
- PNG and SVG, no watermark
- Made on your device
Dark bars on a light background scan best. Check the result with the barcode decoder before you print a batch.
How to make a barcode
Choose the type, type the data, and the barcode draws itself on the right as you type. If the data does not fit the format (a letter in a UPC, an odd number of digits in Interleaved 2 of 5) the preview tells you at once. Download a PNG or SVG, print one copy, and scan it before you print the rest.
Barcode types you can create
| Type | Holds | Use it for |
|---|---|---|
| UPC-A | 12 digits | Retail products in the US and Canada |
| EAN-13 | 13 digits | Retail products everywhere else |
| EAN-8, UPC-E | 8 digits | Very small retail packs |
| ISBN | 13 digits, optional price add-on | Books |
| Code 128 | Any text | Shipping labels, asset tags, order numbers |
| GS1-128 | GS1 fields | Pallet and carton labels with dates and lots |
| ITF-14 | 14 digits | Outer cartons, printed straight onto cardboard |
| Code 39, Code 93 | Capitals and digits | Older industrial and military systems, name badges |
| Codabar | Digits and a few symbols | Libraries, blood banks, older courier labels |
| QR Code | Up to about 2,900 characters | Links, Wi-Fi, contact cards, payments |
| Data Matrix | Up to about 2,300 characters | Small parts, medicine packs, medical devices |
| PDF417 | Up to about 1,800 characters | ID cards, tickets, forms |
| Aztec | Up to about 3,000 characters | Rail and airline mobile tickets |
Getting a barcode that scans the first time
Most printed barcodes that fail were fine as files and got damaged on the way to paper. Four habits prevent nearly all of it.
Keep the blank margin on each side. It is called the quiet zone and it is part of the barcode, so do not crop it or let text run into it. Stick to dark bars on a light background: black on white is safest, red bars are invisible to many laser scanners, and light bars on a dark background fail on most. When you resize, drag a corner so the width and height change together. And print on a thermal or laser printer if you can, because inkjet ink bleeds on plain paper and thickens the bars.
Then scan the printed label with the barcode scanner from the distance it will be used at.
Numbers for products you sell
A barcode is only a picture of a number. For internal use you can invent the numbers. For retail, the number must be a GTIN issued under a company prefix that you license from GS1, otherwise retailers will reject it or it will clash with another company’s product. What is a GTIN? and what UPC numbers mean explain how those numbers are built.
FAQ
Barcode generator: questions and answers
Which barcode type should I use?
For products sold in stores, UPC-A in the US and Canada and EAN-13 elsewhere. For shipping labels, asset tags and anything with letters, Code 128. For links and contact details, QR Code. For cartons, ITF-14. For tiny parts and healthcare, Data Matrix. The types of barcodes guide compares them.
Can I use a generated UPC or EAN to sell my product in stores?
The image is fine, but the number has to be yours. Retailers and marketplaces such as Amazon check that a UPC or EAN belongs to a company prefix licensed from GS1. Get your numbers from your national GS1 office first, then generate the barcode here. For internal use, such as your own stockroom, any number works.
Does the generator calculate the check digit?
Yes. Enter 11 digits for UPC-A, 12 for EAN-13, 7 for EAN-8 or 13 for ITF-14 and the last digit is added. If you enter the full number with a wrong check digit, you get an error, so a bad barcode does not reach print.
PNG or SVG: which should I download?
SVG for print. It is a vector file, so it stays sharp at any size, and it is what a packaging designer or print shop will ask for. PNG for documents: it drops straight into Word, Excel, Google Docs and label software. Do not stretch a PNG barcode unevenly, because changing the bar widths makes it unreadable.
How big should I print a barcode?
A UPC-A or EAN-13 at 100% is about 37 mm wide and 26 mm tall, and the standard allows 80% to 200% of that. Keep clear white space on both sides, roughly 3 to 4 mm at full size. QR codes should be at least 2 cm across for scanning at arm’s length. Then test the print with the online barcode scanner.
Are the barcodes free to use commercially?
Yes. Barcode formats are open standards and the images you generate here are yours, with no watermark and no attribution needed. Nothing you type is sent to a server.
Read what you made
Barcode scanners and lookups
- Scanner
Online barcode scanner
Camera, image, PDF and batch scanning for every common barcode.
- Scanner
QR code scanner
Scan QR codes from your camera, a photo or a screenshot.
- Scanner
UPC scanner
Read UPC-A and UPC-E codes and see the product behind them.
- Scanner
ISBN scanner
Scan a book barcode and get the title, author and cover.
- Scanner
PDF417 scanner
Decode driver’s license and boarding pass barcodes into fields.
- Scanner
Data Matrix scanner
Decode Data Matrix codes and parse GS1 and UDI data.
- Scanner
Code 128 reader
Read Code 128 and GS1-128 shipping and logistics labels.
- Scanner
Barcode decoder
See raw data, symbology, check digits and GS1 fields.
- Scanner
Barcode scanner for PC
Scan with a laptop or desktop webcam. Nothing to install.
- Lookup
Barcode lookup
Type or scan a barcode number and find the product.
- Lookup
UPC lookup
Look up a 12-digit UPC and validate its check digit.
- Lookup
EAN lookup
Look up an EAN-13 and see its GS1 country prefix.