Random Base64 String
Generate random Base64-encoded strings of a chosen length, standard or URL-safe.
About this tool
Random Base64 String produces opaque random tokens of any length in the standard or URL-safe Base64 alphabet, suitable for session IDs, salts, nonces, API test keys and placeholder data. The bytes come from the browser's secure generator and never leave your device. Encode real data with Base64 Encode/Decode.
How to use it — quick steps
- 01
Enter the how many
Type or paste the how many in the field above. Nothing is uploaded: the text stays in your browser.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. They apply on the next run.
- 03
Press "Generate Base64 strings"
Press "Generate Base64 strings" or Ctrl + Enter. The result appears instantly below the form.
Key features of this tool
Cryptographically random
Values come from the browser's secure random generator, never from a predictable seed.
Generated locally
Nothing is sent to our servers; refresh for a new batch of randomly generated data whenever you need more.
Bulk ready
Generate up to a thousand values at once, easily copy or download them all in a click.
Frequently asked questions
How much entropy does a string have?
Six bits per character: a 32-character string carries 192 bits, far more than enough for a session token.
Can I decode them?
They decode to random bytes, not text. They are meant to be used as opaque tokens.
Are these values truly random?
They are produced with the browser's cryptographic random generator (crypto.getRandomValues), so they are unpredictable and suitable for test data, salts and tokens.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.