Coupon Code Generator

Coupon code generator for random promo codes in bulk, with your own prefix.

Updated

Options

About

About the Coupon Code Generator

Generates up to 500 random coupon or promo codes at once, built from hyphen-separated segments of capital letters and numbers, with an optional prefix such as SAVE or VIP.

Code length is a security setting, not just a style choice. Anyone can guess a short code if your checkout doesn't limit attempts. One 4-character segment has under a million combinations, while the default 3 segments of 4 have about 790 quadrillion. Use longer codes for single-use or high-value discounts, and keep short, readable ones (or a word like SUMMER20 you type yourself) for public codes everyone is meant to use. Every code in a batch is unique, even with the shortest layout. Codes from separate batches aren't compared, so if you generate twice for the same campaign, check the combined list for duplicates before importing it into your store.

Choose what to view about this tool

Guide

Using the Coupon Code Generator

  1. 1

    Step 1

    Enter how many codes you need (1 to 500), how many segments each code has (1 to 6) and how many characters go in each segment (2 to 10).

  2. 2

    Step 2

    Optionally type a prefix. It's turned into capitals and joined to the code with a hyphen, as in SAVE-7K2M-QX9R-4TVN.

  3. 3

    Step 3

    Leave "Avoid confusing characters" on if people will type the codes from an email, receipt or printed card.

  4. 4

    Step 4

    Click "Generate", then "Copy all" to get one code per line, ready to paste into a spreadsheet or your store's import file.

  • Each character is picked with crypto.getRandomValues, so codes can't be predicted from earlier ones
  • "Avoid confusing characters" removes 0, O, 1, I and L, leaving 31 easy-to-read characters instead of 36
  • 1 to 6 segments of 2 to 10 characters, separated by hyphens
  • Optional prefix, automatically turned into capitals, at the start of every code
  • No duplicates within a batch, even with the shortest 2-character codes
  • Numbered results table, and Copy all gives one code per line

Single-use codes for an email list

Generate one code per subscriber, import them into your store as single-use discounts and send each person their own.

Printed cards and flyers

Short codes with look-alike characters removed, so customers don't type a zero for an O at checkout.

Event tickets and access codes

A VIP- prefix plus two 5-character segments for guest-list check-in.

Testing a checkout

A batch of realistic codes for testing discount redemption before a campaign goes live.

Examples

Coupon Code Generator examples

3 worked examples

01

The default batch

10 codes of 3 segments of 4 characters with the prefix SAVE might give SAVE-7K2M-QX9R-4TVN as one of the ten.

02

Short codes for a flyer

50 codes of one 6-character segment, no prefix, with confusing characters avoided, might give H4XJ2P. There's no 0, O, 1, I or L to misread.

03

Event access codes

200 codes of 2 segments of 5 characters with the prefix VIP might give VIP-3RNQK-7YXHM, with about 819 trillion possible codes to guess from.

FAQ

Frequently asked questions

Quick answers to common questions about the Coupon Code Generator.

How long should my coupon codes be?

It depends on who's meant to have them. Public codes printed in an ad can be short, since everyone's allowed to use them. Single-use or high-value codes should be hard to guess, so use at least 8 random characters, or 2 segments of 4. That's about 850 billion combinations with confusing characters removed.

Can the same code appear twice?

Not within one batch. Every new code is checked against the others and redrawn if it's already in the list, so all 500 codes are different even with a single 2-character segment. Separate batches aren't compared with each other. With the default 3 segments of 4 characters a repeat across batches is practically impossible, but with very short codes it's likely, so check the combined list in a spreadsheet before importing.

Which characters can appear in a code?

Capital letters A–Z and digits 0–9. With "Avoid confusing characters" on (the default), 0, O, 1, I and L are left out, so a code like H4XJ2P can't be misread.

How do I get the codes into my store?

Click "Copy all" for one code per line, paste them into a spreadsheet column and import that file in your store's discount settings. The tool only creates the codes. Discount amounts, expiry dates and usage limits are set in your store.

Does it check codes against my store?

No. It can't see your store, so it can't tell whether a code is already in use there. With long codes, a clash is extremely unlikely.

Are the codes random enough to stop people guessing them?

The characters are cryptographically random, so there's no pattern to work out. What stops guessing is length, plus your checkout limiting how many codes one person can try.

Still have a question? Contact us

Report a problem

Coupon Code Generator

What went wrong?
    or paste a screenshot