Runs in your browser · nothing uploaded

Random Secret Generator for Apps and Webhooks

Developers constantly need random strings: a session secret, a webhook signing secret, a shared token between two services or a placeholder in a .env file. This generator produces them with the browser’s cryptographic random number generator, with control over length and characters so the value works in your config.

How much randomness you need

For secrets used to sign cookies, tokens or webhook payloads, a common target is 256 bits of randomness. With letters and numbers only, that means about 44 characters or more; the bits readout under the password shows exactly how much you have. At the maximum of 64 alphanumeric characters you get roughly 373 bits.

Letters and numbers are the safest choice for secrets, because they never need escaping in JSON, YAML, URLs, shell variables or HTTP headers.

When to use a different tool

If a library expects a key in a specific format, such as raw bytes, hex or base64 of a certain length, generate it in that format with your platform’s tooling, for example openssl rand -hex 32. API keys issued by a provider like a payment or email service must come from that provider’s dashboard; you cannot create them yourself. Use this generator for secrets you define, where any long random string is accepted.

Questions

Is a browser-generated secret secure enough for production?

The generator uses crypto.getRandomValues, the same cryptographically secure source browsers use for encryption, and it rejects biased values so every character is equally likely. Nothing is sent over the network. For keys that must be in a binary or encoded format, use your platform’s key tools instead.

Why do the numbers skip 0 and 1?

Look-alike characters such as 0, O, 1, l and I are removed so values are easier to read and type. It slightly lowers the randomness per character, which the bits readout already accounts for. Adding a few characters of length more than makes up for it.

Can I generate an API key for a third-party service here?

No. Keys for services such as payment processors or cloud providers are created by that service and tied to your account. This tool is for secrets you choose yourself, such as a webhook secret you enter on both sides, a session key or an internal service token.

Protect your business with a security review and hardening from VYZEON.

See cybersecurity

More ways to use the Password Generator