Barcodes look alike, but they're used in different places and hold different characters. Here's how to choose the right one for the job.
Retail: EAN-13, UPC-A, EAN-8
These are the product barcodes scanned at a shop checkout. They hold digits only.
EAN-13 — 13 digits. The most widely used worldwide.
UPC-A — 12 digits. Used mainly in the US and Canada.
EAN-8 — 8 digits. For small products with no room for a full-size barcode.
Retail numbers come from GS1
You can't use just any number on a retail product. The first digits identify the country and company, and to supply retailers you need numbers issued by your country's GS1 organisation after joining as a member.
COC draws the barcode for a number you already have. Making the image does not register the number.
Check digits
The last digit of an EAN or UPC is a check digit calculated from the others, which catches misreads and typing mistakes. In COC, enter 12 digits for EAN-13, 11 for UPC-A or 7 for EAN-8 and the check digit is added automatically.
Logistics and internal: Code 128, Code 39
Code 128 holds upper and lower-case letters, digits and symbols and keeps the code short, so it's widely used for shipping labels, warehouse locations and asset numbers. Unless you have a reason not to, use Code 128 internally.
Code 39 holds only capital letters, digits and a few symbols but works well with older equipment, so it's still used in factories and government.
When printing
If the gaps between bars blur, scanners can't read them. Print from a vector (SVG or PDF) and don't crop the blank margins on either side. Black bars on white read best; red bars can't be read by scanners that use red light.