Token Generator - Generate Random API Keys & Secrets Online

Create cryptographically strong API tokens, secret keys, bearer tokens, and session identifiers in hex, Base64, or alphanumeric format.

This tool runs in your browser.

Generated locally.

How to use

  1. 01Set a length.
  2. 02Generate a token.

FAQ

What are common development use cases for these tokens?

Common applications include API authorization tokens, webhook signing secrets, database authentication keys, CSRF tokens, and session identifiers.

What token output encodings are supported?

You can generate tokens formatted in hexadecimal, standard Base64, URL-safe Base64URL, or customized alphanumeric character sets.

Is there any risk of token collisions when generating in bulk?

No. Cryptographically strong entropy ensures that random 32-character tokens have a collision probability indistinguishable from zero.