Skip to content
apikey.tools
GEN10 tools

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

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:

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.