API Key Generator
Generate secure random API keys and tokens in Base62, hex, Base64url or UUID format, with an optional prefix like sk_live_. Made in your browser, never stored.
Runs in your browser. Nothing is uploaded.
About API Key Generator
API Key Generator creates long random keys suitable for authenticating services, webhooks and internal tools. Choose Base62 (letters and digits, 238 bits), hex or Base64url (256 bits each), or a standard UUID v4.
Add a prefix such as sk_live_ or myapp_ so keys are easy to identify in logs and can be caught by secret scanners if they leak into a repository. Store only a hash of each key on your server, and show the full key to the user once.
How to use API Key Generator
- Set the options you want.
- Your result is generated straight away. Press Generate again for a new one.
- Copy the result with one click.
Frequently asked questions
How long should an API key be?
At least 128 bits of randomness. Every format here except UUID gives 238 to 256 bits.
Are UUIDs good API keys?
A v4 UUID has 122 random bits, which is acceptable, but longer keys are a better default.
Is API Key Generator free and private?
Yes. API Key Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.