API Key & Cryptographic Secret Generators
Generate API keys, signing secrets, tokens and identifiers at any strength, in any format. Every byte comes from your browser's cryptographically secure random number generator.
Tools in Generators
- GEN
Random API key generator
Draw 64 to 1024 bits of key material from your browser's CSPRNG, in any encoding.
- GEN
Custom prefix key builder
Build keys with a vendor-style prefix so scanners, logs and engineers can identify them instantly.
- GEN
High-entropy secret generator
Generate signing keys, session secrets and encryption keys at 128 to 1024 bits.
- GEN
Hex & Base64 token generator
Generate tokens at an exact character length in the alphabet your system requires.
- GEN
Bulk key generator & CSV export
Generate up to 1,000 keys with metadata and export as CSV, JSON, SQL or plain text.
- GEN
Webhook signing secret generator
Generate the shared secret your endpoint uses to verify inbound webhook signatures.
- GEN
UUID, ULID & Nano ID generator
Generate UUID v1, v4 and v7, ULIDs, Nano IDs and Base58 identifiers.
- GEN
Provider key format generator
Produce format-accurate fake keys for OpenAI, Stripe, AWS, GitHub and others — for testing detectors.
- GEN
Pronounceable token generator
Generate tokens made of words or syllables, with an honest entropy count.
- GEN
One-time password & PIN generator
Generate OTP codes and PINs, with the attempt-limiting requirements stated plainly.
Choosing the right generator
Every generator here draws from crypto.getRandomValues, the browser's cryptographically secure random number generator. They differ in format, not in quality of randomness, so pick by where the value is going:
- An API key you will issue or configure: the random API key generator, or the custom prefix builder if you want a recognisable
sk_live_-style prefix. - A signing secret for HMAC, sessions or JWTs: the cryptographic secret generator or the webhook secret generator.
- Database identifiers: the UUID, ULID and Nano ID generator. Identifiers are not secrets — UUIDv7 and ULID embed a timestamp by design.
- Hundreds at once: the bulk API key generator exports to CSV.
How much randomness is enough
256 bits (32 bytes) is the right default for keys and secrets. 128 bits is the floor; anything above 256 makes the value longer without making any real attack harder. The entropy calculator converts between bits, character sets and lengths, and the guide on how to generate API keys covers format, hashing and storage.
Frequently asked questions
Is it safe to generate an API key online?
It is safe when the key is generated in your browser and never sent anywhere, which is how every tool on this page works. Load a generator, disconnect from the network and it keeps working — proof that no server is involved. Avoid generators that create the key on their server, because you cannot know what that server logs.
What is the difference between hex and Base64 keys?
Only the encoding. 32 random bytes become 64 hex characters or 43 Base64URL characters; the strength is identical. Hex is easier to handle in shells and configs, Base64URL is shorter and URL-safe.
Should I use a UUID as an API key?
No. UUIDs are identifiers, not secrets: several versions contain timestamps, and many libraries do not use a secure random source. Use 32 random bytes from a dedicated key generator.