How to Make a Barcode: Types, Check Digits and a Free Generator
Barcodes are used on everything from shop products and shipping labels to library books and stock bins. Making one is easy with a barcode generator; the important part is choosing the right type and, for retail products, using a properly registered number.
Quick answer
- Choose the barcode type: UPC-A or EAN-13 for retail products, Code 128 for internal labels, inventory and shipping.
- Enter your number or text. For UPC and EAN, enter the digits without the last one; the generator then calculates the check digit for you.
- Download the barcode (PNG or SVG), print it, and test it with a scanner before printing in bulk.
Which barcode type do you need?
| Type | What it encodes | Typical use |
|---|---|---|
| UPC-A | 12 digits (11 + check digit) | Retail products in the US and Canada |
| EAN-13 | 13 digits (12 + check digit) | Retail products in most other countries |
| EAN-8 / UPC-E | 8 digits (compressed) | Small packages with little space |
| ITF-14 | 14 digits | Outer cartons and cases |
| Code 128 | Letters, numbers and symbols | Shipping labels, inventory, asset tags |
| Code 39 | Capital letters, numbers, a few symbols | Older industrial and ID systems |
| Codabar | Numbers and a few symbols | Libraries, blood banks, older systems |
The DailyConvertTools generator supports all of these. Code 128 accepts up to 80 characters.
Do you need a GS1 barcode?
If you’ll sell a product through retailers or most online marketplaces, the number inside a UPC or EAN barcode usually has to come from GS1, the organisation that issues company prefixes. You license a prefix and assign product numbers from it; GS1 US explains the process. A generator draws the barcode image, but it can’t make an unregistered number valid in retail systems. For your own stock, events or internal tracking, any number works, and Code 128 is usually the best fit.
How check digits work
The last digit of UPC, EAN and ITF barcodes is a check digit that lets scanners catch misreads. For the EAN-13 body 400638133393:
- Starting from the right, multiply the digits alternately by 3 and 1.
- Add the results: the total is 89.
- The check digit is the amount needed to reach the next multiple of 10: 1.
- The full number is 4006381333931.
Tips for barcodes that scan
- Print dark bars on a light background; black on white is the most reliable.
- Leave a blank margin (quiet zone) on both sides of the bars.
- Don’t shrink retail barcodes too far; very small or squashed barcodes may not scan.
- Use SVG for print work so the bars stay sharp at any size.
- Always test-scan a printed sample with the scanner you’ll actually use.
Need a code that phones can open as a link? Use a QR code instead; see how to make a QR code for a link.
Frequently asked questions
How do I make a barcode for free?
Choose a type in a free barcode generator, enter your number, and download the image.
Can I make my own UPC barcode?
You can draw one, but for retail sale the number usually needs to come from a GS1 company prefix.
What’s the difference between UPC and EAN?
UPC-A has 12 digits and is common in the US and Canada; EAN-13 has 13 digits and is standard in most other countries. Modern scanners read both.
Which barcode is best for inventory?
Code 128: it’s compact and encodes letters as well as numbers.
