API Key Generator
Your data never leaves your browserGenerate API-key-style strings with an optional prefix and custom length.
Options
Brie — Bug Reporting Tool
Building secure features?
Brie automatically redacts sensitive data from captures and keeps everything private — no data leaves your control.
About API Key Generator
Generate cryptographically secure API keys using your browser's crypto.getRandomValues API. Customize the prefix (e.g. sk_, pk_, api_), key length, and how many keys to generate. Perfect for development, testing, and bootstrapping new services.
How to use
- Set an optional prefix (e.g. sk_, pk_, api_).
- Set the key length (random alphanumeric characters after the prefix).
- Set how many keys to generate.
- Click Generate to produce the API keys.
More Security & Crypto
Frequently Asked Questions
FAQs about API Key Generator
What characters are used in the key?
API keys use alphanumeric characters only (A–Z, a–z, 0–9) for maximum compatibility with headers, query parameters, and storage systems.
Is the output cryptographically secure?
Yes. Keys are generated using crypto.getRandomValues(), a cryptographically secure RNG built into your browser.
What prefix should I use?
Common conventions: sk_ for secret keys, pk_ for public keys, api_ for generic API keys. Stripe uses sk_live_, sk_test_, pk_live_, pk_test_. Use whatever fits your naming convention.
Is my data sent to a server?
No. All generation happens entirely in your browser. Nothing is transmitted or stored.
Can I generate multiple API keys at once?
Yes. Set the Count option to generate up to 50 keys at once.