How the 13 digits are usually understood
Recommended workflow
Confirm the number source
Do not assume any 13-digit number is a valid retail barcode.
Understand the company prefix
The prefix length can vary, so avoid fixed mechanical splitting.
Assign item references consistently
Different product specifications normally need different item references.
Calculate the check digit
The last digit should be calculated from the first 12 digits.
Generate and test the image
After the number is valid, generate the EAN-13 image and test scanning.
Common mistakes
FAQ
Is EAN-13 always split as prefix + company + product + check digit?
The conceptual parts are company prefix, item reference and check digit, but the exact lengths can vary.
Who assigns the item reference?
After a company has a valid prefix, it assigns item references to product items according to uniqueness rules.
Can I choose the last digit myself?
No. The final digit is a check digit calculated from the first 12 digits.