# LICENSE KEY • How to generate a license key automatically for a digital product?

{% hint style="success" %}
When you attach a file (by going to the Digital Products tab), there is a checkbox to generate a unique and random license key for each purchase. **Just make sure you follow the guide below to properly tag and assign license keys**
{% endhint %}

{% content-ref url="../most-asked-questions/how-to-configure-and-sell-license-keys" %}
[how-to-configure-and-sell-license-keys](https://penida.gitbook.io/big-digital-download/most-asked-questions/how-to-configure-and-sell-license-keys)
{% endcontent-ref %}

<figure><img src="https://505444084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6E2RYbkHaFzNulwI9D72%2Fuploads%2FwjVgbDFwpn6fMK51QT9M%2Fimage.png?alt=media&#x26;token=a209b2d6-8922-4e9d-b233-34ca73ba628c" alt=""><figcaption></figcaption></figure>
