Free generator No sign-up
Shopify Discount Code Generator: Unique Codes in Bulk
Make up to 10,000 unique random discount codes with your own prefix, length and dashes, or get a memorable code like WELCOME10. Copy them or download a CSV.

fiverr. Vetted Pro · Top Rated
Makes up to 10,000 unique random codes in your browser. Nothing you type is saved or sent anywhere.
From 1 to 10,000 per batch.
4 to 32 characters. 8 or more is hard to guess.
Letters, numbers and dashes only, like SAVE or BF26.
Added to the end of every code.
Applies to the random part. Your prefix stays as typed.
Shopify codes ignore case, so this is only for looks.
100 unique codes, like SAVE-7NAC-EZGF. A random guess has a 1 in 8.5 billion chance of matching one, so they are hard to guess.
Codes are made with your browser's secure random number generator. Shopify can't import a CSV of codes: paste them into a bulk code app, your email tool, or a print file.
One easy code to share, like WELCOME10. Tap an idea to copy it.
Like WELCOME, SUMMER, BFCM, VIP or THANKS.
Whole numbers only. Not used for free shipping.
For an influencer or partner code.
WELCOME10 is the easiest to remember. A shared code spreads fast, so give it an end date and a usage limit in Shopify.
This free Shopify discount code generator makes up to 10,000 unique random codes in your browser. You pick the prefix, length, characters and dashes. It leaves out look-alike characters, checks that no two codes match, and lets you copy the list or download a CSV or TXT file. It also suggests memorable codes like WELCOME10.
Most guides skip one thing. Shopify doesn’t make a big batch of codes for you, and it can’t import a CSV of codes. So this page also shows how to get many codes into your store today.
Here is what you will learn:
- How to use the Shopify discount code generator in under a minute
- How Shopify handles one code, and how to add hundreds of unique discount codes
- The simple math that makes a code hard to guess, with two worked examples
- When to use one shared code and when to use unique codes
- Naming ideas, how to stop codes leaking to coupon sites, and the mistakes to avoid
How to use the Shopify discount code generator
The Shopify discount code generator opens with an example: 100 codes that start with SAVE, like SAVE-7KQ4-X9PM. Change any field and the codes update.

- Enter how many codes you need, from 1 to 10,000.
- Set the random part length. Eight or more is a good default.
- Add a prefix or suffix if you want one. A prefix like BF26 or MAYA tells you where a code came from.
- Pick the characters. Letters and numbers are safest. Numbers only are easy to guess.
- Leave out look-alike characters. Then 0, O, 1, I and L never appear in the random part.
- Choose dashes and letter case. Groups of four are easy to read out loud.
- Copy or download. Use Copy all, Download CSV or Download TXT.
The preview shows the first 50 codes. The files always hold the full list, and a green line under the buttons confirms each copy or download.
Lower down, the memorable code ideas box works as a promo code generator for one shared code. Give it an occasion, a discount and an optional partner name, then tap an idea to copy it.
Can Shopify make many unique discount codes itself?
Not in the admin, based on Shopify’s own help center as of November 2026. When you create a code discount, you either type a name or click Generate code. That button makes one random code for that one discount. The help center doesn’t describe a bulk generator in the admin.
There is also no import. Shopify’s help page on exporting discounts says discounts can be exported only to a CSV file, and you can’t import discount codes to your store using CSV files.
So how do stores send 5,000 one-time codes to an email list? There are two real routes.
Route 1: a bulk app for unique discount codes
Apps in the Shopify App Store add many codes to one discount. All the codes share that discount’s rules, like the value, the end date and the usage limit. Some apps make the codes. Some also let you paste or upload your own list, made with a Shopify discount code generator like this one.
Two examples, checked on November 23, 2026: MyBulk says it creates up to 250,000 codes in one go, at $1 per set of up to 10,000 codes. Bulk Discount Code Bot says it can generate or import unique discount codes, with three free sets and paid plans from $19 a month. I haven’t tested either, so check reviews and prices first.
Route 2: the Admin API, through a custom app
A developer can add codes to a discount with Shopify’s Admin API. The discountRedeemCodeBulkAdd request takes up to 250 codes at a time, and the usage limit then counts for each code on its own. It suits big or repeat batches, but it is a developer job.
Limits that apply either way
- A store can hold up to 20,000,000 unique discount codes in total. Shopify says apps and custom solutions can’t raise this. Deleting old codes frees up room.
- A code can be up to 255 characters long.
- Codes ignore letter case, so SAVE10 and save10 are the same code.
- Shopify advises against special characters in code names, so they work in checkout links.
| Way | Codes per batch | Cost | Good for |
|---|---|---|---|
| Shopify admin | One per discount | Free | One shared code |
| Bulk code app | Thousands or more | Varies by app | Single-use codes |
| Admin API | 250 per request | Developer time | Large or repeat batches |
| This generator | Up to 10,000 as a list | Free | Planning, print, other tools |
To be clear, this Shopify discount code generator does not add codes to your store. It gives you a clean, unique list for an app that accepts your own codes, a printer, an email tool or another platform. It also helps you plan the format and check the guess odds before you pay for an app.
How the generator builds safe codes: the formulas in plain words
Each character in the random part comes from your browser’s secure random number generator, the kind used for passwords. A promo code generator built on a weaker random function can be easier to predict. This one avoids that.
Possible codes
Possible codes = the number of characters you allow, multiplied by itself once for each place in the random part.
Letters and numbers give you 36 characters. Without the look-alikes, you have 31. Letters only give 26, or 23 without I, L and O. Numbers only give 10, or 8 without 0 and 1.
The prefix and suffix don’t add safety. They are the same on every code, so anyone who sees one code knows them.
Chance a random guess works
Chance a guess matches = your number of codes ÷ possible codes.
More codes means more targets for a guesser. With the default characters, one extra random character multiplies the possible codes by 31. Length matters most.
Guaranteed unique
The Shopify discount code generator remembers every code in the batch. If a new code matches an old one, it picks again. If you ask for more codes than your settings allow, it tells you instead of giving you repeats.
Worked example 1: 100 codes for a welcome email
These are the sample settings in the Shopify discount code generator:
- 100 codes with the prefix SAVE
- 8 random characters, letters and numbers, look-alikes left out
- Dashes in groups of four, uppercase
Each code looks like SAVE-7KQ4-X9PM. That is 14 characters in total.
With 31 characters in 8 places, there are 31 to the power of 8 possible codes. That is 852,891,037,441, or about 853 billion.
The chance a random guess matches one of your 100 codes is 100 ÷ 852,891,037,441. That is about 1 in 8.5 billion. Nobody is going to guess their way in.
Worked example 2: 2,000 number-only codes for print
A store wants 2,000 six-digit codes for flyers, because numbers are easy to type on a phone. Look-alikes are left out, so only the digits 2 to 9 are used.
- Possible codes: 8 to the power of 6 = 262,144
- Chance a guess matches: 2,000 ÷ 262,144 = about 1 in 131
That is weak. Someone typing random six-digit numbers at checkout would hit a real code about once every 131 tries. The Shopify discount code generator shows this in red.
With 8 letters and numbers, the same 2,000 codes give odds of about 1 in 426 million. For print, a QR code that opens a shareable discount link also works. Make one with my Shopify QR code generator.
How to create discount codes in Shopify
First, check what the discount does to your profit. My Shopify discount calculator shows your profit per order before and after, and the extra sales you need. Then follow Shopify’s help center steps for an amount off code:
- From your Shopify admin, go to Discounts and click Create discount.
- Choose Amount off products or Amount off orders. The other types are Buy X get Y and Free shipping.
- Under Method, select Discount code.
- In the Discount code section, type your code, or click Generate code for one random code.
- In Value, pick Percentage or Fixed amount and enter the number.
- Set any Minimum requirements and choose who can use it under Eligibility.
- Under Maximum discount uses, tick Limit number of times this discount can be used in total or Limit to one per customer.
- Choose what it combines with, set the Active dates with an end date, and click Save.

Unique discount codes vs one shared code
A shared code is one code that many people use, like WELCOME10. Unique discount codes give each person their own code, usable once. Both have a place.
| Question | Shared code | Unique codes |
|---|---|---|
| Easy to remember? | Yes | No |
| Setup in Shopify | Minutes, no app | App or API |
| Risk if leaked | High | Low |
| Shows who used it | Not by person | Yes, per code |
Use a shared code for public offers: a social post, a site-wide sale, a podcast ad. Use unique discount codes when each person should get one use only, like a welcome email, a review reward, a customer service fix, or cards in parcels.
A middle path works well for influencers. Give each partner one shared code with their name, like MAYA15. You can then see each partner’s results in Shopify’s Sales by discount report.
Discount code naming ideas
A good shared code is short, says the deal, and is easy to spell. The memorable ideas box in the Shopify discount code generator builds these from your occasion and value:
- Occasion plus value: WELCOME10, SUMMER20, BFCM30
- Value first: 10OFFWELCOME, 15OFFFIRST
- Partner plus value: MAYA15, ALEXFREESHIP
- Free shipping: FREESHIP, SUMMERSHIP
Avoid spaces, symbols and any zero that could pass for the letter O. Keep shared codes under about 15 characters so people can type them on a phone.
If this is for a new store, my guide on how to get your first sale on Shopify covers where a welcome code helps and where it just gives away margin.
How to stop discount codes leaking to coupon sites
Coupon sites and browser extensions collect codes that shoppers share or type, so a public code like WELCOME10 can spread fast. These steps limit the damage:
- Use unique discount codes for private offers. A leaked single-use code works once, then stops.
- Set a total use limit on shared codes. Shopify’s Limit number of times this discount can be used in total caps your cost.
- Turn on Limit to one per customer. Shopify tracks the email or phone number used.
- Limit who can use it. Under Eligibility, you can pick specific customers or customer segments, like people with no orders yet.
- Always set an end date. An old code with no end date can keep working for years.
- Don’t use guessable names for private codes. People try SAVE10 and WELCOME10 first.
- Watch the numbers. If Sales by discount shows a sudden jump, deactivate the code and make a new one.
If shoppers say a code stopped working, my guide on Shopify discount code not working covers the usual causes.
Common discount code mistakes
Giving a discount before checking profit
A 20% code can cut your profit per order by 40% or more. Run the numbers first in the discount calculator I linked above.
Short or number-only codes
As example 2 showed, 2,000 six-digit codes can be guessed about once in 131 tries. The Shopify discount code generator flags weak settings in red, so use 8 or more letters and numbers.
Opening number codes in Excel
Excel can drop leading zeros from number-only codes, so 0042 becomes 42. Leaving out look-alikes in the Shopify discount code generator avoids zeros, or open the TXT file instead.
Forgetting how codes combine
Shoppers can use up to 5 product or order codes and 1 shipping code on one order, if your Combinations settings allow it. Check those boxes before a big send.
Deleting a code and making it again
Shopify says a one per customer limit belongs to that discount only. If you delete it and add a copy, past users can use it once more.
Questions about the Discount Code Generator
Can’t find your answer? Ask me directly, I’m happy to help.
Are Shopify discount codes case sensitive?
No. Shopify treats SAVE10, save10 and Save10 as the same code. That is why this promo code generator uses one case per batch. Uppercase is easiest to read.
How do I create unique discount codes in Shopify?
The admin makes one code per discount. For many unique discount codes, use a bulk code app or the Admin API. If the app accepts your own codes, make the list with a Shopify discount code generator first.
Can you bulk upload discount codes to Shopify?
Not through the admin. Shopify’s help center says discounts can be exported to CSV but not imported. Some bulk code apps let you paste or upload a list, so check the format each app wants.
How do I create a one time discount code on Shopify?
Create a discount code as usual. Under Maximum discount uses, tick Limit number of times this discount can be used in total and enter 1. It stops working after one use.
Is there a Shopify discount code character limit?
Yes. Shopify’s developer docs give a maximum of 255 characters. This Shopify discount code generator keeps codes far shorter, and it removes spaces and symbols, which Shopify advises against.
What are good discount code ideas and names?
Mix the occasion and the value, like WELCOME10, SUMMER20 or FREESHIP. For partners, add their name, like MAYA15. A promo code generator can suggest more. Keep them short and easy to spell.
Other free Shopify tools
◎ Free calculator
Discount Calculator
See what a sale or discount code does to your profit, and the extra orders you need to keep the same profit.
Free, no sign-up
◎ Free QR tool
QR Code Generator
Static QR codes for products, collections, discount and cart links, with campaign tags and PNG or SVG downloads.
Free, no sign-up
◎ Free calculator
Free Shipping Threshold
Find the free shipping minimum that pays for itself, with break-even point and profit before and after.
Free, no sign-up
◎ Free calculator
Profit Margin Calculator
Real profit per order after discounts, shipping, card fees and ads, plus margin, markup and monthly profit.
Free, no sign-up
◎ Free calculator
Pricing Calculator
Find the price to charge from your costs, fees and goal margin, with .99 rounding and compare-at prices.
Free, no sign-up
◎ Free calculator
Sales Goal Calculator
See the orders, visitors and ad budget you need for a monthly sales goal, or forecast revenue from traffic.
Free, no sign-up
Want a free check of your store?
Send me your store link. I'll look at your homepage, product page and mobile layout and reply with the 3 changes that would help sales most.
✓ Free quote✓ Fixed price✓ You own everything