Numbers
EAN-13 Barcode Data Generator
Used by developers, writers, and creators worldwide.
The EAN-13 barcode data generator produces random 13-digit codes with correctly calculated check digits — valid enough to pass any scanner or retail software, but not registered in any GS1 database. That combination is exactly what QA engineers and backend developers need when testing product pipelines, barcode readers, or import logic without touching licensed inventory. Set a country prefix to target specific GS1 regions: 50 for the UK, 400–440 for Germany, 300–379 for France, or 000–099 for North America. Adjust the count to generate a handful of codes for a unit test or a bulk list for seeding a staging catalogue. Every number in the batch is independently randomised and check-digit verified.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Set the Count field to the number of EAN-13 codes you need for your test batch.
- Enter a 2 or 3-digit GS1 country prefix in the Prefix field to simulate region-specific barcodes, or leave it blank for fully random codes.
- Click Generate to produce the list of valid EAN-13 numbers with correctly computed check digits.
- Copy individual codes or the full list, then paste directly into your database seed file, test fixture, or barcode printing tool.
Use Cases
- •Seeding a Postgres staging database with 500 unique SKUs before a load test
- •Testing barcode scanner firmware against valid but unregistered EAN-13 codes
- •Generating fixture data for Jest or Pytest product-lookup endpoint tests
- •Simulating UK or German product codes using GS1 country prefixes in an import pipeline
- •Populating a Shopify demo catalogue with realistic-looking barcodes for a client walkthrough
Tips
- →Use prefix 200–299 to generate in-store or private-label barcodes — GS1 reserves this range for internal use, so they will never clash with supplier codes.
- →When testing check digit validation in your own code, intentionally corrupt the last digit of a generated number to confirm your system rejects it.
- →For load testing, generate several batches with different prefixes and merge them to simulate a diverse multi-region product catalogue.
- →Pair generated EAN-13 numbers with a barcode font (e.g. GS1-128 or a dedicated EAN font) to produce scannable label images for hardware tests.
- →If your warehouse system pads or trims leading zeros, generate a batch starting with prefix 00 to expose that edge case early in development.
FAQ
how is the ean-13 check digit calculated
Odd-position digits (from the left) are multiplied by 1, even-position digits by 3. Sum all results, then subtract from the next multiple of 10 — that remainder is the check digit. This generator runs that calculation automatically for every code it produces, so you never get a number a scanner would reject.
are these ean-13 barcodes safe to use in testing without buying a gs1 license
Yes, for development and QA purposes only. The numbers pass check digit validation but are not registered in the GS1 Global Registry, so scanning one in a live retail system returns 'not found' rather than a real product. Never use them on commercially sold goods — that requires a licensed GS1 company prefix from your national member organisation.
what country prefix should I use for uk or us barcodes
Enter 50 for UK codes (covering the 500–509 GS1 range), or 00 through 09 for US and Canada. For Germany use 40, for France use 30. The generator fills in the remaining digits randomly while preserving your chosen prefix, so the output mimics real regional product codes.