Product Code Generator
Generate internal product code values from category, product, colour, size and a local sequence.
Generate a batch of unique coupon-code strings with a prefix, suffix length and custom alphabet.
Generate promotion-code strings with a chosen prefix and random suffix. Codes are unique within the generated batch, but they have no discount value until configured in your own shop or system.
Example: With prefix SAVE and suffix length 8, every result starts with SAVE followed by eight sampled characters. Generating ten codes produces ten different strings within that batch.
How it works: Suffixes sample Unicode code points from the deduplicated alphabet using cryptographic randomness. Capacity is alphabet code-point count raised to suffix length; a set guarantees uniqueness only within this generated batch.
The suffix length counts Unicode code points selected from the deduplicated alphabet. Batch uniqueness removes duplicates from this run, while the prefix identifies the campaign only in your own system.
An alphabet AB and suffix length 2 have four possible suffixes: AA, AB, BA and BB. Requesting five unique codes is impossible regardless of the prefix.
Guidance updated . Methods and corrections
References: w3.org
Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.
Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.