Coupon code generator

Set a prefix, length and quantity and instantly get a list of unique, random codes, ready to copy or download as a CSV file.

0 unique codes generated:

πŸ”’ Your codes are created and stay in your browser: nothing is ever sent or stored.

Truly random codes, powered by your browser

This generator uses crypto.getRandomValues, the cryptographic random number generator built into every modern browser, far less predictable than the classic "random" function in a spreadsheet. That matters a lot for coupons: a discount code that's easy to guess can be exploited at scale. With 8 characters drawn from a 32-symbol alphabet, the number of possible combinations exceeds a trillion, so brute-force guessing a valid code becomes practically pointless.

Why duplicates and ambiguous characters are filtered out

Every list you generate is checked to be duplicate-free, so you can import it straight into Shopify, WooCommerce or an Excel sheet with no surprises. The option that removes 0/O and 1/I is for codes that get read aloud over the phone or printed on flyers and receipts: those are the character pairs people mix up most often, and dropping them dramatically cuts down on "invalid code" errors at redemption time.