Numbers

Custom Format Code Generator

This custom format code generator lets you create random codes in any pattern you define. Use # to represent a random digit, A for a random letter, and * for either — all other characters like dashes, slashes, and spaces are kept exactly as typed. This makes it easy to generate voucher codes such as SAVE-####, product serial numbers like AA-####-AA, booking references, referral codes, or any other structured identifier your application needs. Simply type your pattern and generate as many codes as you need instantly.

Use Cases

  • Discount and voucher code generation
  • Product serial number creation
  • Booking and reservation reference codes
  • Referral and affiliate codes
  • Structured test data generation

FAQ

How do I make a voucher code like SAVE-XXXX?

Type SAVE-#### as your pattern. The # symbols will each be replaced with a random digit, giving codes like SAVE-4829.

Can I include fixed characters in the pattern?

Yes — any character in the pattern that is not #, A, or * will appear exactly as typed. Dashes, spaces, slashes, and letters are all preserved.

What is the difference between # A and * in the pattern?

# generates a random digit 0-9, A generates a random letter, and * generates either a random digit or letter at that position.

How many codes can I generate at once?

You can generate up to 100 codes in one click. For larger batches, click generate multiple times and copy each set.