Key, token and secret generators

Every key and secret on these pages comes from your browser's cryptographic random number generator and is made on your device. We never see it, which is the only safe way for a website to hand you a secret.

13 free tools · all run in your browser

Keys and secrets

Random values your code checks or signs with. Pick the page named after the job; each sets a sensible size and format.

Tokens and hashes

Sign a test JWT, or hash a password the way your login code should.

Logins and access

Things a person types or a server trusts: passphrases, PINs and SSH key pairs.

Special UUIDs

Name-based and time-based UUIDs for systems that need a specific version. For everyday v4 and v7, use the main UUID generator.

Which one do I need?

I need to…Use
An API key for my own serviceAPI key generator
An AES-256 key or HMAC keyEncryption key generator
A secret to sign webhooks or sessionsWebhook and session secret generator
APP_KEY for a Laravel .env fileLaravel APP_KEY generator
A token to test my JWT verificationJWT generator
A key pair to log in to a server over SSHSSH key generator
A password I can actually rememberPassphrase generator

How the keys are made

Each tool reads random bytes from crypto.getRandomValues, the browser's cryptographically secure generator, the same source Web Crypto uses for its own keys. Where a value must come from a fixed set of characters, we throw away random bytes that would make some characters more likely than others (rejection sampling), so every character is equally likely.

Nothing is made on a server and nothing is sent back. If you reload the page, the old values are gone; we keep no copy.

How long should a secret be?

Strength comes from the number of random bits, not the number of characters. A 256-bit secret is 32 random bytes: 64 characters in hex, or 43 in Base64url. A 32-character key from letters and digits (base62) carries about 190 bits. Either is far beyond guessing.

For HMAC signing, RFC 7518 requires a key at least as long as the hash output: 256 bits for HS256, 384 for HS384 and 512 for HS512. The JWT generator warns you when a key is shorter.

Generated here, stored by you

A secret is only as safe as where you keep it. Put it in your platform's secret store or an environment variable that is not committed, and never in front-end code or a public repository. Rotate it if it was ever pasted somewhere public.

Questions

Is it safe to generate a secret on a website?

Only if the site cannot see it. These tools make every value in your browser with crypto.getRandomValues and send nothing to a server. You can check by opening your browser's network panel while you generate.

Hex, Base64 or base62?

Same strength for the same number of random bytes; only the text form differs. Hex is easiest to read and paste, Base64url is shortest and URL-safe, and base62 suits keys that people copy by double-clicking.

Should I use bcrypt from this page in production?

Use it to make test hashes or to check a hash you already have. In production your server should hash each password itself when the user sets it.

// go deeper
Hash passwords in Node.js: SHA-256 vs scrypt, measured
read the guide →
// go deeper
JWTs explained: decode one and know what to trust
read the guide →