About Random Token Generator

Random Token Generator produces unpredictable strings from the browser's cryptographic random source: hex, standard Base64, URL-safe Base64, a version 4 UUID, or a string built from a named or custom alphabet.

Custom-alphabet tokens are rejection-sampled so every character is equally likely. Nothing is sent anywhere.

How to use it

  1. Pick a format.
  2. Set the byte count or length, and how many tokens you want.
  3. Generate, then copy the list.

Common questions

How random is it?

It uses crypto.getRandomValues, the same source browsers use for cryptographic keys. It is suitable for API keys, session identifiers, and salts.

What does bytes mean versus length?

For hex and Base64 you choose the number of random bytes, and the string length follows from the encoding. For a custom alphabet you choose the character length directly.

Why the base58 alphabet?

It leaves out characters that are easy to confuse: zero, capital O, capital I, and lowercase L. It is common for identifiers people might read aloud or type.

Are the tokens stored?

No. They exist only in the page until you copy or leave.