Number of codes

Code length

Characters

Prefix

Suffix

Possible unique codes: 852,891,037,441

Generate codes

## Your coupon codes

Copy allDownload CSV

Press Generate codes and your codes will appear here.

Codes ready? Give them a checkout.

## Run your next promotion from your own store

Crevio builds your store and Stripe checkout, and your discount codes work on every product.

No credit card required3,000+ integrationsLive in minutes

## How the coupon codes are generated

Each code is built from random characters in the set you choose, using your browser's cryptographic random number generator, so codes do not follow a pattern someone could guess. Your prefix and suffix are added around the random part, and any duplicates in a batch are removed. Codes are created on your device and are not sent to or stored by us.

The number of possible codes is the number of characters to the power of the code length. The default readable set has 31 characters (it leaves out 0, O, 1, I and L, which customers often mistype). At 8 characters that is 31^8, or about 853 billion possible codes.

That number is what keeps single-use codes safe. If you issue 100 codes out of 853 billion, a random guess has about a 1 in 8.5 billion chance of hitting a real one. For codes you share publicly, like SPRING20, length does not matter; for unique one-per-customer codes, use 8 or more random characters.

## Related tools

[Discount Profit Calculator](/tools/discount-impact-calculator)[Product Pricing Calculator](/tools/product-pricing-calculator)

## Frequently asked questions

### How do I create a promo code?

Choose how many codes you need, their length and the characters to use, add an optional prefix like SPRING-, and press Generate codes. Then copy the list or download it as a CSV and import it into your store or checkout, where you set the discount amount, expiry date and usage limits.

### Are the generated coupon codes unique and secure?

Yes. Codes are made with your browser's cryptographic random number generator and duplicates within a batch are removed. An 8-character code from the readable set has about 853 billion possible values, so issued codes cannot realistically be guessed. Codes are generated on your device and never stored by us.

### How long should a coupon code be?

Public codes you share in an email or post can be short and memorable, like SAVE20, because everyone uses the same code. Unique single-use codes should have at least 8 random characters so customers cannot guess other valid codes. Longer than 12 characters gets hard to type on a phone.

### What makes a good coupon code?

A good coupon code is easy to read and type: uppercase letters and numbers, no look-alike characters such as 0 and O or 1 and I, and a prefix that tells you which campaign it came from, like BFCM- or NEWSLETTER-. Keep the discount details in your store settings, not in the code itself.

### Are coupon codes case sensitive?

It depends on the platform, but many are not. Stripe promotion codes and Shopify discount codes are matched regardless of case, so SAVE20 and save20 are the same code. That is why mixing upper and lower case letters adds little security there; use a longer code instead.

### How many coupon codes can I generate at once?

Up to 500 codes per batch, each 3 to 32 characters long plus your prefix and suffix. If you need more, generate several batches with different prefixes, such as A- and B-, so codes from different batches can never collide.

Canonical URL: https://crevio.co/tools/coupon-code-generator
