License key generator
This free tool makes random license keys for software you sell. Choose the number of groups, their length and an optional prefix, then copy the keys or download a CSV. Keys are made in your browser with its cryptographic random generator; nothing is uploaded.
Updated by the Licers team
Security: 80 bits · Strong
How long should a license key be?
What matters is how many keys are possible, measured in bits. With 32 characters per position, each character adds 5 bits.
| Format | Bits | Good for |
|---|---|---|
XXXX-XXXX | 40 | Short-lived vouchers only |
XXXX-XXXX-XXXX | 60 | Small products with a rate-limited server check |
XXXX-XXXX-XXXX-XXXX | 80 | The usual choice, and the Licers default |
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX | 125 | More than anyone needs; harder to type |
At 80 bits, the chance of any two of a million keys being equal is about 1 in 2 trillion.
Why some letters are missing
The default alphabet leaves out I, O, 0 and 1, because people confuse them when typing a key from an email or a printed card. That leaves 32 characters, which also divides evenly into random bytes, so no character is more likely than another.
A key is only as good as the check
A random key proves nothing by itself. Your app has to ask a server whether it is real, whether it has expired and how many computers use it, and the answer has to be signed so it cannot be faked.
- Do not ship the list of valid keys inside your app.
- Do not use a checksum as protection: anyone can read it out of your program and write a key generator.
- Do check the key online with a signed answer, or use a signed file for offline machines.
You can import the CSV from this page into Licers and validate the keys from any of seven languages.
Questions and answers
Are the keys unique and random?
They come from your browser’s cryptographic random generator and duplicates within a batch are removed.
Do you store the keys?
No. They are made on your computer and never sent anywhere.
Can this make keys for Windows, games or other companies’ software?
No. These are random strings for software you own. They unlock nothing else.
How do I make a key my program can check without a server?
Sign the license data with a private key and verify it with the public key inside your app. See how license key algorithms work.