Secure Random Generator
Generate cryptographically secure random bytes (hex, Base64, Base64URL). All values are generated on your device using a cryptographically secure random generator — nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
32 bytes
Example Output
Hex / Base64 / Base64URL
How to Use
- 1Open "More settings" to adjust parameters (e.g. size/length) if needed.
- 2Click the Generate button.
- 3Copy the result with the Copy button.
About Secure Random
A secure random generator (CSPRNG) produces unpredictable values — the foundation of keys, IVs, salts, and tokens. The browser's crypto.getRandomValues is the right CSPRNG for this.
This tool generates a number of random bytes you specify and shows them in hex, Base64, and Base64URL at once, ready for any format.
Never use Math.random() for security — it is not cryptographically secure. For specific needs, see the Random Bytes/Hex/IV/Nonce/Salt/Token tools.
FAQ
Are my data or keys sent to a server?
No. Secure Random runs entirely in your browser using the Web Crypto API and client-side libraries. Your data, passwords, and keys never leave your device.