Code 128 is a flexible barcode format that can encode letters and numbers. EAN-13 uses thirteen digits, including a check digit, and is commonly used for retail product identification. Choose the format that matches the identifier and its intended use.
A barcode generator draws the selected representation. It does not turn an internal shop code into a registered retail product identifier.
The practical comparison
| Feature | Code 128 | EAN-13 |
|---|---|---|
| Typical shop use | Internal SKUs and operational labels | Existing retail product identifiers |
| Content | Printable letters, numbers and supported characters | Thirteen digits |
| Example | SHOP-001 | An existing valid thirteen-digit product code |
| Length | Variable; longer content needs more physical space | Fixed digit count |
| Validation | Format and supported character checks | Length, digits and check digit |
| Registration | Internal use depends on your own code scheme | External product identification has allocation requirements |
Code 128 and GS1-128 are also distinct. GS1-128 uses a specific GS1 data structure with additional conventions; a plain internal Code 128 label is not automatically GS1-128. See GS1’s explanation before using those names interchangeably.
Choose Code 128 for an internal SKU
Suppose your hardware shop uses BOLT-M8-20 as the identifier for a particular pack. It contains letters and hyphens, so it is not an EAN-13 value. Code 128 can represent that internal code for a compatible scanner.
Keep it short enough to fit the label. A longer Code 128 value produces more bars; shrinking it into a small sticker can make the individual modules too narrow for reliable scanning.
Choose identifiers that remain stable when the price changes. Keep the item name and price as separate printed text and item-record fields. Read SKU vs barcode before designing a whole catalogue’s code scheme.
Use EAN-13 for the appropriate existing identifier
Copy all thirteen digits from the source, including the check digit and any leading zeroes. Do not replace a digit merely to make a failed checksum pass; confirm the original number first.
The check digit detects many entry mistakes. It does not verify product ownership, confirm registration, or establish that the code belongs to the particular pack in your hand. Those checks require the appropriate product information and allocation records.
If you are a brand owner seeking identifiers for products sold through external retail channels, refer to GS1 India. Creating a valid-looking image is not a substitute for the required registration process.
Keep input as text
A barcode value is an identifier, not an amount to calculate. Spreadsheet software can remove leading zeroes or display a long digit sequence in scientific notation if the column is treated as a number.
Set code columns to text before entering or importing identifiers. After any copy, export or import, scan a sample and compare the complete string. A missing zero can change the lookup even when the remaining digits look familiar.
The barcode generator keeps code input as text and validates EAN-13 checksums. It does not look up a product database or upload the entered code.
Test the format with your actual scanner
Check the scanner supports and has enabled the selected symbology. Scanner settings can also alter output, for example by adding an Enter key suffix or representing an equivalent retail code differently.
First scan into a plain text field, then into a sample billing record. Confirm both the decoded value and the selected product. A successful beep is not enough if the wrong item appears at the counter.
For a code that will not read, inspect print contrast, quiet zones, damage and scaling. The barcode troubleshooting guide separates decoding failures from incorrect item matches.
Print at a usable size
Use black bars on a white background, preserve the barcode’s proportions, and leave clear areas on both sides. Avoid fitting a long internal code into a label by compressing it horizontally.
The free generator offers an A4 layout and a 50 × 30 mm thermal layout, with checks against overly dense values. The actual printer, label stock and driver still need a physical sample test. Browser preview cannot prove a sticker will scan after printing.
Yojika’s label workflow uses item codes alongside names and prices. Explore features, pricing, or try Yojika to keep labels connected to your inventory records.
Frequently asked questions
Which format accepts letters? Code 128 supports letters and numbers; EAN-13 requires digits.
Can a checksum prove registration? No. It checks structure, not entitlement or product ownership.
Why does one code need a wider label? Code 128 length varies with the data being encoded. More encoded content generally requires more physical width.