Random Secret Token Generator

A fully client-side random generator for API keys, access tokens, and custom secret strings.

Random Secret Token Generator

Generate random values for API keys, access tokens, or custom secrets directly in the browser.

Pick a token length between 16 and 96 characters.
32 / 96
Choose which character set should be used.
Generated token
••••••••••••••••••••••••••••••••

The token refreshes automatically when the format or prefix changes.

Estimated entropy
192 bits
Active charset
64
Short and solid

Hex works well for short IDs, Base64URL for URL-safe secrets, and alphanumeric for readable general-purpose tokens.

Which format should I use?

Hex works well for short IDs, Base64URL for URL-safe secrets, and alphanumeric for readable general-purpose tokens.

This tool runs only on the client; store production secrets in a secure vault.

What does the random secret token generator do?

This tool generates API keys, access tokens, or custom secret strings directly in the browser. Nothing is sent to a server.

You control the format, length, and prefix behavior if you need one.

Which format should I choose?

Hex is a good fit for short and compact identifiers, while Base64URL is ideal for URL-safe secret values.

Alphanumeric format is a practical middle ground when readability matters for general-purpose tokens.

How should I use the token safely?

Store the token in a secrets manager and avoid writing it to logs or client-side storage.

For production keys, use rotation and least-privilege access as part of your workflow.