Test GTIN Generator — Checksum-Valid Dummy GTINs

Generate dummy GTINs with a valid GS1 mod-10 check digit: EAN-13, EAN-8, GTIN-14, UPC-A and ISBN-13. Use them in product-ID fields, checkout tests, PIM seeds and validator fixtures. The tool draws no barcode image, queries no GS1 service and issues no ISBN.

Loading…
How the test GTINs are built
Dummy EAN-13, EAN-8, GTIN-14, UPC-A and ISBN-13 numbers with a valid GS1 mod-10 check digit. Nothing is checked against GS1, Open Food Facts or Google Books.

How generation works

Choose the kind, format, checksum validity, quantity (1 to 100) and order. Changing an option generates a new list. Copy everything, or download JSON, CSV, SQL or TXT.

Options

Kind
EAN-13, EAN-8 and GTIN-14 use 952, the prefix GS1 reserves for examples. GTIN-14 adds a packaging indicator from 1 to 8. UPC-A uses the example prefix 012345. ISBN-13 starts with 978 or 979. Mixed picks EAN-13, EAN-8 or UPC-A for each row, never ISBN-13 or GTIN-14. The English page starts on UPC-A, the others on EAN-13.
Format
Compact gives bare digits for APIs and databases. Grouped adds spaces for reading: 1-6-6 for EAN-13 and ISBN-13, 4-4 for EAN-8, 1-5-5-1 for UPC-A, 1-3-9-1 for GTIN-14.
Checksum validity
Valid passes the GS1 mod-10 check. Invalid changes the check digit on purpose, so you can test that a validator rejects it.
Quantity (1 to 100)
How many rows to generate for a seed job.
Order
Random may repeat a number. Unique keeps every GTIN different within the batch. Sequence gives the same numbers on every run.

Examples

EAN-13 with the 952 prefix

Settings

kind=ean13, format=compact, checksumValidity=valid

Sample output

9521234567899

Invalid UPC-A for rejection tests

Settings

kind=upca, checksumValidity=invalid

Sample output

012345000059

Related tools

Build full product rows with the test JSON data generator.

Test GTIN FAQ

Checksums, fixtures and the limits of this tool

Does this verify products with GS1 or Open Food Facts?

No. It only builds dummy numbers with a valid check digit, in your browser. It never queries Verified by GS1, GEPIR, Open Food Facts or Google Books.

Can a generated UPC or ISBN match a real product or book?

Yes, it can. UPC-A numbers with 012345 and ISBN-13 numbers with 978 or 979 may belong to real items. GS1 keeps prefix 952 for examples, so those EANs should not. A valid check digit never proves a number is unregistered.

What is the invalid checksum for?

It checks that your validator rejects bad GTINs as well as accepting good ones. The test VAT, IBAN and card generators work the same way.

I searched for a fake EAN or fake barcode number. Is this it?

If you need dummy product IDs for development and fixtures, yes. It does not draw barcode images or look numbers up in a registry.

Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.