ToolPuma Logo

Random Token Generator

Generate random hex, alphanumeric or base64 tokens.

What Is a Random Token Generator?

The Random Token Generator produces cryptographically secure random tokens in hex, URL-safe base64, or alphanumeric form. You can control the entropy size in bytes, making it ideal for API keys, secrets, and verification codes.

How to Use This Random Token Generator

  1. 1
    Choose a typeSelect hex, alphanumeric, or base64.
  2. 2
    Set the sizeAdjust the number of bytes of entropy.
  3. 3
    GenerateCreate five tokens and copy them individually or as a list.

Frequently Asked Questions

It is base64 encoding that uses '-' and '_' instead of '+' and '/', and omits padding. It is safe to use in URLs and file names.
For API secrets, at least 16 bytes (128 bits) is recommended. This tool allows up to 64 bytes (512 bits) of entropy.
Using the browser's cryptographically secure random number generator. Tokens are created locally and are not stored or transmitted.