Free tool
Discount code generator for unique codes
Pick a prefix, a count and a length, and you get up to 10,000 unique codes as a list and CSV file. No 0 and O, no 1, I and L in the random part, so every code can be typed without mistakes.
For example SUMMER- or ANNA. Spaces and special characters other than - and _ are removed.
1 to 10,000
A code looks like this: SUMMER-XXXXXXXX
Your codes
No codes generated yet.
How the codes are made
The generator follows the same rules as the Bulk codes discount type in Hand-E AI Discounts.
- 31 characters, no look-alikes. The random part uses capital letters and digits without 0 and O, without 1, I and L. Anyone typing a code from a printed card or reading it out on the phone won't mix them up.
- Real randomness from your browser. Every code comes from true randomness in your browser, not from a pattern. Someone who sees one code on a flyer can't guess the others.
- Every code only once. Duplicates are thrown out and drawn again. With 8 characters there are about 852 billion possible random parts.
- One prefix per campaign. ANNA for an influencer, EXPO for coupon cards, HELLO for the newsletter: later you can tell from any code which campaign it came from.
- Nothing is sent anywhere. The list is created on this page. We never see your codes, and unless you download them, they are gone when you close the page.
Getting the codes into your store
A list isn't a discount yet. A code only works at checkout once it is attached to a discount in Shopify.
- One by one in the admin: In the discount form you enter a code or let a button generate one. Fine for a handful of codes.
- With a developer: Through Shopify's Admin API, a developer can attach up to 250 codes at a time to a discount. This takes coding work. The list from this page fits right in.
- With Hand-E AI Discounts: The Bulk codes discount type creates up to 1,000 codes per campaign directly as a Shopify discount, on every plan. Its CSV file only contains codes Shopify actually created.
Common questions
Can I import the CSV file straight into Shopify?
How long should the random part of a discount code be?
Are the generated codes stored anywhere?
Can the prefix contain spaces or special characters?
Related guides
Hundreds of unique discount codes are needed
One Shopify discount can carry many codes, and a store can have up to 20 million unique codes. Hand-E AI Discounts generates up to 1,000 codes per campaign on every plan, with your own prefix. It creates them as one Shopify discount and gives you a CSV file.
Read moreThe discount is set up but does not apply at checkout
Whether it is an automatic discount or a discount code, check two things first: the discount's own conditions and Shopify's rules for how discounts work together. These are combinations, minimum purchase requirements, customer eligibility, active dates and the limit of 25 active automatic discounts. Go through the points in order, then check the result with a test order.
Read moreCreating discounts takes too many clicks
On every plan of Hand-E AI Discounts, the free one included, you describe a discount in one sentence. The AI assistant finds the matching products and collections and suggests the complete discount. It creates the discount after your click. The discount stays inactive until you switch it on with a second click on “Switch on now”.
Read more