How many unique coupon codes do you need?

Choose how many codes, how long, a prefix and the characters to use. You get that many codes, every one different, made with your browser's secure random generator, as a plain list or a CSV for WooCommerce or Shopify.

Look-alikes

None of these will be made again, whatever their case: WooCommerce does not tell capitals from small letters in coupon codes.

How it works

  • Secure randomness. Every character comes from your browser's crypto.getRandomValues, the generator meant for security, never from Math.random. Numbers that would favour some characters over others are thrown away and drawn again, so every character is equally likely.
  • Every code different. Each new code is checked against the ones already made and the ones you already have, and drawn again if it is taken. The prefix and the dashes are added after the random part, so they never make two codes look alike.
  • Hard to guess. The tool works out how many codes your settings allow and how often a random guess would hit one of yours. When you ask for a large share of what is possible, it warns you to make the codes longer.
  • Files for your shop. The WooCommerce CSV uses the column names in the documentation and sample file of the Customer / Coupon / Order CSV Import Suite, an extension listed on WooCommerce.com: code, type, description, amount, expiry_date, individual_use, usage_limit and usage_limit_per_user. The Shopify file has one column, named code.

Sources, read in November 2026: WooCommerce, Customer / Coupon / Order CSV Import Suite and Managing Coupons; Shopify Help Center, Exporting discounts and Discount codes; Shopify Admin API, discountRedeemCodeBulkAdd.

What it does not do

It does not create the discount in your shop and cannot see the codes your shop already has, unless you paste them in. Nothing is stored: download the codes before you close the page.

Shopify's Help Center says you cannot import discount codes from a CSV file in the Shopify admin. The Shopify file here is a one-column list, named code after the field Shopify's Admin API uses to add codes in bulk (up to 250 at a time). Use it with a bulk discount code app or a developer, and check the app's own instructions for the column name it expects.

Shopify counts at most 20,000,000 unique discount codes per store, and asks you to avoid special characters in discount codes. Its help does not say whether a dash counts as one; if in doubt, choose No dashes.

Questions

How long should the codes be?

Long enough that guessing is hopeless. With capital letters and numbers, look-alikes left out, 8 characters allow about 852 billion codes: with 1,000 codes out there, a random guess hits one about once in 853 million tries. Watch the line above the button as you change the settings.

Why leave out 0, O, 1, I and L?

On a printed card or a phone screen they are easy to confuse, and a customer who types the wrong one sees "invalid code". Leaving them out costs a little length and saves support emails.

Do capitals matter in a coupon code?

WooCommerce says coupon codes are not case sensitive, so SAVE10 and save10 both work. The codes here use capitals only, so two codes never differ by case alone.

Are the codes sent anywhere?

No. They are made inside your browser and the page sends nothing to a server. The files are made in your browser too.