Coupon Code Generator

Generate unique, random coupon and promo codes in bulk.

Something not working, or a feature missing?Report a problem or suggest a tool

How to Use

  1. 1Choose how many codes you need and how long each one should be.
  2. 2Add a prefix or suffix if you like, such as SALE- or -2026, and pick the characters.
  3. 3Click "Generate Codes", then copy them or download them as CSV or TXT.

Features

  • Up to 10,000 codes at once, every one unique
  • Your own prefix, suffix and length
  • Leaves out look-alike characters like 0 and O
  • Optional dashes for easier reading
  • Download as CSV or TXT, or copy all
  • Secure random codes, made in your browser

Example

Input

5 codes, 8 characters, prefix SALE-

Output

SALE-K7QM3XPA, SALE-9WTD4HRN, ...

Generate up to 10,000 unique coupon, promo or voucher codes at once, with your own length, prefix and characters. Look-alike characters can be left out so codes are easy to type, and the list downloads as TXT or CSV for Shopify, WooCommerce or a spreadsheet. Codes are made in your browser and never sent anywhere.

Making coupon codes that work

A good coupon code is easy for a customer to type and hard for anyone else to guess. Set how many codes you need and how long each should be, add a prefix such as SALE- or WELCOME10- so you can tell campaigns apart, and generate. Every code in the batch is unique, and each character is picked with your browser's cryptographically secure random generator, so there's no pattern to work out.

How long should the codes be?

UseSuggested lengthWhy
One public code for everyone6–8 charactersShort enough to read off a poster or say out loud
Single-use codes per customer10–12 charactersLong enough that nobody can guess another customer's code
Gift cards and high-value vouchers12–16 charactersWorth protecting; dashes keep them readable

The tool won't make codes that are too easy to find by trial and error. If you ask for a lot of codes with a short length, it asks you to make them longer or allow more characters instead.

Make codes easy to type

  • Leave out look-alike characters. On by default, this drops 0, O, 1, I and L, the ones people most often mistype from a receipt or flyer.
  • Use capital letters and numbers. Most checkouts ignore case, and mixed case only adds confusion.
  • Add dashes for long codes. K7QM-3XPA-9WTD is much easier to read than K7QM3XPA9WTD.

Importing into your store

Download the CSV for a spreadsheet or a discount import: it has one code per row under a code heading. Shopify, WooCommerce, BigCommerce and most bulk-discount apps accept a list like this; set the discount amount, expiry date and usage limit in your store, since the codes themselves carry no discount. Use the TXT file or Copy all to paste the codes into an email tool or mail merge.

Keep the downloaded list somewhere safe until the codes are loaded into your store. Codes aren't saved on this site, so generating again gives a completely new set.

Frequently Asked Questions