Skip to the tool
mtool
  • free
  • no sign-up
  • on device
  • random
  • generator

Random Token Generator

Generate random bytes as Hex, Base64, Base64url and other token encodings in your browser — free, with no sign-up, and your tokens never leave your device unless you choose to share them. Set the byte count, choose an encoding and copy your tokens; switch encoding to reuse the same bytes.

Your random result will appear here.

Values and hash sources stay in this tab. Only preset settings are saved on this device; custom alphabets and free text are never saved.

1–65,536 per value. Formatting adds characters to the result.

1–1,000 values per batch.

More settings

Optional: up to 32 printable ASCII characters, including spaces.

Optional: up to 32 printable ASCII characters, including spaces.

Formatted values plus line breaks: at most 1,048,576 bytes. JSON export: at most 3,145,728 bytes. Formatting adds no randomness.

Download options

Questions

Is token length measured in bytes or characters?

The default byte mode measures random input bytes. Encoding determines the output length: 32 bytes become 43 unpadded Base64url characters or 64 hex characters. Alphabet mode measures random characters instead.

Does changing the encoding create new random bytes?

No. Encoding, case, padding and formatting reuse the current bytes. New values replaces them. A change to byte length, count or uniqueness creates a new batch.

What is the difference between Base64 and Base64url?

Base64 uses + and / and defaults to = padding. Base64url uses - and _ and defaults to no padding. Both encode the same random bytes; padding can be changed under More settings.

Does this issue an API key for a service?

It creates random token values locally. A service must separately register and accept a credential; generating a value here does not grant access to any service.

Is this tool free?

Yes. This tool is free, with no sign-up and no daily limits.

Do I need an account?

No. You can use this tool without an account.

Is my input sent anywhere?

No. This tool runs in your browser. Your input and results never leave your device unless you choose to share them.

Related tools

Random String Generator

Generate random strings with an exact character length and your chosen alphabet.

  • random
  • generator
Open

Random Hex Generator

Generate hexadecimal strings with an exact character length or byte length.

  • random
  • generator
Open

Random Hash Generator

Generate real hash digests from fresh random bytes using SHA-256 and 14 other algorithms.

  • random
  • generator
Open