Security Tools

API Key Generator

Generate cryptographically random API keys in hex or Base64URL format, with an optional prefix like "sk_live" — generated entirely in your browser.

How to use this tool

  1. 1Choose a key length and format.
  2. 2Optionally add a prefix.
  3. 3Click Generate to create a batch of keys, and copy any one.

Frequently asked questions

How is randomness generated?+

Using the browser's cryptographically secure crypto.getRandomValues API, not Math.random, which is appropriate for generating secrets.

Should I store these keys anywhere?+

These are generated locally and not saved by this tool — store them in a secure secrets manager or environment variable in your own systems.