RandomNr

Codes and Test Data

Random Barcode Number Generator

Generate EAN 13 and UPC A numbers with a correct check digit for test catalogues.

Random Barcode Number Generator

4006381333931

EAN-13, valid check digit

How many barcodes

Format

Generate barcode numbers

This tool creates the numbers behind retail barcodes, in EAN-13 or UPC-A format, each with a correct check digit. They suit testing point of sale systems, product catalogues and any form that validates a barcode number.

The check digit

Both EAN-13 and UPC-A end in a check digit worked out by weighting the other digits and taking a mod 10 result. The tool builds the data digits at random and calculates that final digit, so the number scans as valid to software that checks it.

Numbers, not images

This tool produces the numeric value, not a scannable image. The numbers are well formed but assigned to no real product, and everything is built in your browser with nothing sent anywhere.

Popular generators

Frequently asked questions

What formats are supported

EAN-13, the thirteen digit code used worldwide, and UPC-A, the twelve digit code common in North America.

Is the check digit correct

Yes. Both formats use a mod 10 check digit, which the tool calculates so the number validates.

Does it make a scannable image

No. It produces the barcode number itself. Pair it with a barcode font or library to render an image.

Are these real products

No. They are random valid looking numbers for testing, not assigned to any product.

Is it free

Yes, free and with no sign up.

Related generators

For a book number see the ISBN generator, or a product serial with the serial number generator.