1. Home
  2. Tools
  3. Discount code generator

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.

  • Your own numbers
  • Every formula shown
  • Runs in your browser
Illustration of the StoreVetted home desk

Codes

Runs in your browser

Codes are generated on this page and never sent anywhere.

1Format
2Batch

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

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.