What random barcodes are for
- Testing a new barcode scanner or setting up its suffix (Enter or Tab).
- Trying out POS, inventory or warehouse software before your real products are loaded.
- Building and testing apps that read barcodes.
- Checking a label printer's alignment and darkness.
- Mock-ups and teaching material.
They are not for selling products. A product sold in shops or online needs a GTIN licensed to its brand owner by GS1.
Why these test codes are safe
A truly random 12-digit UPC could easily be a real product's code, and that confuses software that looks numbers up online. So we use ranges GS1 keeps for in-store use, which are never assigned to products:
| Type | Starts with | Why |
|---|---|---|
| UPC-A | 4 | Number system 4 is for a shop's own internal use |
| EAN-13 | 2 (200–299) | GS1 restricted-circulation range for in-store numbers |
| EAN-8 | 2 | Restricted-circulation EAN-8 range |
| ITF-14 | 12 | A case code built on a restricted EAN |
| Code 128 / 39, Data Matrix | TST- / TEST- | Clearly marked as test data |
Every UPC, EAN and ITF-14 still has a correct check digit, so your software sees a valid code. The random digits come from your browser's secure random number generator.
