API Key Generator

Generate cryptographically secure API keys in hex, base64, or alphanumeric formats. Runs offline in your browser — nothing leaves your device.

Format
864128
Generated Keys

How to use

  1. Select a format: Hex for standard API keys, Base64 for compact tokens, or Alphanumeric for readable keys.
  2. Set the byte length (32 bytes = 64 hex chars = 256-bit entropy) and how many keys to generate.
  3. Click Generate and copy the keys to your application.

Frequently asked questions

Is this API key generator cryptographically secure?

Yes — uses crypto.getRandomValues(), the same source as TLS and JWT libraries. Suitable for API keys, tokens, and session IDs.

What format should I use for my API key?

Hex is the most common — URL-safe and widely supported. Base64url is more compact. Alphanumeric is the most human-readable.

How long should an API key be?

32 bytes (64 hex chars) = 256 bits of entropy. This is the same as AES-256 and is considered unbreakable against brute force.

Does this tool send generated keys anywhere?

No. Generation is local, offline, and nothing is logged or stored.

Last updated

Powered by maratool