Secure Random Data Generator
Generate cryptographically secure random hex, Base64, tokens, API keys, numbers in a range and UUIDs – with entropy shown – or download random bytes as a file.
Tool
About this tool
About Secure Random Data Generator
Need an API key, a session secret, a salt, a voucher code or a fair random number? This generator uses your browser’s cryptographic random source (the same one used for encryption) and avoids modulo bias, so every character and number is equally likely. Choose hex, Base64, URL-safe Base64, letters and digits, characters without look-alikes, your own alphabet, API keys with a prefix, whole numbers in a range or UUID v4, make up to 1000 at once, and see the strength in bits.
How it works
Example
How to use this tool
- Choose the format and length.
- Choose how many values you need.
- Click Generate, then copy or download them.
Frequently asked questions
Is Math.random() not good enough?
No – Math.random is predictable and must never be used for secrets. This tool uses crypto.getRandomValues.
What is modulo bias?
Mapping random bytes to a range with % makes some values more likely. The tool throws away the bytes that would cause it.
Is anything sent to your server?
No. Values are made in your browser and not stored.
Does the Secure Random Data Generator store what I check?
No. The Secure Random Data Generator does not store your input. Keys, files and secrets are handled in your browser; website checks only send the address you enter to our server, which loads the public page and forgets it.