Coupon code generator
Create unique coupon, promo, and discount codes for customers to redeem. Start from a preset or set the count, length, prefix, and pattern yourself, then copy the codes or download them as a CSV.
Quick start
Settings
# becomes a random character. All other characters are literal. Example: ####-#### gives 8-character codes with a dash in the middle.
Results
How the coupon code generator works
Choose a preset
Pick a template that matches the type of codes you need, or set the count, length, prefix, and pattern yourself.
Generate the codes
Click Generate. Every code is created right in the browser and checked against the rest of the batch, so the set contains no duplicates.
Copy or download
Copy the full list to your clipboard, or download a CSV to open in Excel or import into your store or point-of-sale system.
Using coupon codes in your promotions
Coupon codes give customers something to enter at checkout or hand over in person to claim an offer. A clear prefix, such as SAVE or FALL, tells customers immediately what the code is for and makes it easier to remember or share.
Unique codes per customer let you trace each redemption back to the person or channel that drove it, which is useful for tracking which promotions perform. A single shared code is simpler to promote in an ad or email, but it can end up on coupon sites and get used by people outside your intended audience.
Frequently asked questions
More free tools
Gift card code generator
Unique gift card and voucher codes in one click. Formatted and branded presets included, with copy and CSV download.
Random code generator
One generator for every kind of code: gift cards, coupons, promos, referrals, and serial numbers. Presets included, with copy and CSV download.
Referral code generator
Create unique referral codes in one click. Presets for refer-a-friend, branded, and voucher codes, with copy and CSV download.
Give every customer their own code automatically
Referral Rock creates a unique code for each program member, tracks every redemption, and handles rewards, so you don't need to manage codes in a spreadsheet.