🔐 encrypt.tools
TOKEN · 256-BIT

API Key & Secret Token Generator

Random tokens in hex, Base64, or prefixed formats.

Free · no sign-up · runs locally·

loading tool…
FIELD NOTES

About this tool

Every format here wraps the same foundation: N random bytes from the browser CSPRNG. Choose hex for readability, Base64URL for density, or add a prefix (sk_live_ style) so leaked keys are identifiable in logs and commit scans. 32 bytes (256 bits) is the standard for API secrets.

Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.

COMMAND LINE

Do the same in a terminal

Reproduce or cross-check this tool with standard command-line utilities. For deterministic operations like hashing and encoding, the output matches exactly.

openssl rand -hex 32        # 256-bit token as 64 hex characters
openssl rand -base64 32 | tr '+/' '-_' | tr -d '='   # Base64URL
FREQUENTLY ASKED

Frequently asked questions about API Key Generator

How long should an API key be?+

32 bytes (256 bits) is the standard for API secrets — far beyond brute-force reach. The tool defaults to this.

What format should I choose?+

Hex for readability, Base64URL for compactness, or add a prefix like sk_live_ so leaked keys are identifiable in logs and secret scanners.

Is the token generated securely?+

Yes — from your browser's cryptographically secure random generator, entirely locally.

LEARN MORE
RELATED INSTRUMENTS