Referral Rock

Gift card code generator

Create unique gift card and voucher codes to issue at your business. Start from a preset or set the count, length, prefix, and pattern yourself, then copy the codes or download them as a CSV.

Quick start

Settings

# becomes a random character. All other characters are literal. Example: ####-#### gives 8-character codes with a dash in the middle.

Results

Click "Generate codes" to create your first batch.

How the gift card code generator works

1

Choose a preset

Pick a template that fits the codes you need, or dial in the count, length, prefix, and pattern yourself.

2

Generate the codes

Click Generate. The codes are built in the browser and checked against each other, so every code in the batch is unique.

3

Copy or download

Copy the full list to the clipboard, or download a CSV to open in Excel or import into another system.

Gift card code formats and why they matter

Gift card codes guard real monetary value, so the format is worth thinking through. A 16-character code split into four groups, like the formatted preset, makes guessing impractical because the number of possible combinations is enormous. Grouping the characters with hyphens also makes codes easier for customers to type accurately from a printed card or receipt.

When codes will be read over the phone or keyed in from handwriting, the unambiguous character set removes 0, O, 1, I, and L. Those characters look similar enough to cause mix-ups, and a customer who misreads one letter ends up with a code that does not work. Dropping the ambiguous characters keeps redemption smooth without affecting the security of the code.

Frequently asked questions

A tool that creates batches of unique codes you can issue as gift cards or vouchers. You control the format, length, and branding so the codes fit how your business operates.
Up to 1,000 codes per batch. If you need more, run several batches and give each one a different prefix so the sets cannot overlap.
Yes, within a batch. Every code is checked against the others before it makes the list, so a batch never contains duplicates. For one guaranteed- unique set, generate all the codes you need in a single batch.
Codes are built with the browser's cryptographically secure random number generator. A longer code that mixes letters and numbers has far more possible combinations, so use the formatted preset when the codes carry real value.
No. The generator is completely free and there is no signup. Use the codes however you want.
No. Codes are generated in the browser and never sent to a server, so only you ever see them. Download the CSV before closing the tab, because the codes are gone when you leave.

Turn gift cards into referral rewards automatically

Gift cards are one of the most popular referral rewards. Referral Rock issues them automatically when a referral converts, so you never have to track redemptions by hand.