Upc generator

Returns a valid UPC‑A (12 digits).

commerce.upc

Generator settings

Generate data to see results here.

Parameters & Example

Returns a valid UPC‑A (12 digits).

commerce.upc(options?: { prefix? })
options
An options object.
options.prefix
Optional numeric prefix for the UPC body (0–11 digits).

Example

"616064381179"

Use synthetic data in a test environment.

Related generators

Explore scenarios