Random Token Generator

Generate random bytes with the browser cryptographic API and display them as Base64URL without padding or hexadecimal.

How to use Random Token Generator

  1. Choose Random bytes from 16 to 256.
  2. Select Encoding: Base64URL or Hex.
  3. Click Run tool to generate the value.
  4. Copy the value only into an appropriate secure application configuration; do not publish it.

A practical example

Options: {
  "bytes": 32,
  "encoding": "Base64URL"
}

Example output:
vB0hbMV5zWDd1vkWResIOFvQiAO3BPaBqbluAMazNoA

Limitations and common mistakes

Generation does not create an API credential at a provider or store the value in a secrets manager. Keep real generated secrets out of screenshots, logs, public files and URLs.

Questions about Random Token Generator

Does this register a credential with a service?

No. This tool generates random data. Provider-issued API keys must be obtained from that provider.

Can I recover a previously generated value?

Do not rely on recovery from this tool. Store a real credential through your own appropriate secure workflow.

How long is the hexadecimal output?

There are two hexadecimal characters per random byte; a 256-bit value is 32 bytes and produces 64 hexadecimal characters.

Supported input and output

Random bytes: whole number from 16 to 256. Encoding: Base64URL or Hex.

Base64URL text without padding or two hexadecimal characters per random byte.

Related Security tools

Browse Security tools