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. The codes come from your browser's cryptographic random number generator, not from a formula. One code on a flyer doesn't give away 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.
- Through the Admin API: The mutation discountRedeemCodeBulkAdd attaches up to 250 codes per call to a discount. That is a route for developers, and 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 up to 20 million unique codes are allowed per store. Hand-E AI Discounts generates up to 1,000 codes per campaign on every plan, with your own prefix, 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, start with its own conditions and with Shopify's rules for how discounts interact: combinations, minimum purchase requirements, customer eligibility, active dates, and the limit of 25 active automatic discounts. Walk 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 looks up the matching products and collections, suggests the complete discount, and creates it after your click, inactive until you remove the end date in the admin.
Read more