Random Barcode Generator

Make random barcodes for testing scanners, POS systems, apps and label printers. UPC and EAN test codes come from GS1's in-store ranges, so they never match a real product.

UPC and EAN test codes come from the GS1 in-store ranges (UPC starting with 4, EAN-13 with 200–299, EAN-8 with 2), which are never given to real products.

Your test codes

Colours

Dark bars on a light background scan best. Most scanners use red light, so red, orange and yellow bars read as blank.

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:

TypeStarts withWhy
UPC-A4Number system 4 is for a shop's own internal use
EAN-132 (200–299)GS1 restricted-circulation range for in-store numbers
EAN-82Restricted-circulation EAN-8 range
ITF-1412A case code built on a restricted EAN
Code 128 / 39, Data MatrixTST- / 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.

Pallet racking in a distribution warehouse
Pallet racking in a distribution warehouse.

Questions

  • They have correct check digits and scan like any other barcode. But they aren't assigned to any product, so use them for testing only.

  • No. Retailers and marketplaces check UPCs against GS1's database. You need a number licensed to your brand.

  • UPC number system 4 is set aside for shops' internal use, so these numbers can't clash with real products.