Numbers
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.
Type SAVE-#### as your pattern. The # symbols will each be replaced with a random digit, giving codes like SAVE-4829.
Yes — any character in the pattern that is not #, A, or * will appear exactly as typed. Dashes, spaces, slashes, and letters are all preserved.
# generates a random digit 0-9, A generates a random letter, and * generates either a random digit or letter at that position.
You can generate up to 100 codes in one click. For larger batches, click generate multiple times and copy each set.