Skip to content

Random Token Generator

Generate cryptographically secure random tokens — hex, Base64, alphanumeric or UUID.

About Random Token Generator

Generate cryptographically secure random tokens for API keys, session secrets, salts, nonces and more. Choose hexadecimal, URL-safe Base64, alphanumeric strings or UUID v4, control the entropy or length, and generate many at once. All tokens are produced locally with the Web Crypto API.

How to use Random Token Generator

  1. 1

    Pick a token format: hex, Base64, alphanumeric or UUID.

  2. 2

    Set the number of bytes/characters of entropy.

  3. 3

    Choose how many tokens to generate.

  4. 4

    Copy a single token or all of them at once.

Frequently Asked Questions

Are these tokens secure enough for production secrets?

Yes. They're generated with the Web Crypto secure random source. For secrets, 32 bytes (256 bits) of entropy is a common, strong choice.

What's the difference between hex and Base64?

Both encode the same random bytes. Hex is longer but uses only 0-9a-f, while URL-safe Base64 is more compact and safe to use in URLs.