Step by step
- Bars and spaces of different widths encode each character.
- The scanner reads the widths and decodes them.
- The check digit confirms the number was read correctly.
At a glance
| Part | What it does | EAN-13 example |
|---|---|---|
| Guard bars | Mark start, middle and end | 101 · 01010 · 101 |
| Digit patterns | Encode the number | 7 units per digit |
| Check digit | Catches misreads | 590123412345 → 7 |
Related questions
How is the check digit calculated?
Multiply the first 12 digits alternately by 1 and 3, add them up, and take what is needed to reach the next multiple of 10.
Does a barcode store the price?
No, only the number; the price is looked up in the shop's system.
Why do scanners fail?
Bars printed too small, blurred, on a shiny surface or without a white margin.
More questions: barcode generator
- Why Is My Barcode Not Scanning?
- Barcode Generator Without Text
- How to Make Barcodes in Excel
- How to Scan a Barcode on iPhone and Android
- What is Code 128 and which barcode type should I use?
- How to barcode your products for stores and Amazon
- Bulk barcode generator: many barcodes at once
- Free ISBN barcode generator for books
- Barcode or QR code for a website link?
Open the full barcode generator →
Updated November 14, 2026.