API Key Generator

Generate cryptographically secure API keys instantly in your browser. Choose bit length, character type, prefix, and separator — no server, no uploads

CODE
Strength

Generated using crypto.getRandomValues — cryptographically secure, entirely in your browser.

Runs 100% Locally in Your Browser

This tool processes your data entirely on your device. Nothing is uploaded, stored, or sent to any server.

No Uploads Privacy First Secure by Default

Frequently Asked Questions

How are the API keys generated?
Keys are generated using crypto.getRandomValues — the browser's cryptographically secure random number generator — so they are suitable for real-world use.
What is the difference between hex and alphanumeric API keys?
Hex keys use characters 0–9 and a–f (16 possible values per character); alphanumeric keys use 0–9, a–z, and A–Z (62 possible values), giving more entropy per character for the same length.
What bit length should I choose for an API key?
128-bit provides good security for most APIs. 256-bit is the most common production standard. 512-bit is overkill for typical use but available for maximum security requirements.
What does the prefix option do?
A prefix is a fixed string prepended to every generated key, e.g. 'sk_live_'. This is a common pattern used by services like Stripe and OpenAI to identify the key type at a glance.
Are my generated API keys stored or logged anywhere?
No. Generation runs entirely in your browser — keys are never transmitted, stored, or sent to any server.
Can I generate multiple API keys at once?
Yes. Set the count to any number up to 500 and all keys are generated and displayed in one click.