Skip to content

Free tools for SEO, AI search, Google Ads and local businesses. No sign-up. See all tools

DigitalSnot
Step 2 · Price, ship and profit

Coupon Code Generator: unique discount codes, terms and print cards

Make many unique discount codes, with the offer terms, CSV and TXT files and coupon cards to print.

You need: Your offer details Shopify WooCommerce

How to use the Coupon Code Generator

Read what the guide says

This is the Coupon Code Generator.

Make many unique discount codes, with the offer terms,

CSV and TXT files and coupon cards to print.

Choose "Prefix and random characters" or "A pattern",

the characters to use and how many codes you need. Paste any codes you already use,

so new ones never repeat them.

Or press Try an example to fill in sample details.

Fill in the offer: the discount, any cap, the minimum order,

the start and end dates and how often a code can be used.

Copy the codes or download the CSV or TXT file, copy the terms,

and print the coupon cards. Set the same terms on the discount in your shop before you share the codes.

It does not create discounts in your shop, check which codes have been used, or connect to Shopify, WooCommerce or any marketplace.

It runs in your browser, so nothing you type is uploaded.

Try it free on this page.

  • Free to use
  • Runs in your browser
  • No sign-up

Runs in your browser. Codes are made on this device and kept only in this browser; nothing is uploaded, and no shop account is connected.

1. Your codes

How codes are made

The same at the start of every code. Letters, numbers, - and _ only. Add a hyphen at the end if you want one.

3 to 20. Our suggestion: at least 6, so codes are hard to guess.

Characters to use

1 to 10,000 at a time. Every code is different.

+ Codes you already use (optional)

New codes never repeat these. Compared without regard to capital letters (our check, to be safe).

2. The offer

For the terms to show with the codes and for the printed cards.

Left blank, it is made from the offer.

%
₹

"Up to ₹300 off". Set the same cap in your shop, if it has one.

₹
3. Print sheet (A4)

Your codes show here

Choose a prefix or pattern and how many codes you need. Press Try an example to see 200 codes for a Diwali offer.

Share this free tool

Embed this tool on your websiteFree. Paste one code; it runs in your visitors' browsers.

Copy this code into a page of your site. The tool sets no cookies and sends nothing your visitors type to us. Change height="760" if it needs more room.

Preview the embed

How to embed a free tool on your website

Read what the video says

Want one of our free tools on your own website?

Here's how to embed it, in about a minute.

Open any of our browser tools, such as the GST Calculator.

Below the tool, find Embed this tool on your website, and open it.

Press Copy code.

The code is a frame with the tool in it, plus a short credit line that links to the tool's page.

In your website's editor, add an HTML block where you want the tool, and paste the code.

In WordPress, that's the Custom HTML block.

If the tool needs more room, change the height in the code.

Publish the page, and the tool works on your site.

Here, it's on a sample page for a made-up sweet shop.

Visitors use it right there. It sets no cookies, and sends nothing they type to us.

The credit line under it links to the tool on DigitalSnot.

You can embed as many of our free browser tools as you like.

How it works

  1. Choose "Prefix and random characters" or "A pattern", the characters to use and how many codes you need. Paste any codes you already use, so new ones never repeat them. Press Try an example to see 200 codes for a Diwali offer.

  2. Fill in the offer: the discount, any cap, the minimum order, the start and end dates and how often a code can be used. The terms and the cards update as you type, and the checks flag codes that are easy to guess or an end date that has passed.

  3. Copy the codes or download the CSV or TXT file, copy the terms, and print the coupon cards. Set the same terms on the discount in your shop before you share the codes.

About the Coupon Code Generator

Choose a prefix and how many random characters each code gets, or a pattern such as DIWALI-XXXX-##, and how many codes you need, up to 10,000 at a time. The tool makes codes that never repeat each other or a list of codes you already use, and can leave out look-alike characters such as 0 and O. Fill in the offer, minimum order, dates and limits to get the terms to show next to the codes, then copy the codes, download them as CSV or TXT, or print A4 sheets of coupon cards. It runs in your browser with your device's own random numbers: nothing is uploaded and no shop account is connected.

How the codes are made

Each random character comes from your browser's cryptographic random number source (crypto.getRandomValues), with every allowed character equally likely. Codes are in capital letters, and the prefix and pattern keep only letters, numbers, hyphens and underscores (our suggestion, as other characters are easy to mistype). The tool shows how many different codes your settings allow and how often a random guess would find a working code (our measure), and asks for more random characters when that is too easy. Codes that a spreadsheet would change, such as all-number codes starting with 0, are skipped.

Using the codes in your shop

Shopify Help says discount codes cannot be imported to a store with a CSV file: you set up the discount in the admin, with its minimum purchase, active dates and maximum uses, and apps or developers load many unique codes through Shopify's Admin API. In WooCommerce each coupon has settings such as minimum spend, expiry date, individual use only and usage limits, and the tool gives a CSV with WooCommerce's REST API field names for a developer. Either way, set the same terms in your shop as on the cards.

What this tool cannot do

It does not create discounts in your shop, check which codes have been used, or connect to Shopify, WooCommerce or any marketplace. It does not know your shop's rules for code length or capital letters, so test one code at checkout before you share a batch. Codes made here are kept only in this browser; download them before you clear it. The notes on offers and GST are not legal or tax advice; check with your CA or lawyer.

Frequently asked questions

How many random characters should a code have?

Our suggestion is at least 6, and 8 for codes worth a lot. With letters and numbers and the look-alikes left out, 8 random characters allow over 85,000 crore codes, so a random guess almost never finds one of yours. The tool shows the odds for your own settings (our measure).

Can I import these codes into Shopify?

Shopify Help says discount codes cannot be imported to a store with a CSV file. You create the discount in the Shopify admin, and an app or a developer can add many unique codes to it through Shopify's Admin API, which takes up to 250 codes at a time. Give them the TXT or CSV file from this tool.

Does WooCommerce import coupons from a CSV?

We did not find a coupon import built into WooCommerce in its documentation. Coupons are set up one by one, or in bulk by a developer through WooCommerce's REST API or by an extension. The developer CSV here has one row per code, with columns named after the REST API's coupon fields.

Can I say the offer is limited or ends soon?

Only if it is true. False urgency or scarcity is one of the dark patterns listed in the CCPA's Guidelines for Prevention and Regulation of Dark Patterns, 2023. Give a real end date, stop the codes on that date, and show the terms next to the code, in the same language as the offer.

Are my codes saved?

The last batch and your settings are saved only in this browser, so the print sheet matches the file you downloaded. Nothing is uploaded. Press Clear to remove them, and download the codes first if you still need them.

Next in this step Wholesale Price List Builder Open it

More e-commerce tools

All 30 e-commerce tools

Want help selling online?

Tell us about your shop and what you want it to sell. We reply within one business day.

Talk to us

Want us to fix what the tool found?

Tell us about your business and what you want to grow. We reply within one business day with next steps, not a sales script.

  • A reply within one business day
  • A quick look at your site and search visibility before we talk
  • Your details are only used to answer your enquiry

Prefer email or a call?

hello@digitalsnot.com

+91 70079 75411