Secure generator for developers

Passwords, secrets and keys
in one click

A password and secret key generator for your .env files: JWT secrets, API keys, passphrases, UUIDs and key pairs. Made on your device with cryptographic randomness.

••••••••••••••••••••••••

Generated in your browser with crypto.getRandomValues. Nothing is sent.

Passphrases, .env files, RSA / Ed25519 keys, ULID and more

Everything you need for your secrets

01

Secure password generator

Choose length and character types, avoid look-alike characters and see the strength in bits and the time it would take to crack, before you copy it.

02

JWT secrets and framework keys

HS256, HS384 and HS512 secrets, Auth.js / NextAuth, Laravel APP_KEY, Django SECRET_KEY and Rails secret_key_base, in the exact format each one expects.

03

A whole .env file at once

List your variables, pick a type for each and get the file ready to paste: .env, shell export, docker-compose or JSON. Also API keys with prefix, UUID v4 / v7, ULID and NanoID.

04

Key pairs and total privacy

RSA, ECDSA and Ed25519 key pairs in PEM or JWK for signing JWTs. Everything is created in your browser with the Web Crypto API: nothing is uploaded or saved.

Frequently asked questions

Are the passwords and keys really random?

Yes. SecretKeys uses crypto.getRandomValues and the Web Crypto API, the same cryptographic generator browsers use for HTTPS, with rejection sampling so no character is more likely than another.

Is anything I generate sent to a server or saved?

No. Everything happens inside your browser. There is no account and no database: the session history lives in memory and disappears when you close the tab.

How long should a JWT secret be?

For HS256 use at least 32 random bytes (256 bits); for HS512, 64 bytes. SecretKeys generates them in base64url, ready for JWT_SECRET.

Can it generate a full .env file?

Yes. Add the variable names (JWT_SECRET, DB_PASSWORD, API_KEY…), choose a type for each and copy or download the file. Remember to add .env to your .gitignore.

Is it free?

Yes, completely free, with no sign-up and no limits.