Random Code Generator
and API

Create random codes for coupons, vouchers, passwords, serial numbers or activation codes for free.

How to Generate Random Codes:

  • Enter the amount of codes you need
  • Define a pattern for the codes
  • Select the characters that should be used
  • Click on "Generate" and copy the codes

Please enter a number between 0 and 1000.

Please enter a pattern with a max. length of 32 characters.

Please enter some characters.

Creating Codes...

Looking for a Way to Distribute Your Codes?

VoucherJet offers you all kinds of ways to distribute codes via email, chat bots a simple link and many other ways.

How to Use Our JSON API to Generator Random Codes

To generate codes programmatically you can use our free API to generate up to 10000 codes per request.
This API will only generate random codes. If you want to manage or redeem individual codes you should sign up for VoucherJet and use the full feature set.

Need help or got a question? Send us an email: contact@voucherjet.com.

Example Request

curl --header "Content-Type: application/json" \
--request POST \
--data '{ "count": 100, "pattern": "DE-####", "characters" : "0123456789" }' \
https://api.voucherjet.com/api/v1/p/generator
count - The number of codes, limited to 10000
pattern - A template for the codes, # will be replaced by random characters
characters - The set of characters that will be randomly selected for a code

Example Response

{
   "codes":[
      "DE-4877",
      "DE-2717",
      "DE-4984",
      "DE-8238",
      ...
      "DE-6312",
      "DE-7544",
      "DE-6920",
      "DE-7557"
   ]
}
codes - The list of unique codes