Test Barcode Data Generator
Generate sample barcode values with valid check digits for development and testing. These are not real product barcodes.
How to use in 3 steps
- 1
Choose type and count
Pick EAN-13, EAN-8, UPC-A or GTIN-14 and set how many to generate.
- 2
Generate
Random sample numbers with valid check digits are created.
- 3
Copy or download
Copy the list or export as CSV and use it in your tests.
Example input / output
Input
Type: EAN-13, Count: 3
Output
8690000000017, 4006381333931, 5901234123457
Technical notes
The tool generates random body digits of the correct length for your chosen type, then appends the correct check digit computed with GS1 modulo-10. The resulting numbers are formally valid and suitable for testing your validation flows.
These numbers are NOT real product barcodes: even though their check digits are correct, they are registered to no product and imply no GS1 prefix ownership. Use them only as fake data for development, QA, demos and training.
To reduce the chance of a generated value colliding with a real, registered GTIN, keep in mind they are for test/sample use; do not push them into production as real products. Real sale requires a registered number.
Validate the data you generate with the GTIN validator and feed it into the bulk barcode generator for bulk images. For internal stock codes, the SKU generator is more appropriate.
Frequently asked questions
No. They are only test data with valid check digits; they are registered to no product. Real sale requires a registered GTIN from GS1.