Promo Code Generator
Generate up to 1,000 random promo codes with a prefix, pattern, character set controls, similar-character filtering, and TXT or CSV export.
Generate bulk promo codes
Use this promo code generator to create a batch of random coupon-style codes for email campaigns, referral tests, loyalty experiments, offline flyers, QA data, or ecommerce imports.
- Generate 1 to 1,000 codes in one browser session.
- Add a prefix such as SALE-, VIP-, or SPRING-.
- Use a pattern such as XXXX-XXXX when codes need separators.
- Export TXT for a simple list or CSV for import workflows.
Uniqueness and brute-force limits
Codes are generated with `crypto.getRandomValues()` and deduplicated only within the current export. The tool does not compare against earlier exports or your ecommerce database.
N is the possible code space, A is alphabet size, and L is the number of random characters.
Import notes
| Option | Use it for | Check before launch |
|---|---|---|
| Prefix | Campaign or segment naming | Avoid revealing confidential targeting rules |
| Pattern | Readable codes with separators | Keep enough random X positions |
| No 0O1lI | Manual entry from flyers or phone calls | Reduced alphabet means less total code space |
| CSV | Shopify, WooCommerce, CRM, and spreadsheet imports | Discount value, expiration date, usage limit, and old-code collisions |
Frequently Asked Questions
Sources and References
- Crypto: getRandomValues() methodMDN
- Insecure RandomnessOWASP
- Bulk coupon management announcementBigCommerce
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Generate a strong random password in your browser with length, character set, strength estimate, and one-click copy.
Generate EAN-13, EAN-8, UPC-A, Code 128, Code 39, or ITF-14 barcodes in your browser and download PNG or SVG files.
Create a static QR code for a URL, text, email, phone number, or Wi-Fi string and download it as a PNG image.
Calculate a sale price, savings, effective discount, quantity total, stacked percent coupon, fixed coupon, and reverse original price.