API Key Generator

Generate a cryptographically secure API key in your browser — 128-bit or 256-bit, Hex or Base64URL. Copy it, or share it securely through an encrypted PrivateNote link.

What type of API key do |

Custom Configuration

Number of API keys to generate (1-50)

Cryptographic strength in bits

Encoding format for the random token

Prefix to add before the token (e.g., "sk_", "pk_")

Separator when copying multiple keys

Generated API Keys (1)

sk_M8Rl9FXa6ZvWFq3b6Hcck8X9SBqi_2XjNjg7RDr5Izo

Security Information

All API keys are generated locally in your browser using the Web Crypto API. Your keys never leave your device. The format follows modern conventions: prefix + Base64URL(randomBytes).

Need to send the API key to someone?

Don't paste credentials into email or chat. Share the generated key through an encrypted PrivateNote link.

Opens PrivateNote with your key pre-filled. Review it, then create a self-destructing link.

128-bit and 256-bit API keys (Hex or Base64URL)

This random API key generator creates a secure token locally with the Web Crypto API. Use 128-bit for client tokens and 256-bit for server secrets, then encode as Hex or Base64URL. Nothing is stored or sent to a server.

Further reading

Practical security guides from the blog

Use the generator, then go deeper on password strength, passkeys, secure sharing, and account hygiene.

View all posts

Frequently Asked Questions