# Coupon codes *nobody can guess or mistype*

A single public code like SAVE20 can travel far beyond the customers you sent it to, and codes that mix O and 0 are easy to mistype at checkout. Generate a batch of unique, single-use codes with your campaign prefix, made from characters that can't be confused, and download them as a CSV.

Some links may earn us a commission at no cost to you. Drafted with AI, checked by a human. [How we earn](https://storevetted.com/disclosure/).

- Your own numbers
- Every formula shown
- Runs in your browser

## How the math works

Each code is drawn from your browser's cryptographic random number generator (crypto.getRandomValues), duplicates are dropped, and the page shows how many combinations the format allows. The default set leaves out 0, O, 1, I and L.

Shopify's help centre, opened 15 Nov 2026 (Asia/Kuala\_Lumpur / MYT), advises avoiding special characters in discount code names so they work in checkout URLs, and caps each store at 20,000,000 unique discount codes. The tool uses letters and digits only. Set the usage limit, dates and minimum order on the discount itself in your admin.

[Create discount codes in Shopify](https://storevetted.com/go/shopify)

From the guides

## Related guides

[All guides](https://storevetted.com/guides/)

- [Gift card and promo abuse](https://storevetted.com/guides/gift-card-promo-code-abuse-shopify/)
- [Leftover Black Friday promo codes in January](https://storevetted.com/guides/leftover-black-friday-promo-codes-january/)
- [Schedule your Black Friday sale](https://storevetted.com/guides/schedule-black-friday-sale-shopify/)

Keep going

## Related free tools

[All 81 tools](https://storevetted.com/tools/)

[Sale price calculator](https://storevetted.com/sale-price-calculator/): What the discount does to margin.

[UTM builder](https://storevetted.com/utm-builder/): Tag the links you send codes in.

[Discount profit calculator](https://storevetted.com/discount-profit-calculator/): Is the sale worth it?

[SKU generator](https://storevetted.com/sku-generator/): Consistent variant codes.

## FAQ

How long should a discount code be?

Eight random characters from 31 symbols give over 850 billion combinations, so guessing a valid code is impractical even with thousands issued.

Can I use these codes in Shopify?

Yes. They use letters and digits only, which Shopify's help centre recommends. Add them to a discount in your admin or with a bulk-code app.

Are the codes stored anywhere?

No. They are created in your browser and disappear when you leave the page, so download the CSV first.

Is the Shopify link an affiliate link?

Yes. The Shopify /go/ link is a sponsored link. StoreVetted may earn a commission at no extra cost to you.

---

Canonical: https://storevetted.com/discount-code-generator/  
Publisher: StoreVetted (https://storevetted.com/). Some links may earn a commission at no cost to you: https://storevetted.com/disclosure/  
Site index for agents: https://storevetted.com/llms.txt
