API Key Generator
Create cryptographically random API keys and secrets with the prefix and length you want.
Generate API keys
Keys: 0
Entropy per key: —
How to use the API Key Generator
- Choose the alphabet and set the key length you need.
- Enter a prefix such as sk_live_ and pick how many keys to create.
- Click Generate keys, then copy them into your secret store.
Features
- Base64 URL safe, alphanumeric and hexadecimal alphabets
- Custom prefix and length from 8 to 128 characters
- Up to 50 keys generated in one click
- Entropy estimate and one click copy
Advertisement
Frequently Asked Questions
Common questions about the free online api key generator.
Pick an alphabet, set the length and prefix, then click Generate keys. Each key is built from
the browser's secure random number generator.
Yes. The generator uses crypto.getRandomValues, which is a cryptographically secure source,
instead of the predictable Math.random function.
Aim for at least 128 bits of entropy, which is about 22 base64 characters. Thirty two
characters gives you a comfortable margin.
A prefix such as sk_live_ makes keys easy to recognise in code, logs and secret scanners, and
it helps leak detection services spot them.
Keep them in a secret manager or an environment variable, never in source control, and
restrict each key to the smallest scope it needs.
No. Use one key per service or environment so you can revoke a single key without breaking
everything else.
Rotate on a schedule such as every 90 days, and immediately if a key might have leaked, so an
old key cannot be reused.
No. Keys are generated locally in your browser and are never transmitted, logged or stored by
this page.
It is the number of random bits in the key. Sixty four bits is a reasonable floor and 128
bits or more is very hard to brute force.
Yes. The generator is fully responsive and works in any modern mobile browser.
Last updated: October 10, 2026