# Random Alphanumeric Coupon Code Generator

**URL:** <https://community.make.com/t/random-alphanumeric-coupon-code-generator/15793>\
**Category:** Questions\
**Tags:** functions\
**Created:** [September 11, 2023, 6:13pm UTC](https://community.make.com/t/random-alphanumeric-coupon-code-generator/15793 "2023-09-11T18:13:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Terry\_Hopper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/terry_hopper/32/13806_2.png) [@Terry\_Hopper](https://community.make.com/u/Terry_Hopper)\
**Post date:** [September 11, 2023, 7:26pm UTC](https://community.make.com/t/random-alphanumeric-coupon-code-generator/15793/2 "2023-09-11T19:26:24Z")

</div>

Hi @Shashwat_Chopra,

A simple way to generate coupon codes would be to convert unique id to Base 64. Like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/e9b4ffe77eb76f750da0cde14658689e82450832.png)

This example above will give you 16-character code including uppercase (A-Z), lowercase (a-z) and numbers (0-9), but **not all special characters** , only “+” and “/” symbols. Like this:

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/8/812975bca58d241c4d939e0b2809acc806cf07d9.png)

It would be possible to get exactly what you want including special characters using a Repeater module (from Flow Control) and either Set Variables or Switch modules… but this would use a lot of operations. Is that something you’d like to try?

---

_[View the full topic](https://community.make.com/t/random-alphanumeric-coupon-code-generator/15793)._
