Promotions

Discount Code Generator

Single-use codes stop coupon-site leakage — but nobody types 500 of them by hand.

Unique one-per-customer discount codes (SAVE-7K2FQD) leak far less than one shared code (SAVE20). A shared code escapes to coupon aggregators within hours and discounts customers who would have paid full price; unique codes die after one use. This generator creates up to 500 random codes in your browser — custom prefix, chosen length, and a character set with ambiguous characters (0/O, 1/I/L) removed so support never has to guess what a customer mistyped. Codes are generated locally with cryptographic randomness and never leave your machine.

Want a calculator like this on your site? See the free embeds →

Frequently asked questions

How long should a discount code be?

Six to eight random characters after the prefix is the practical sweet spot: short enough to type from a postcard, long enough that guessing is hopeless. With 30 safe characters, a 6-character suffix gives 729 million combinations — brute-forcing one of your 500 codes is not a realistic risk.

Why exclude characters like 0, O, 1, I and L?

They are the classic ambiguous set — indistinguishable in many fonts and in handwriting. Every ambiguous character in a code generates support tickets from customers typing the wrong twin. The safe-set option removes them all.

How do I import these codes into Shopify or WooCommerce?

Use the CSV download. Shopify accepts bulk discount imports via apps (or Shopify Plus native); WooCommerce via coupon-import plugins. Amazon accepts one-per-customer promotion code lists as plain uploads. Every platform starts from exactly this kind of code list.

Are the generated codes stored anywhere?

No. Generation runs entirely in your browser with crypto.getRandomValues — nothing is uploaded, logged or stored by this site. Close the tab and the codes exist only where you pasted them.

More merchant tools